Java Code Examples for net.minecraft.entity.monster.EntitySlime

The following are top voted examples for showing how to use net.minecraft.entity.monster.EntitySlime. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: pnc-repressurized   File: EntityTrackHandler.java   View source code 6 votes vote down vote up
@Override
public void addInfo(Entity entity, List<String> curInfo) {
    switch (((EntitySlime) entity).getSlimeSize()) {
        case 1:
            curInfo.add("Size: Tiny");
            return;
        case 2:
            curInfo.add("Size: Small");
            return;
        case 4:
            curInfo.add("Size: Big");
            return;
        default:
            curInfo.add("Size: " + ((EntitySlime) entity).getSlimeSize());
            return;
    }
}
 
Example 2
Project: Uranium   File: ActivationRange.java   View source code 6 votes vote down vote up
/**
 * Initializes an entities type on construction to specify what group this
 * entity is in for activation ranges.
 *
 * @param entity
 * @return group id
 */
public static byte initializeEntityActivationType(Entity entity)
{
    Chunk chunk = null;
    // Cauldron start - account for entities that dont extend EntityMob, EntityAmbientCreature, EntityCreature
    if ( entity instanceof EntityMob || entity instanceof EntitySlime || entity.isCreatureType(EnumCreatureType.monster, false)) // Cauldron - account for entities that dont extend EntityMob
    {
        return 1; // Monster
    } else if ( entity instanceof EntityCreature || entity instanceof EntityAmbientCreature || entity.isCreatureType(EnumCreatureType.creature, false) 
             || entity.isCreatureType(EnumCreatureType.waterCreature, false) || entity.isCreatureType(EnumCreatureType.ambient, false))
    {
        return 2; // Animal
    // Cauldron end
    } else
    {
        return 3; // Misc
    }
}
 
Example 3
Project: DecompiledMinecraft   File: BiomeGenSwamp.java   View source code 6 votes vote down vote up
protected BiomeGenSwamp(int p_i1988_1_)
{
    super(p_i1988_1_);
    this.theBiomeDecorator.treesPerChunk = 2;
    this.theBiomeDecorator.flowersPerChunk = 1;
    this.theBiomeDecorator.deadBushPerChunk = 1;
    this.theBiomeDecorator.mushroomsPerChunk = 8;
    this.theBiomeDecorator.reedsPerChunk = 10;
    this.theBiomeDecorator.clayPerChunk = 1;
    this.theBiomeDecorator.waterlilyPerChunk = 4;
    this.theBiomeDecorator.sandPerChunk2 = 0;
    this.theBiomeDecorator.sandPerChunk = 0;
    this.theBiomeDecorator.grassPerChunk = 5;
    this.waterColorMultiplier = 14745518;
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 1, 1, 1));
}
 
Example 4
Project: DecompiledMinecraft   File: BiomeGenSwamp.java   View source code 6 votes vote down vote up
protected BiomeGenSwamp(int p_i1988_1_)
{
    super(p_i1988_1_);
    this.theBiomeDecorator.treesPerChunk = 2;
    this.theBiomeDecorator.flowersPerChunk = 1;
    this.theBiomeDecorator.deadBushPerChunk = 1;
    this.theBiomeDecorator.mushroomsPerChunk = 8;
    this.theBiomeDecorator.reedsPerChunk = 10;
    this.theBiomeDecorator.clayPerChunk = 1;
    this.theBiomeDecorator.waterlilyPerChunk = 4;
    this.theBiomeDecorator.sandPerChunk2 = 0;
    this.theBiomeDecorator.sandPerChunk = 0;
    this.theBiomeDecorator.grassPerChunk = 5;
    this.waterColorMultiplier = 14745518;
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 1, 1, 1));
}
 
Example 5
Project: BaseClient   File: BiomeGenSwamp.java   View source code 6 votes vote down vote up
protected BiomeGenSwamp(int p_i1988_1_)
{
    super(p_i1988_1_);
    this.theBiomeDecorator.treesPerChunk = 2;
    this.theBiomeDecorator.flowersPerChunk = 1;
    this.theBiomeDecorator.deadBushPerChunk = 1;
    this.theBiomeDecorator.mushroomsPerChunk = 8;
    this.theBiomeDecorator.reedsPerChunk = 10;
    this.theBiomeDecorator.clayPerChunk = 1;
    this.theBiomeDecorator.waterlilyPerChunk = 4;
    this.theBiomeDecorator.sandPerChunk2 = 0;
    this.theBiomeDecorator.sandPerChunk = 0;
    this.theBiomeDecorator.grassPerChunk = 5;
    this.waterColorMultiplier = 14745518;
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 1, 1, 1));
}
 
