net.minecraft.entity.monster.EntityStray Java Examples

The following examples show how to use net.minecraft.entity.monster.EntityStray. 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 vote down vote up
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 vote down vote up
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: CraftStray.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
public CraftStray(CraftServer server, EntityStray entity) {
    super(server, entity);
}