net.minecraft.entity.monster.EntityPolarBear Java Examples
The following examples show how to use
net.minecraft.entity.monster.EntityPolarBear.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BiomeGlacier.java From CommunityMod with GNU Lesser General Public License v2.1 | 6 votes |
public BiomeGlacier(boolean isSpikes) { super(getProperties(isSpikes)); this.isSpikes = isSpikes; this.topBlock = Blocks.SNOW.getDefaultState(); this.fillerBlock = Blocks.ICE.getDefaultState(); decorator.treesPerChunk = 1; decorator.extraTreeChance = 4; this.spawnableCreatureList.clear(); this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityRabbit.class, 10, 2, 3)); this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityPolarBear.class, 1, 1, 2)); this.spawnableMonsterList.removeIf(spawnentry -> spawnentry.entityClass == EntitySkeleton.class); this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntitySkeleton.class, 20, 4, 4)); this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityStray.class, 80, 4, 4)); }
Example #2
Source File: BiomeGlacier.java From Traverse-Legacy-1-12-2 with MIT License | 6 votes |
public BiomeGlacier(boolean isSpikes) { super(getProperties(isSpikes)); this.isSpikes = isSpikes; this.topBlock = Blocks.SNOW.getDefaultState(); this.fillerBlock = Blocks.ICE.getDefaultState(); decorator.treesPerChunk = 1; decorator.extraTreeChance = 4; this.spawnableCreatureList.clear(); this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityRabbit.class, 10, 2, 3)); this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityPolarBear.class, 1, 1, 2)); this.spawnableMonsterList.removeIf(spawnentry -> spawnentry.entityClass == EntitySkeleton.class); this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntitySkeleton.class, 20, 4, 4)); this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityStray.class, 80, 4, 4)); }
Example #3
Source File: EntityPenguin.java From CommunityMod with GNU Lesser General Public License v2.1 | 5 votes |
@Override protected void initEntityAI() { this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(0, new EntityAIAvoidEntity<EntityPolarBear>(this, EntityPolarBear.class, 16, 0.5D, 1.5D)); this.tasks.addTask(1, new EntityAIPanic(this, 2.0D)); this.tasks.addTask(2, new EntityAIMate(this, 1.0D)); this.tasks.addTask(3, new EntityAITempt(this, 1.25D, Items.FISH, false)); this.tasks.addTask(4, new EntityAIFollowParent(this, 1.25D)); this.tasks.addTask(5, new EntityAIWander(this, 1.0D)); this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F)); this.tasks.addTask(6, new EntityAIMate(this, 0.5D)); this.tasks.addTask(7, new EntityAILookIdle(this)); }
Example #4
Source File: CraftPolarBear.java From Kettle with GNU General Public License v3.0 | 4 votes |
public CraftPolarBear(CraftServer server, EntityPolarBear entity) { super(server, entity); }
Example #5
Source File: CraftPolarBear.java From Kettle with GNU General Public License v3.0 | 4 votes |
@Override public EntityPolarBear getHandle() { return (EntityPolarBear) entity; }