Example 6
Project: BaseClient   File: BiomeGenSwamp.java   View source code 6 votes vote down vote up
protected BiomeGenSwamp(int p_i1988_1_)
{
    super(p_i1988_1_);
    this.theBiomeDecorator.treesPerChunk = 2;
    this.theBiomeDecorator.flowersPerChunk = 1;
    this.theBiomeDecorator.deadBushPerChunk = 1;
    this.theBiomeDecorator.mushroomsPerChunk = 8;
    this.theBiomeDecorator.reedsPerChunk = 10;
    this.theBiomeDecorator.clayPerChunk = 1;
    this.theBiomeDecorator.waterlilyPerChunk = 4;
    this.theBiomeDecorator.sandPerChunk2 = 0;
    this.theBiomeDecorator.sandPerChunk = 0;
    this.theBiomeDecorator.grassPerChunk = 5;
    this.waterColorMultiplier = 14745518;
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 1, 1, 1));
}
 
Example 7
Project: EMC   File: IEntity.java   View source code 6 votes vote down vote up
public Color getEntityColor() {
	if ((entity instanceof EntityAnimal)) {
		return Color.white;
	}
	if ((entity instanceof EntityMob)) {
		return Color.red;
	}
	if ((entity instanceof EntitySlime)) {
		return Color.green;
	}
	if ((entity instanceof EntityVillager)) {
		return new Color(245, 245, 220);
	}
	if ((entity instanceof EntityBat)) {
		return Color.BLACK;
	}
	if ((entity instanceof EntitySquid)) {
		return Color.PINK;
	}
	return Color.white;
}
 
Example 8
Project: BetterWithAddons   File: AnimalCrossbreedHandler.java   View source code 6 votes vote down vote up
public static void initialize()
{
    inLove = ReflectionHelper.findField(EntityAnimal.class, "field_70881_d", "inLove");

    //Standard
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,new EntityCow(world)),100));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,new EntitySheep(world)),100));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,new EntityPig(world)),100));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,new EntityChicken(world)),50)); //Lower chance for egg hatching animal

    //Parent species
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,mother.createChild(mother)),100));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,father.createChild(father)),100));

    //Abominations
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnEntityAt(world,pos,new EntitySilverfish(world)),200));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnEntityAt(world,pos,new EntityCaveSpider(world)),100));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnEntityAt(world,pos,new EntitySlime(world)),50));

    //Enviroment dependent
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnEntityAt(world,pos,new EntitySquid(world)),0).setCustomWeight(AnimalCrossbreedHandler::getSquidWeight));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,new EntityWolf(world)),0).setCustomWeight(AnimalCrossbreedHandler::getWolfWeight));
    mutationSet.add(new AnimalMutation((world, pos, mother, father) -> spawnBabyAt(world,pos,new EntityOcelot(world)),0).setCustomWeight(AnimalCrossbreedHandler::getOcelotWeight));
}
 
Example 9
Project: ToroHealth   File: AbstractHealthDisplay.java   View source code 6 votes vote down vote up
protected Relation determineRelation() {
	if (entity instanceof EntityMob) {
		return Relation.FOE;
	} else if (entity instanceof EntitySlime) {
		return Relation.FOE;
	} else if (entity instanceof EntityGhast) {
		return Relation.FOE;
	} else if (entity instanceof EntityAnimal) {
		return Relation.FRIEND;
	} else if (entity instanceof EntitySquid) {
		return Relation.FRIEND;
	} else if (entity instanceof EntityAmbientCreature) {
		return Relation.FRIEND;
	} else {
		return Relation.UNKNOWN;
	}
}
 
Example 10
Project: ThermosRebased   File: ActivationRange.java   View source code 6 votes vote down vote up
/**
 * Initializes an entities type on construction to specify what group this
 * entity is in for activation ranges.
 *
 * @param entity
 * @return group id
 */
public static byte initializeEntityActivationType(Entity entity)
{
    Chunk chunk = null;
    // Cauldron start - account for entities that dont extend EntityMob, EntityAmbientCreature, EntityCreature
    if ( entity instanceof EntityMob || entity instanceof EntitySlime || entity.isCreatureType(EnumCreatureType.monster, false)) // Cauldron - account for entities that dont extend EntityMob
    {
        return 1; // Monster
    } else if ( entity instanceof EntityCreature || entity instanceof EntityAmbientCreature || entity.isCreatureType(EnumCreatureType.creature, false) 
             || entity.isCreatureType(EnumCreatureType.waterCreature, false) || entity.isCreatureType(EnumCreatureType.ambient, false))
    {
        return 2; // Animal
    // Cauldron end
    } else
    {
        return 3; // Misc
    }
}
 
Example 11
Project: Mob-Rebirth   File: CommonEvents.java   View source code 6 votes vote down vote up
private void makeMobRebornTransition(LivingDropsEvent event) {
	if (ConfigValues.ALLOWBOSSES) {
		if (event.getEntityLiving() instanceof EntityWither || event.getEntityLiving() instanceof EntityDragon) {
			makeMobReborn(event);
			return;
		}
	} else if (event.getEntityLiving() instanceof EntityWither || event.getEntityLiving() instanceof EntityDragon)
		return;
	if (ConfigValues.ALLOWSLIMES) {
		if (event.getEntityLiving() instanceof EntitySlime) {
			makeMobReborn(event);
			return;
		}
	} else if (event.getEntityLiving() instanceof EntitySlime)
		return;
	if (ConfigValues.VANILLAONLY) {
		if (isVanilla(event.getEntityLiving())) {
			makeMobReborn(event);
		}
	} else {
		makeMobReborn(event);
	}
}
 
Example 12
Project: Dark-Utilities   File: FeatureAntiSlime.java   View source code 6 votes vote down vote up
@SubscribeEvent
public void checkSpawn (EntityJoinWorldEvent event) {

    if (event.getEntity() instanceof EntitySlime && !event.getEntity().hasCustomName()) {

        for (final TileEntity tile : event.getWorld().loadedTileEntityList) {

            if (tile instanceof TileEntityAntiSlime && ((TileEntityAntiSlime) tile).shareChunks((EntityLivingBase) event.getEntity())) {

                if (event.getWorld().isBlockPowered(tile.getPos())) {
                    continue;
                }

                event.setCanceled(true);
                event.getEntity().setDead();
                break;
            }
        }
    }
}
 
Example 13
Project: Survivalist   File: SlimeMerger.java   View source code 6 votes vote down vote up
@Override
public boolean shouldExecute()
{
    if (slime.getSlimeSize() >= BIG_SLIME)
        return false;
    if (slime.ticksExisted < AGE_LIMIT)
        return false;
    if (rand.nextFloat() > 0.5)
        return false;
    List<EntitySlime> list = slime.world
            .getEntitiesWithinAABB(EntitySlime.class,
                    slime.getEntityBoundingBox().grow(slime.getSlimeSize()*1.5, slime.getSlimeSize(), slime.getSlimeSize()*1.5),
                    (other) -> other != slime
                            && other.isEntityAlive()
                            && other.getClass() == slime.getClass()
                            && other.ticksExisted > AGE_LIMIT
                            && other.getSlimeSize() == slime.getSlimeSize());
    return (list.size() >= 3);
}
 
Example 14
Project: Survivalist   File: SlimeMerger.java   View source code 6 votes vote down vote up
public EntityAIFindOtherSlimeNearest(final EntitySlime mobIn)
{
    super(mobIn, EntitySlime.class);
    this.slime = mobIn;
    Predicate<EntityLivingBase> predicate = entity -> {
        double range = EntityAIFindOtherSlimeNearest.this.getFollowRange();
        return entity != null
                && entity != mobIn
                && entity.getClass() == mobIn.getClass()
                && entity.ticksExisted > AGE_LIMIT
                && !entity.isInvisible()
                && entity.getDistance(mobIn) <= range
                && ((EntitySlime) entity).getSlimeSize() == mobIn.getSlimeSize()
                && EntityAITarget.isSuitableTarget(mobIn, entity, false, true);
    };

    try
    {
        predicateField.set(this, predicate);
    }
    catch (IllegalAccessException e)
    {
        throw new ReportedException(new CrashReport("Could not set private field '" + predicateField.getName() + "'", e));
    }
}
 
Example 15
Project: Thermos   File: ActivationRange.java   View source code 6 votes vote down vote up
/**
 * Initializes an entities type on construction to specify what group this
 * entity is in for activation ranges.
 *
 * @param entity
 * @return group id
 */
public static byte initializeEntityActivationType(Entity entity)
{
    Chunk chunk = null;
    // Cauldron start - account for entities that dont extend EntityMob, EntityAmbientCreature, EntityCreature
    if ( entity instanceof EntityMob || entity instanceof EntitySlime || entity.isCreatureType(EnumCreatureType.monster, false)) // Cauldron - account for entities that dont extend EntityMob
    {
        return 1; // Monster
    } else if ( entity instanceof EntityCreature || entity instanceof EntityAmbientCreature || entity.isCreatureType(EnumCreatureType.creature, false) 
             || entity.isCreatureType(EnumCreatureType.waterCreature, false) || entity.isCreatureType(EnumCreatureType.ambient, false))
    {
        return 2; // Animal
    // Cauldron end
    } else
    {
        return 3; // Misc
    }
}
 
Example 16
Project: KCauldron   File: ActivationRange.java   View source code 6 votes vote down vote up
/**
 * Initializes an entities type on construction to specify what group this
 * entity is in for activation ranges.
 *
 * @param entity
 * @return group id
 */
public static byte initializeEntityActivationType(Entity entity)
{
    Chunk chunk = null;
    // Cauldron start - account for entities that dont extend EntityMob, EntityAmbientCreature, EntityCreature
    if ( entity instanceof EntityMob || entity instanceof EntitySlime || entity.isCreatureType(EnumCreatureType.monster, false)) // Cauldron - account for entities that dont extend EntityMob
    {
        return 1; // Monster
    } else if ( entity instanceof EntityCreature || entity instanceof EntityAmbientCreature || entity.isCreatureType(EnumCreatureType.creature, false) 
             || entity.isCreatureType(EnumCreatureType.waterCreature, false) || entity.isCreatureType(EnumCreatureType.ambient, false))
    {
        return 2; // Animal
    // Cauldron end
    } else
    {
        return 3; // Misc
    }
}
 
Example 17
Project: CauldronGit   File: ActivationRange.java   View source code 6 votes vote down vote up
/**
 * Initializes an entities type on construction to specify what group this
 * entity is in for activation ranges.
 *
 * @param entity
 * @return group id
 */
public static byte initializeEntityActivationType(Entity entity)
{
    Chunk chunk = null;
    // Cauldron start - account for entities that dont extend EntityMob, EntityAmbientCreature, EntityCreature
    if ( entity instanceof EntityMob || entity instanceof EntitySlime || entity.isCreatureType(EnumCreatureType.monster, false)) // Cauldron - account for entities that dont extend EntityMob
    {
        return 1; // Monster
    } else if ( entity instanceof EntityCreature || entity instanceof EntityAmbientCreature || entity.isCreatureType(EnumCreatureType.creature, false) 
             || entity.isCreatureType(EnumCreatureType.waterCreature, false) || entity.isCreatureType(EnumCreatureType.ambient, false))
    {
        return 2; // Animal
    // Cauldron end
    } else
    {
        return 3; // Misc
    }
}
 
Example 18
Project: Cauldron-Old   File: ActivationRange.java   View source code 6 votes vote down vote up
/**
 * Initializes an entities type on construction to specify what group this
 * entity is in for activation ranges.
 *
 * @param entity
 * @return group id
 */
public static byte initializeEntityActivationType(Entity entity)
{
    Chunk chunk = null;
    // Cauldron start - account for entities that dont extend EntityMob, EntityAmbientCreature, EntityCreature
    if ( entity instanceof EntityMob || entity instanceof EntitySlime || entity.isCreatureType(EnumCreatureType.monster, false)) // Cauldron - account for entities that dont extend EntityMob
    {
        return 1; // Monster
    } else if ( entity instanceof EntityCreature || entity instanceof EntityAmbientCreature || entity.isCreatureType(EnumCreatureType.creature, false) 
             || entity.isCreatureType(EnumCreatureType.waterCreature, false) || entity.isCreatureType(EnumCreatureType.ambient, false))
    {
        return 2; // Animal
    // Cauldron end
    } else
    {
        return 3; // Misc
    }
}
 
Example 19
Project: Cauldron-Reloaded   File: ActivationRange.java   View source code 6 votes vote down vote up
/**
 * Initializes an entities type on construction to specify what group this
 * entity is in for activation ranges.
 *
 * @param entity
 * @return group id
 */
public static byte initializeEntityActivationType(Entity entity)
{
    Chunk chunk = null;
    // Cauldron start - account for entities that dont extend EntityMob, EntityAmbientCreature, EntityCreature
    if ( entity instanceof EntityMob || entity instanceof EntitySlime || entity.isCreatureType(EnumCreatureType.monster, false)) // Cauldron - account for entities that dont extend EntityMob
    {
        return 1; // Monster
    } else if ( entity instanceof EntityCreature || entity instanceof EntityAmbientCreature || entity.isCreatureType(EnumCreatureType.creature, false) 
             || entity.isCreatureType(EnumCreatureType.waterCreature, false) || entity.isCreatureType(EnumCreatureType.ambient, false))
    {
        return 2; // Animal
    // Cauldron end
    } else
    {
        return 3; // Misc
    }
}
 
Example 20
Project: FFoKC   File: ActivationRange.java   View source code 6 votes vote down vote up
/**
 * Initializes an entities type on construction to specify what group this
 * entity is in for activation ranges.
 *
 * @param entity
 * @return group id
 */
public static byte initializeEntityActivationType(Entity entity)
{
    Chunk chunk = null;
    // Cauldron start - account for entities that dont extend EntityMob, EntityAmbientCreature, EntityCreature
    if ( entity.getClass().equals(EntityMob.class) || entity.getClass().equals(EntitySlime.class) || entity.isCreatureType(EnumCreatureType.monster, false)) // Cauldron - account for entities that dont extend EntityMob
    {
        return 1; // Monster
    } else if ( entity.getClass().equals(EntityCreature.class) || entity.getClass().equals(EntityAmbientCreature.class) || entity.isCreatureType(EnumCreatureType.creature, false) 
             || entity.isCreatureType(EnumCreatureType.waterCreature, false) || entity.isCreatureType(EnumCreatureType.ambient, false))
    {
        return 2; // Animal
    // Cauldron end
    } else
    {
        return 3; // Misc
    }
}
 
Example 21
Project: Resilience-Client-Source   File: BiomeGenSwamp.java   View source code 6 votes vote down vote up
protected BiomeGenSwamp(int par1)
{
    super(par1);
    this.theBiomeDecorator.treesPerChunk = 2;
    this.theBiomeDecorator.flowersPerChunk = 1;
    this.theBiomeDecorator.deadBushPerChunk = 1;
    this.theBiomeDecorator.mushroomsPerChunk = 8;
    this.theBiomeDecorator.reedsPerChunk = 10;
    this.theBiomeDecorator.clayPerChunk = 1;
    this.theBiomeDecorator.waterlilyPerChunk = 4;
    this.theBiomeDecorator.sandPerChunk2 = 0;
    this.theBiomeDecorator.sandPerChunk = 0;
    this.theBiomeDecorator.grassPerChunk = 5;
    this.waterColorMultiplier = 14745518;
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 1, 1, 1));
}
 
Example 22
Project: Resilience-Client-Source   File: RenderSlime.java   View source code 6 votes vote down vote up
/**
 * Queries whether should render the specified pass or not.
 */
protected int shouldRenderPass(EntitySlime par1EntitySlime, int par2, float par3)
{
    if (par1EntitySlime.isInvisible())
    {
        return 0;
    }
    else if (par2 == 0)
    {
        this.setRenderPassModel(this.scaleAmount);
        GL11.glEnable(GL11.GL_NORMALIZE);
        GL11.glEnable(GL11.GL_BLEND);
        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
        return 1;
    }
    else
    {
        if (par2 == 1)
        {
            GL11.glDisable(GL11.GL_BLEND);
            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        }

        return -1;
    }
}
 
Example 23
Project: AdvancedRocketry   File: BiomeGenDeepSwamp.java   View source code 6 votes vote down vote up
public BiomeGenDeepSwamp(int biomeId, boolean register) {
	super(biomeId,register);
	this.biomeName="DeepSwamp";
	rootHeight=-0.1f;
	heightVariation=0.2f;
	rainfall = 0.9f;
	temperature = 0.9f;
	this.theBiomeDecorator.treesPerChunk = 10;
       this.theBiomeDecorator.flowersPerChunk = 1;
       this.theBiomeDecorator.deadBushPerChunk = 1;
       this.theBiomeDecorator.mushroomsPerChunk = 8;
       this.theBiomeDecorator.reedsPerChunk = 10;
       this.theBiomeDecorator.clayPerChunk = 1;
       this.theBiomeDecorator.waterlilyPerChunk = 4;
       this.theBiomeDecorator.sandPerChunk2 = 0;
       this.theBiomeDecorator.sandPerChunk = 0;
       this.theBiomeDecorator.grassPerChunk = 5;
       this.waterColorMultiplier = 14745518;
       this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 1, 1, 1));
       this.flowers.clear();
       this.addFlower(Blocks.red_flower, 1, 10);
	swampTree = new WorldGenSwampTree(2);
}
 
Example 24
Project: RidiculousWorld   File: RenderShadowSlime.java   View source code 6 votes vote down vote up
/**
 * Queries whether should render the specified pass or not.
 */
protected int shouldRenderPass(EntitySlime slime, int p_77032_2_, float p_77032_3_)
{
    if (slime.isInvisible())
    {
        return 0;
    }
    else if (p_77032_2_ == 0)
    {
        this.setRenderPassModel(this.scaleAmount);
        GL11.glEnable(GL11.GL_NORMALIZE);
        GL11.glEnable(GL11.GL_BLEND);
        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
        return 1;
    }
    else
    {
        if (p_77032_2_ == 1)
        {
            GL11.glDisable(GL11.GL_BLEND);
            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        }

        return -1;
    }
}
 
Example 25
Project: ZeroQuest   File: BiomeGenBlueTaiga.java   View source code 6 votes vote down vote up
public BiomeGenBlueTaiga(int p_i45385_1_, int p_i45385_2_)
{
    super(p_i45385_1_);
    this.field_150644_aH = p_i45385_2_;
    this.spawnableMonsterList.clear();
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityIceZertum.class, 20, 3, 4));
    this.theBiomeDecorator.treesPerChunk = 10;

    if (p_i45385_2_ != 1 && p_i45385_2_ != 2)
    {
        this.theBiomeDecorator.grassPerChunk = 1;
        this.theBiomeDecorator.mushroomsPerChunk = 1;
    }
    else
    {
        this.theBiomeDecorator.grassPerChunk = 7;
        this.theBiomeDecorator.deadBushPerChunk = 1;
        this.theBiomeDecorator.mushroomsPerChunk = 3;
    }
}
 
Example 26
Project: ZeroQuest   File: BiomeGenDestroZone.java   View source code 6 votes vote down vote up
public BiomeGenDestroZone(int par1)
{
    super(par1);
    this.topBlock = Blocks.sand;
    this.fillerBlock = Blocks.sand;
   	this.waterColorMultiplier = 0x333333;
    this.theBiomeDecorator.treesPerChunk = -999;
    this.theBiomeDecorator.deadBushPerChunk = 2;
    this.theBiomeDecorator.reedsPerChunk = 50;
    this.theBiomeDecorator.cactiPerChunk = 10;
    this.spawnableMonsterList.clear();
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityDestroZertum.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));

}
 
Example 27
Project: ZeroQuest   File: BiomeGenBioZone.java   View source code 6 votes vote down vote up
public BiomeGenBioZone(int id) {
    super(id);
    this.theBiomeDecorator.generateLakes = true;
    this.theBiomeDecorator.treesPerChunk = 4;
    this.spawnableMonsterList.clear();
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityCreeper.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityZertum.class, 100, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityBat.class, 5, 1, 5));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityChicken.class, 5, 1, 5));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityCow.class, 5, 1, 5));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityPig.class, 5, 1, 5)); 
}
 
Example 28
Project: ZeroQuest   File: BiomeGenNileMountains.java   View source code 6 votes vote down vote up
public BiomeGenNileMountains(int p_i45373_1_, boolean p_i45373_2_)
{
    super(p_i45373_1_);
    this.theWorldGenerator = new WorldGenMinable(Blocks.monster_egg, 8);
    this.field_150634_aD = new WorldGenTaiga2(false);
    this.field_150635_aE = 0;
    this.field_150636_aF = 1;
    this.field_150637_aG = 2;
    this.field_150638_aH = this.field_150635_aE;
    this.spawnableMonsterList.clear();
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));

    if (p_i45373_2_)
    {
        this.theBiomeDecorator.treesPerChunk = 3;
        this.field_150638_aH = this.field_150636_aF;
    }
}
 
Example 29
Project: ZeroQuest   File: BiomeGenNileSwamp.java   View source code 6 votes vote down vote up
public BiomeGenNileSwamp(int p_i1988_1_)
{
    super(p_i1988_1_);
    this.theBiomeDecorator.treesPerChunk = 2;
    this.theBiomeDecorator.flowersPerChunk = 1;
    this.theBiomeDecorator.deadBushPerChunk = 1;
    this.theBiomeDecorator.mushroomsPerChunk = 8;
    this.theBiomeDecorator.reedsPerChunk = 10;
    this.theBiomeDecorator.clayPerChunk = 1;
    this.theBiomeDecorator.waterlilyPerChunk = 4;
    this.theBiomeDecorator.sandPerChunk2 = 0;
    this.theBiomeDecorator.sandPerChunk = 0;
    this.theBiomeDecorator.grassPerChunk = 5;
    this.waterColorMultiplier = 14745518;
    this.spawnableMonsterList.clear();
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityZertum.class, 100, 3, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityForisZertum.class, 20, 3, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));
    this.flowers.clear();
    this.addFlower(Blocks.red_flower, 1, 10);
    this.addFlower(ModBlocks.nilePinkFlower, 1, 20);
}
 
Example 30
Project: ZeroQuest   File: BiomeGenBlueTaiga.java   View source code 6 votes vote down vote up
public BiomeGenBlueTaiga(int p_i45385_1_, int p_i45385_2_)
{
    super(p_i45385_1_);
    this.field_150644_aH = p_i45385_2_;
    this.spawnableMonsterList.clear();
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));
    this.theBiomeDecorator.treesPerChunk = 10;

    if (p_i45385_2_ != 1 && p_i45385_2_ != 2)
    {
        this.theBiomeDecorator.grassPerChunk = 1;
        this.theBiomeDecorator.mushroomsPerChunk = 1;
    }
    else
    {
        this.theBiomeDecorator.grassPerChunk = 7;
        this.theBiomeDecorator.deadBushPerChunk = 1;
        this.theBiomeDecorator.mushroomsPerChunk = 3;
    }
}
 
Example 31
Project: ZeroQuest   File: BiomeGenDestroZone.java   View source code 6 votes vote down vote up
public BiomeGenDestroZone(int par1)
{
    super(par1);
    this.topBlock = Blocks.sand.getDefaultState();
    this.fillerBlock = Blocks.sand.getDefaultState();
   	this.waterColorMultiplier = 0x333333;
    this.theBiomeDecorator.treesPerChunk = -999;
    this.theBiomeDecorator.deadBushPerChunk = 2;
    this.theBiomeDecorator.reedsPerChunk = 50;
    this.theBiomeDecorator.cactiPerChunk = 10;
    this.addFlower(ModBlocks.destroFlower.getDefaultState(), 90);
    this.spawnableMonsterList.clear();
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));

}
 
Example 32
Project: ZeroQuest   File: BiomeGenBioZone.java   View source code 6 votes vote down vote up
public BiomeGenBioZone(int id) {
    super(id);
    this.theBiomeDecorator.generateLakes = true;
    this.theBiomeDecorator.treesPerChunk = 4;
    this.spawnableMonsterList.clear();
    this.addFlower(ModBlocks.nileBlueFlower.getDefaultState(), 90);
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityCreeper.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityBat.class, 5, 1, 5));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityChicken.class, 5, 1, 5));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityCow.class, 5, 1, 5));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityPig.class, 5, 1, 5)); 
}
 
Example 33
Project: ZeroQuest   File: BiomeGenNileSwamp.java   View source code 6 votes vote down vote up
public BiomeGenNileSwamp(int p_i1988_1_)
{
    super(p_i1988_1_);
    this.theBiomeDecorator.treesPerChunk = 2;
    this.theBiomeDecorator.flowersPerChunk = 1;
    this.theBiomeDecorator.deadBushPerChunk = 1;
    this.theBiomeDecorator.mushroomsPerChunk = 8;
    this.theBiomeDecorator.reedsPerChunk = 10;
    this.theBiomeDecorator.clayPerChunk = 1;
    this.theBiomeDecorator.waterlilyPerChunk = 4;
    this.theBiomeDecorator.sandPerChunk2 = 0;
    this.theBiomeDecorator.sandPerChunk = 0;
    this.theBiomeDecorator.grassPerChunk = 5;
    this.waterColorMultiplier = 14745518;
    this.spawnableMonsterList.clear();
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));
    this.flowers.clear();
    this.addFlower(Blocks.red_flower.getDefaultState(), 10);
    this.addFlower(ModBlocks.nilePinkFlower.getDefaultState(), 20);
}
 
Example 34
Project: Cauldron   File: BiomeGenSwamp.java   View source code 6 votes vote down vote up
protected BiomeGenSwamp(int p_i1988_1_)
{
    super(p_i1988_1_);
    this.theBiomeDecorator.treesPerChunk = 2;
    this.theBiomeDecorator.flowersPerChunk = 1;
    this.theBiomeDecorator.deadBushPerChunk = 1;
    this.theBiomeDecorator.mushroomsPerChunk = 8;
    this.theBiomeDecorator.reedsPerChunk = 10;
    this.theBiomeDecorator.clayPerChunk = 1;
    this.theBiomeDecorator.waterlilyPerChunk = 4;
    this.theBiomeDecorator.sandPerChunk2 = 0;
    this.theBiomeDecorator.sandPerChunk = 0;
    this.theBiomeDecorator.grassPerChunk = 5;
    this.waterColorMultiplier = 14745518;
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 1, 1, 1));
    this.flowers.clear();
    this.addFlower(Blocks.red_flower, 1, 10);
}
 
Example 35
Project: Cauldron   File: RenderSlime.java   View source code 6 votes vote down vote up
protected int shouldRenderPass(EntitySlime p_77032_1_, int p_77032_2_, float p_77032_3_)
{
    if (p_77032_1_.isInvisible())
    {
        return 0;
    }
    else if (p_77032_2_ == 0)
    {
        this.setRenderPassModel(this.scaleAmount);
        GL11.glEnable(GL11.GL_NORMALIZE);
        GL11.glEnable(GL11.GL_BLEND);
        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
        return 1;
    }
    else
    {
        if (p_77032_2_ == 1)
        {
            GL11.glDisable(GL11.GL_BLEND);
            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        }

        return -1;
    }
}
 
Example 36
Project: Cauldron   File: BiomeGenSwamp.java   View source code 6 votes vote down vote up
protected BiomeGenSwamp(int p_i1988_1_)
{
    super(p_i1988_1_);
    this.theBiomeDecorator.treesPerChunk = 2;
    this.theBiomeDecorator.flowersPerChunk = 1;
    this.theBiomeDecorator.deadBushPerChunk = 1;
    this.theBiomeDecorator.mushroomsPerChunk = 8;
    this.theBiomeDecorator.reedsPerChunk = 10;
    this.theBiomeDecorator.clayPerChunk = 1;
    this.theBiomeDecorator.waterlilyPerChunk = 4;
    this.theBiomeDecorator.sandPerChunk2 = 0;
    this.theBiomeDecorator.sandPerChunk = 0;
    this.theBiomeDecorator.grassPerChunk = 5;
    this.waterColorMultiplier = 14745518;
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 1, 1, 1));
    this.flowers.clear();
    this.addFlower(Blocks.red_flower, 1, 10);
}
 
Example 37
Project: Cauldron   File: RenderSlime.java   View source code 6 votes vote down vote up
protected int shouldRenderPass(EntitySlime p_77032_1_, int p_77032_2_, float p_77032_3_)
{
    if (p_77032_1_.isInvisible())
    {
        return 0;
    }
    else if (p_77032_2_ == 0)
    {
        this.setRenderPassModel(this.scaleAmount);
        GL11.glEnable(GL11.GL_NORMALIZE);
        GL11.glEnable(GL11.GL_BLEND);
        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
        return 1;
    }
    else
    {
        if (p_77032_2_ == 1)
        {
            GL11.glDisable(GL11.GL_BLEND);
            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        }

        return -1;
    }
}
 
Example 38
Project: Cauldron   File: ActivationRange.java   View source code 6 votes vote down vote up
/**
 * Initializes an entities type on construction to specify what group this
 * entity is in for activation ranges.
 *
 * @param entity
 * @return group id
 */
public static byte initializeEntityActivationType(Entity entity)
{
    Chunk chunk = null;
    // Cauldron start - account for entities that dont extend EntityMob, EntityAmbientCreature, EntityCreature
    if ( entity instanceof EntityMob || entity instanceof EntitySlime || entity.isCreatureType(EnumCreatureType.monster, false)) // Cauldron - account for entities that dont extend EntityMob
    {
        return 1; // Monster
    } else if ( entity instanceof EntityCreature || entity instanceof EntityAmbientCreature || entity.isCreatureType(EnumCreatureType.creature, false) 
             || entity.isCreatureType(EnumCreatureType.waterCreature, false) || entity.isCreatureType(EnumCreatureType.ambient, false))
    {
        return 2; // Animal
    // Cauldron end
    } else
    {
        return 3; // Misc
    }
}
 
Example 39
Project: RuneCraftery   File: RenderSlime.java   View source code 6 votes vote down vote up
protected int func_77090_a(EntitySlime p_77090_1_, int p_77090_2_, float p_77090_3_) {
   if(p_77090_1_.func_82150_aj()) {
      return 0;
   } else if(p_77090_2_ == 0) {
      this.func_77042_a(this.field_77092_a);
      GL11.glEnable(2977);
      GL11.glEnable(3042);
      GL11.glBlendFunc(770, 771);
      return 1;
   } else {
      if(p_77090_2_ == 1) {
         GL11.glDisable(3042);
         GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
      }

      return -1;
   }
}
 
Example 40
Project: RuneCraftery   File: RenderSlime.java   View source code 6 votes vote down vote up
/**
 * Determines whether Slime Render should pass or not.
 */
protected int shouldSlimeRenderPass(EntitySlime par1EntitySlime, int par2, float par3)
{
    if (par1EntitySlime.isInvisible())
    {
        return 0;
    }
    else if (par2 == 0)
    {
        this.setRenderPassModel(this.scaleAmount);
        GL11.glEnable(GL11.GL_NORMALIZE);
        GL11.glEnable(GL11.GL_BLEND);
        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
        return 1;
    }
    else
    {
        if (par2 == 1)
        {
            GL11.glDisable(GL11.GL_BLEND);
            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        }

        return -1;
    }
}