Java Code Examples for net.minecraft.entity.boss.EntityDragon

The following are top voted examples for showing how to use net.minecraft.entity.boss.EntityDragon. 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: MakeClayValuableAgain   File: ClayProgressionImprovements.java   Source Code and License 7 votes vote down vote up
@SubscribeEvent
public void dropClay(LivingDropsEvent event) {
    EntityLivingBase deadEntity = event.getEntityLiving();
    World world = deadEntity.getEntityWorld();
    BlockPos position = deadEntity.getPosition();
    double x = position.getX();
    double y = position.getY();
    double z = position.getZ();
    if (deadEntity instanceof EntityWitherSkeleton) {
        if (world.rand.nextInt(10) == 5) {
            event.getDrops().add(new EntityItem(world, x, y, z, new ItemStack(Items.CLAY_BALL)));
        }
    } else if (deadEntity instanceof EntityDragon || deadEntity instanceof EntityWither) {
        event.getDrops().add(new EntityItem(world, x, y, z, new ItemStack(Items.CLAY_BALL)));
    }
}
 
Example 2
Project: BaseClient   File: BiomeEndDecorator.java   Source Code and License 6 votes vote down vote up
protected void genDecorations(BiomeGenBase biomeGenBaseIn)
{
    this.generateOres();

    if (this.randomGenerator.nextInt(5) == 0)
    {
        int i = this.randomGenerator.nextInt(16) + 8;
        int j = this.randomGenerator.nextInt(16) + 8;
        this.spikeGen.generate(this.currentWorld, this.randomGenerator, this.currentWorld.getTopSolidOrLiquidBlock(this.field_180294_c.add(i, 0, j)));
    }

    if (this.field_180294_c.getX() == 0 && this.field_180294_c.getZ() == 0)
    {
        EntityDragon entitydragon = new EntityDragon(this.currentWorld);
        entitydragon.setLocationAndAngles(0.0D, 128.0D, 0.0D, this.randomGenerator.nextFloat() * 360.0F, 0.0F);
        this.currentWorld.spawnEntityInWorld(entitydragon);
    }
}
 
Example 3
Project: BaseClient   File: RenderDragon.java   Source Code and License 6 votes vote down vote up
protected void rotateCorpse(EntityDragon bat, float p_77043_2_, float p_77043_3_, float partialTicks)
{
    float f = (float)bat.getMovementOffsets(7, partialTicks)[0];
    float f1 = (float)(bat.getMovementOffsets(5, partialTicks)[1] - bat.getMovementOffsets(10, partialTicks)[1]);
    GlStateManager.rotate(-f, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate(f1 * 10.0F, 1.0F, 0.0F, 0.0F);
    GlStateManager.translate(0.0F, 0.0F, 1.0F);

    if (bat.deathTime > 0)
    {
        float f2 = ((float)bat.deathTime + partialTicks - 1.0F) / 20.0F * 1.6F;
        f2 = MathHelper.sqrt_float(f2);

        if (f2 > 1.0F)
        {
            f2 = 1.0F;
        }

        GlStateManager.rotate(f2 * this.getDeathMaxRotation(bat), 0.0F, 0.0F, 1.0F);
    }
}
 
Example 4
Project: BaseClient   File: LayerEnderDragonEyes.java   Source Code and License 6 votes vote down vote up
public void doRenderLayer(EntityDragon entitylivingbaseIn, float p_177141_2_, float p_177141_3_, float partialTicks, float p_177141_5_, float p_177141_6_, float p_177141_7_, float scale)
{
    this.dragonRenderer.bindTexture(TEXTURE);
    GlStateManager.enableBlend();
    GlStateManager.disableAlpha();
    GlStateManager.blendFunc(1, 1);
    GlStateManager.disableLighting();
    GlStateManager.depthFunc(514);
    int i = 61680;
    int j = i % 65536;
    int k = i / 65536;
    OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)j / 1.0F, (float)k / 1.0F);
    GlStateManager.enableLighting();
    GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
    this.dragonRenderer.getMainModel().render(entitylivingbaseIn, p_177141_2_, p_177141_3_, p_177141_5_, p_177141_6_, p_177141_7_, scale);
    this.dragonRenderer.func_177105_a(entitylivingbaseIn, partialTicks);
    GlStateManager.disableBlend();
    GlStateManager.enableAlpha();
    GlStateManager.depthFunc(515);
}
 
Example 5
Project: BaseClient   File: RenderDragon.java   Source Code and License 6 votes vote down vote up
protected void rotateCorpse(EntityDragon bat, float p_77043_2_, float p_77043_3_, float partialTicks)
{
    float f = (float)bat.getMovementOffsets(7, partialTicks)[0];
    float f1 = (float)(bat.getMovementOffsets(5, partialTicks)[1] - bat.getMovementOffsets(10, partialTicks)[1]);
    GlStateManager.rotate(-f, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate(f1 * 10.0F, 1.0F, 0.0F, 0.0F);
    GlStateManager.translate(0.0F, 0.0F, 1.0F);

    if (bat.deathTime > 0)
    {
        float f2 = ((float)bat.deathTime + partialTicks - 1.0F) / 20.0F * 1.6F;
        f2 = MathHelper.sqrt_float(f2);

        if (f2 > 1.0F)
        {
            f2 = 1.0F;
        }

        GlStateManager.rotate(f2 * this.getDeathMaxRotation(bat), 0.0F, 0.0F, 1.0F);
    }
}
 
Example 6
Project: BaseClient   File: LayerEnderDragonEyes.java   Source Code and License 6 votes vote down vote up
public void doRenderLayer(EntityDragon entitylivingbaseIn, float p_177141_2_, float p_177141_3_, float partialTicks, float p_177141_5_, float p_177141_6_, float p_177141_7_, float scale)
{
    this.dragonRenderer.bindTexture(TEXTURE);
    GlStateManager.enableBlend();
    GlStateManager.disableAlpha();
    GlStateManager.blendFunc(1, 1);
    GlStateManager.disableLighting();
    GlStateManager.depthFunc(514);
    int i = 61680;
    int j = i % 65536;
    int k = i / 65536;
    OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)j / 1.0F, (float)k / 1.0F);
    GlStateManager.enableLighting();
    GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
    this.dragonRenderer.getMainModel().render(entitylivingbaseIn, p_177141_2_, p_177141_3_, p_177141_5_, p_177141_6_, p_177141_7_, scale);
    this.dragonRenderer.func_177105_a(entitylivingbaseIn, partialTicks);
    GlStateManager.disableBlend();
    GlStateManager.enableAlpha();
    GlStateManager.depthFunc(515);
}
 
Example 7
Project: CustomWorldGen   File: LayerEnderDragonEyes.java   Source Code and License 6 votes vote down vote up
public void doRenderLayer(EntityDragon entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale)
{
    this.dragonRenderer.bindTexture(TEXTURE);
    GlStateManager.enableBlend();
    GlStateManager.disableAlpha();
    GlStateManager.blendFunc(GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ONE);
    GlStateManager.disableLighting();
    GlStateManager.depthFunc(514);
    int i = 61680;
    int j = 61680;
    int k = 0;
    OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 61680.0F, 0.0F);
    GlStateManager.enableLighting();
    GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
    this.dragonRenderer.getMainModel().render(entitylivingbaseIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale);
    this.dragonRenderer.setLightmap(entitylivingbaseIn, partialTicks);
    GlStateManager.disableBlend();
    GlStateManager.enableAlpha();
    GlStateManager.depthFunc(515);
}
 
Example 8
Project: Backmemed   File: DragonFightManager.java   Source Code and License 6 votes vote down vote up
public void processDragonDeath(EntityDragon dragon)
{
    if (dragon.getUniqueID().equals(this.dragonUniqueId))
    {
        this.bossInfo.setPercent(0.0F);
        this.bossInfo.setVisible(false);
        this.generatePortal(true);
        this.spawnNewGateway();

        if (!this.previouslyKilled)
        {
            this.world.setBlockState(this.world.getHeight(WorldGenEndPodium.END_PODIUM_LOCATION), Blocks.DRAGON_EGG.getDefaultState());
        }

        this.previouslyKilled = true;
        this.dragonKilled = true;
    }
}
 
Example 9
Project: Backmemed   File: DragonFightManager.java   Source Code and License 6 votes vote down vote up
public void onCrystalDestroyed(EntityEnderCrystal crystal, DamageSource dmgSrc)
{
    if (this.respawnState != null && this.crystals.contains(crystal))
    {
        LOGGER.debug("Aborting respawn sequence");
        this.respawnState = null;
        this.respawnStateTicks = 0;
        this.resetSpikeCrystals();
        this.generatePortal(true);
    }
    else
    {
        this.findAliveCrystals();
        Entity entity = this.world.getEntityFromUuid(this.dragonUniqueId);

        if (entity instanceof EntityDragon)
        {
            ((EntityDragon)entity).onCrystalDestroyed(crystal, new BlockPos(crystal), dmgSrc);
        }
    }
}
 
Example 10
Project: Backmemed   File: PhaseManager.java   Source Code and License 6 votes vote down vote up
public void setPhase(PhaseList<?> phaseIn)
{
    if (this.phase == null || phaseIn != this.phase.getPhaseList())
    {
        if (this.phase != null)
        {
            this.phase.removeAreaEffect();
        }

        this.phase = this.getPhase(phaseIn);

        if (!this.dragon.world.isRemote)
        {
            this.dragon.getDataManager().set(EntityDragon.PHASE, Integer.valueOf(phaseIn.getId()));
        }

        LOGGER.debug("Dragon is now in phase {} on the {}", new Object[] {phaseIn, this.dragon.world.isRemote ? "client" : "server"});
        this.phase.initPhase();
    }
}
 
Example 11
Project: Backmemed   File: RenderDragon.java   Source Code and License 6 votes vote down vote up
protected void rotateCorpse(EntityDragon entityLiving, float p_77043_2_, float p_77043_3_, float partialTicks)
{
    float f = (float)entityLiving.getMovementOffsets(7, partialTicks)[0];
    float f1 = (float)(entityLiving.getMovementOffsets(5, partialTicks)[1] - entityLiving.getMovementOffsets(10, partialTicks)[1]);
    GlStateManager.rotate(-f, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate(f1 * 10.0F, 1.0F, 0.0F, 0.0F);
    GlStateManager.translate(0.0F, 0.0F, 1.0F);

    if (entityLiving.deathTime > 0)
    {
        float f2 = ((float)entityLiving.deathTime + partialTicks - 1.0F) / 20.0F * 1.6F;
        f2 = MathHelper.sqrt(f2);

        if (f2 > 1.0F)
        {
            f2 = 1.0F;
        }

        GlStateManager.rotate(f2 * this.getDeathMaxRotation(entityLiving), 0.0F, 0.0F, 1.0F);
    }
}
 
Example 12
Project: CustomWorldGen   File: DragonFightManager.java   Source Code and License 6 votes vote down vote up
public void processDragonDeath(EntityDragon dragon)
{
    if (dragon.getUniqueID().equals(this.dragonUniqueId))
    {
        this.bossInfo.setPercent(0.0F);
        this.bossInfo.setVisible(false);
        this.generatePortal(true);
        this.spawnNewGateway();

        if (!this.previouslyKilled)
        {
            this.world.setBlockState(this.world.getHeight(WorldGenEndPodium.END_PODIUM_LOCATION), Blocks.DRAGON_EGG.getDefaultState());
        }

        this.previouslyKilled = true;
        this.dragonKilled = true;
    }
}
 
Example 13
Project: CustomWorldGen   File: DragonFightManager.java   Source Code and License 6 votes vote down vote up
public void onCrystalDestroyed(EntityEnderCrystal crystal, DamageSource dmgSrc)
{
    if (this.respawnState != null && this.crystals.contains(crystal))
    {
        LOGGER.debug("Aborting respawn sequence");
        this.respawnState = null;
        this.respawnStateTicks = 0;
        this.resetSpikeCrystals();
        this.generatePortal(true);
    }
    else
    {
        this.findAliveCrystals();
        Entity entity = this.world.getEntityFromUuid(this.dragonUniqueId);

        if (entity instanceof EntityDragon)
        {
            ((EntityDragon)entity).onCrystalDestroyed(crystal, new BlockPos(crystal), dmgSrc);
        }
    }
}
 
Example 14
Project: CustomWorldGen   File: PhaseManager.java   Source Code and License 6 votes vote down vote up
public void setPhase(PhaseList<?> phaseIn)
{
    if (this.phase == null || phaseIn != this.phase.getPhaseList())
    {
        if (this.phase != null)
        {
            this.phase.removeAreaEffect();
        }

        this.phase = this.getPhase(phaseIn);

        if (!this.dragon.worldObj.isRemote)
        {
            this.dragon.getDataManager().set(EntityDragon.PHASE, Integer.valueOf(phaseIn.getId()));
        }

        LOGGER.debug("Dragon is now in phase {} on the {}", new Object[] {phaseIn, this.dragon.worldObj.isRemote ? "client" : "server"});
        this.phase.initPhase();
    }
}
 
Example 15
Project: CustomWorldGen   File: RenderDragon.java   Source Code and License 6 votes vote down vote up
protected void rotateCorpse(EntityDragon entityLiving, float p_77043_2_, float p_77043_3_, float partialTicks)
{
    float f = (float)entityLiving.getMovementOffsets(7, partialTicks)[0];
    float f1 = (float)(entityLiving.getMovementOffsets(5, partialTicks)[1] - entityLiving.getMovementOffsets(10, partialTicks)[1]);
    GlStateManager.rotate(-f, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate(f1 * 10.0F, 1.0F, 0.0F, 0.0F);
    GlStateManager.translate(0.0F, 0.0F, 1.0F);

    if (entityLiving.deathTime > 0)
    {
        float f2 = ((float)entityLiving.deathTime + partialTicks - 1.0F) / 20.0F * 1.6F;
        f2 = MathHelper.sqrt_float(f2);

        if (f2 > 1.0F)
        {
            f2 = 1.0F;
        }

        GlStateManager.rotate(f2 * this.getDeathMaxRotation(entityLiving), 0.0F, 0.0F, 1.0F);
    }
}
 
Example 16
Project: ClientAPI   File: EntityFilters.java   Source Code and License 5 votes vote down vote up
/**
 * Checks if the specified entity is a hostile
 *
 * @param e The entity
 * @return Whether or not the entity is a hostile
 */
public static boolean isHostile(Entity e) {
    if (e instanceof EntityPigZombie)
        return isAngry((EntityPigZombie) e);

    if (e instanceof EntityIronGolem)
        return isAngry((EntityIronGolem) e);

    if (e instanceof EntityPolarBear)
        return isAngry((EntityPolarBear) e);

    if (e instanceof EntityMob)
        return true;

    if (e instanceof EntitySlime)
        return true;

    if (e instanceof EntityShulker)
        return true;

    if (e instanceof EntityGhast)
        return true;

    if (e instanceof EntityDragon)
        return true;

    return false;
}
 
Example 17
Project: Uranium   File: ActivationRange.java   Source Code and License 5 votes vote down vote up
/**
 * These entities are excluded from Activation range checks.
 *
 * @param entity
 * @param world
 * @return boolean If it should always tick.
 */
public static boolean initializeEntityActivationState(Entity entity, SpigotWorldConfig config)
{
    // Cauldron start - another fix for Proxy Worlds
    if (config == null && DimensionManager.getWorld(0) != null)
    {
        config = DimensionManager.getWorld(0).spigotConfig;
    }
    else
    {
        return true;
    }
    // Cauldron end

    if ( ( entity.activationType == 3 && config.miscActivationRange == 0 )
            || ( entity.activationType == 2 && config.animalActivationRange == 0 )
            || ( entity.activationType == 1 && config.monsterActivationRange == 0 )
            || (entity instanceof EntityPlayer && !(entity instanceof FakePlayer)) // Cauldron
            || entity instanceof EntityThrowable
            || entity instanceof EntityDragon
            || entity instanceof EntityDragonPart
            || entity instanceof EntityWither
            || entity instanceof EntityFireball
            || entity instanceof EntityWeatherEffect
            || entity instanceof EntityTNTPrimed
            || entity instanceof EntityEnderCrystal
            || entity instanceof EntityFireworkRocket
            || entity instanceof EntityVillager
            // Cauldron start - force ticks for entities with superclass of Entity and not a creature/monster
            || (entity.getClass().getSuperclass() == Entity.class && !entity.isCreatureType(EnumCreatureType.creature, false)
            && !entity.isCreatureType(EnumCreatureType.ambient, false) && !entity.isCreatureType(EnumCreatureType.monster, false)
            && !entity.isCreatureType(EnumCreatureType.waterCreature, false)))
    {
        return true;
    }

    return false;
}
 
Example 18
Project: BaseClient   File: RenderDragon.java   Source Code and License 5 votes vote down vote up
/**
 * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
 * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
 * (Render<T extends Entity>) and this method has signature public void doRender(T entity, double d, double d1,
 * double d2, float f, float f1). But JAD is pre 1.5 so doe
 */
public void doRender(EntityDragon entity, double x, double y, double z, float entityYaw, float partialTicks)
{
    BossStatus.setBossStatus(entity, false);
    super.doRender(entity, x, y, z, entityYaw, partialTicks);

    if (entity.healingEnderCrystal != null)
    {
        this.drawRechargeRay(entity, x, y, z, partialTicks);
    }
}
 
Example 19
Project: CustomWorldGen   File: RenderDragon.java   Source Code and License 5 votes vote down vote up
/**
 * Renders the desired {@code T} type Entity.
 */
public void doRender(EntityDragon entity, double x, double y, double z, float entityYaw, float partialTicks)
{
    super.doRender(entity, x, y, z, entityYaw, partialTicks);

    if (entity.healingEnderCrystal != null)
    {
        this.bindTexture(ENDERCRYSTAL_BEAM_TEXTURES);
        float f = MathHelper.sin(((float)entity.healingEnderCrystal.ticksExisted + partialTicks) * 0.2F) / 2.0F + 0.5F;
        f = (f * f + f) * 0.2F;
        renderCrystalBeams(x, y, z, partialTicks, entity.posX + (entity.prevPosX - entity.posX) * (double)(1.0F - partialTicks), entity.posY + (entity.prevPosY - entity.posY) * (double)(1.0F - partialTicks), entity.posZ + (entity.prevPosZ - entity.posZ) * (double)(1.0F - partialTicks), entity.ticksExisted, entity.healingEnderCrystal.posX, (double)f + entity.healingEnderCrystal.posY, entity.healingEnderCrystal.posZ);
    }
}
 
Example 20
Project: BaseClient   File: RenderDragon.java   Source Code and License 5 votes vote down vote up
/**
 * Renders the model in RenderLiving
 */
protected void renderModel(EntityDragon entitylivingbaseIn, float p_77036_2_, float p_77036_3_, float p_77036_4_, float p_77036_5_, float p_77036_6_, float p_77036_7_)
{
    if (entitylivingbaseIn.deathTicks > 0)
    {
        float f = (float)entitylivingbaseIn.deathTicks / 200.0F;
        GlStateManager.depthFunc(515);
        GlStateManager.enableAlpha();
        GlStateManager.alphaFunc(516, f);
        this.bindTexture(enderDragonExplodingTextures);
        this.mainModel.render(entitylivingbaseIn, p_77036_2_, p_77036_3_, p_77036_4_, p_77036_5_, p_77036_6_, p_77036_7_);
        GlStateManager.alphaFunc(516, 0.1F);
        GlStateManager.depthFunc(514);
    }

    this.bindEntityTexture(entitylivingbaseIn);
    this.mainModel.render(entitylivingbaseIn, p_77036_2_, p_77036_3_, p_77036_4_, p_77036_5_, p_77036_6_, p_77036_7_);

    if (entitylivingbaseIn.hurtTime > 0)
    {
        GlStateManager.depthFunc(514);
        GlStateManager.disableTexture2D();
        GlStateManager.enableBlend();
        GlStateManager.blendFunc(770, 771);
        GlStateManager.color(1.0F, 0.0F, 0.0F, 0.5F);
        this.mainModel.render(entitylivingbaseIn, p_77036_2_, p_77036_3_, p_77036_4_, p_77036_5_, p_77036_6_, p_77036_7_);
        GlStateManager.enableTexture2D();
        GlStateManager.disableBlend();
        GlStateManager.depthFunc(515);
    }
}
 
Example 21
Project: BaseClient   File: RenderDragon.java   Source Code and License 5 votes vote down vote up
/**
 * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
 * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
 * (Render<T extends Entity>) and this method has signature public void doRender(T entity, double d, double d1,
 * double d2, float f, float f1). But JAD is pre 1.5 so doe
 */
public void doRender(EntityDragon entity, double x, double y, double z, float entityYaw, float partialTicks)
{
    BossStatus.setBossStatus(entity, false);
    super.doRender(entity, x, y, z, entityYaw, partialTicks);

    if (entity.healingEnderCrystal != null)
    {
        this.drawRechargeRay(entity, x, y, z, partialTicks);
    }
}
 
Example 22
Project: EndermanEvolution   File: EntityUtils.java   Source Code and License 5 votes vote down vote up
public static ItemStack getSkullDrop(EntityLivingBase entity) {
	if (entity instanceof EntitySkeleton) {
		return new ItemStack(Items.SKULL, 1, 0);
	}
	if (entity instanceof EntityWitherSkeleton) {
		return new ItemStack(Items.SKULL, 1, 1);
	}
	if (entity instanceof EntityZombie) {
		return new ItemStack(Items.SKULL, 1, 2);
	}
	if (entity instanceof EntityCreeper) {
		return new ItemStack(Items.SKULL, 1, 4);
	}
	if (entity instanceof EntityPlayer) {
		ItemStack head = new ItemStack(Items.SKULL, 1, 3);
		NBTTagCompound nametag = new NBTTagCompound();
		nametag.setString("SkullOwner", entity.getDisplayName().getFormattedText());
		head.setTagCompound(nametag);
		return head;
	}
	if (entity instanceof EntityDragon) {
		return new ItemStack(Items.SKULL, 1, 5);
	}
	if (entity instanceof EntityEnderman) {
		if (entity instanceof EntityEvolvedEnderman) {
			return new ItemStack(ModItems.SKULL_EVOLVED_ENDERMAN);
		}
		return new ItemStack(ModItems.SKULL_ENDERMAN);
	}
	if (entity instanceof EntityFrienderman) {
		return new ItemStack(ModItems.SKULL_FRIENDERMAN);
	}
	return null;
}
 
Example 23
Project: Backmemed   File: DragonFightManager.java   Source Code and License 5 votes vote down vote up
private void spawnDragon()
{
    this.world.getChunkFromBlockCoords(new BlockPos(0, 128, 0));
    EntityDragon entitydragon = new EntityDragon(this.world);
    entitydragon.getPhaseManager().setPhase(PhaseList.HOLDING_PATTERN);
    entitydragon.setLocationAndAngles(0.0D, 128.0D, 0.0D, this.world.rand.nextFloat() * 360.0F, 0.0F);
    this.world.spawnEntityInWorld(entitydragon);
    this.dragonUniqueId = entitydragon.getUniqueID();
}
 
Example 24
Project: Backmemed   File: DragonFightManager.java   Source Code and License 5 votes vote down vote up
public void dragonUpdate(EntityDragon dragonIn)
{
    if (dragonIn.getUniqueID().equals(this.dragonUniqueId))
    {
        this.bossInfo.setPercent(dragonIn.getHealth() / dragonIn.getMaxHealth());
        this.ticksSinceDragonSeen = 0;

        if (dragonIn.hasCustomName())
        {
            this.bossInfo.setName(dragonIn.getDisplayName());
        }
    }
}
 
Example 25
Project: Backmemed   File: EntityEnderCrystal.java   Source Code and License 5 votes vote down vote up
/**
 * Called when the entity is attacked.
 */
public boolean attackEntityFrom(DamageSource source, float amount)
{
    if (this.isEntityInvulnerable(source))
    {
        return false;
    }
    else if (source.getEntity() instanceof EntityDragon)
    {
        return false;
    }
    else
    {
        if (!this.isDead && !this.world.isRemote)
        {
            this.setDead();

            if (!this.world.isRemote)
            {
                this.world.createExplosion((Entity)null, this.posX, this.posY, this.posZ, 6.0F, true);
                this.onCrystalDestroyed(source);
            }
        }

        return true;
    }
}
 
Example 26
Project: Backmemed   File: PhaseList.java   Source Code and License 5 votes vote down vote up
public IPhase createPhase(EntityDragon dragon)
{
    try
    {
        Constructor <? extends IPhase > constructor = this.getConstructor();
        return (IPhase)constructor.newInstance(new Object[] {dragon});
    }
    catch (Exception exception)
    {
        throw new Error(exception);
    }
}
 
Example 27
Project: Backmemed   File: RenderDragon.java   Source Code and License 5 votes vote down vote up
/**
 * Renders the model in RenderLiving
 */
protected void renderModel(EntityDragon entitylivingbaseIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor)
{
    if (entitylivingbaseIn.deathTicks > 0)
    {
        float f = (float)entitylivingbaseIn.deathTicks / 200.0F;
        GlStateManager.depthFunc(515);
        GlStateManager.enableAlpha();
        GlStateManager.alphaFunc(516, f);
        this.bindTexture(DRAGON_EXPLODING_TEXTURES);
        this.mainModel.render(entitylivingbaseIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor);
        GlStateManager.alphaFunc(516, 0.1F);
        GlStateManager.depthFunc(514);
    }

    this.bindEntityTexture(entitylivingbaseIn);
    this.mainModel.render(entitylivingbaseIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor);

    if (entitylivingbaseIn.hurtTime > 0)
    {
        GlStateManager.depthFunc(514);
        GlStateManager.disableTexture2D();
        GlStateManager.enableBlend();
        GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA);
        GlStateManager.color(1.0F, 0.0F, 0.0F, 0.5F);
        this.mainModel.render(entitylivingbaseIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor);
        GlStateManager.enableTexture2D();
        GlStateManager.disableBlend();
        GlStateManager.depthFunc(515);
    }
}
 
Example 28
Project: Backmemed   File: RenderDragon.java   Source Code and License 5 votes vote down vote up
/**
 * Renders the desired {@code T} type Entity.
 */
public void doRender(EntityDragon entity, double x, double y, double z, float entityYaw, float partialTicks)
{
    super.doRender(entity, x, y, z, entityYaw, partialTicks);

    if (entity.healingEnderCrystal != null)
    {
        this.bindTexture(ENDERCRYSTAL_BEAM_TEXTURES);
        float f = MathHelper.sin(((float)entity.healingEnderCrystal.ticksExisted + partialTicks) * 0.2F) / 2.0F + 0.5F;
        f = (f * f + f) * 0.2F;
        renderCrystalBeams(x, y, z, partialTicks, entity.posX + (entity.prevPosX - entity.posX) * (double)(1.0F - partialTicks), entity.posY + (entity.prevPosY - entity.posY) * (double)(1.0F - partialTicks), entity.posZ + (entity.prevPosZ - entity.posZ) * (double)(1.0F - partialTicks), entity.ticksExisted, entity.healingEnderCrystal.posX, (double)f + entity.healingEnderCrystal.posY, entity.healingEnderCrystal.posZ);
    }
}
 
Example 29
Project: Backmemed   File: LayerEnderDragonEyes.java   Source Code and License 5 votes vote down vote up
public void doRenderLayer(EntityDragon entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale)
{
    this.dragonRenderer.bindTexture(TEXTURE);
    GlStateManager.enableBlend();
    GlStateManager.disableAlpha();
    GlStateManager.blendFunc(GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ONE);
    GlStateManager.disableLighting();
    GlStateManager.depthFunc(514);
    int i = 61680;
    int j = 61680;
    int k = 0;
    OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 61680.0F, 0.0F);
    GlStateManager.enableLighting();
    GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
    Minecraft.getMinecraft().entityRenderer.func_191514_d(true);

    if (Config.isShaders())
    {
        Shaders.beginSpiderEyes();
    }

    Config.getRenderGlobal().renderOverlayEyes = true;
    this.dragonRenderer.getMainModel().render(entitylivingbaseIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale);
    Config.getRenderGlobal().renderOverlayEyes = false;
    Minecraft.getMinecraft().entityRenderer.func_191514_d(false);
    this.dragonRenderer.setLightmap(entitylivingbaseIn, partialTicks);
    GlStateManager.disableBlend();
    GlStateManager.enableAlpha();
    GlStateManager.depthFunc(515);
}
 
Example 30
Project: IceMod   File: IceLands.java   Source Code and License 5 votes vote down vote up
public IceLands(int par1)
{
    super(par1);
    
    this.setBiomeName("Icelands");
    
    this.topBlock = (byte)IceMod.IcyOre.blockID;
    this.fillerBlock = (byte)Block.ice.blockID;
    
    this.theBiomeDecorator.bigMushroomsPerChunk = 10;
    this.theBiomeDecorator.treesPerChunk = 5;
    this.theBiomeDecorator.clayPerChunk  = 3;
    this.theBiomeDecorator.reedsPerChunk = 1;

    this.spawnableMonsterList.add(new SpawnListEntry(EntitySnowman.class, 25, 4, 8));
    this.spawnableCreatureList.add(new SpawnListEntry(EntityCow.class, 25, 4, 8));
    this.spawnableMonsterList.add(new SpawnListEntry(EntityDragon.class, 1, 1, 1));
    this.spawnableMonsterList.add(new SpawnListEntry(EntityIronGolem.class, 1, 1, 1));
    
    this.setMinMaxHeight(0.1F, 0.5F);
    //mnmx
    this.setTemperatureRainfall(0.7F, 0.2F);
   
}
 
Example 31
Project: CustomWorldGen   File: DragonFightManager.java   Source Code and License 5 votes vote down vote up
private void spawnDragon()
{
    this.world.getChunkFromBlockCoords(new BlockPos(0, 128, 0));
    EntityDragon entitydragon = new EntityDragon(this.world);
    entitydragon.getPhaseManager().setPhase(PhaseList.HOLDING_PATTERN);
    entitydragon.setLocationAndAngles(0.0D, 128.0D, 0.0D, this.world.rand.nextFloat() * 360.0F, 0.0F);
    this.world.spawnEntityInWorld(entitydragon);
    this.dragonUniqueId = entitydragon.getUniqueID();
}
 
Example 32
Project: CustomWorldGen   File: DragonFightManager.java   Source Code and License 5 votes vote down vote up
public void dragonUpdate(EntityDragon dragonIn)
{
    if (dragonIn.getUniqueID().equals(this.dragonUniqueId))
    {
        this.bossInfo.setPercent(dragonIn.getHealth() / dragonIn.getMaxHealth());
        this.ticksSinceDragonSeen = 0;
    }
}
 
Example 33
Project: CustomWorldGen   File: EntityEnderCrystal.java   Source Code and License 5 votes vote down vote up
/**
 * Called when the entity is attacked.
 */
public boolean attackEntityFrom(DamageSource source, float amount)
{
    if (this.isEntityInvulnerable(source))
    {
        return false;
    }
    else if (source.getEntity() instanceof EntityDragon)
    {
        return false;
    }
    else
    {
        if (!this.isDead && !this.worldObj.isRemote)
        {
            this.setDead();

            if (!this.worldObj.isRemote)
            {
                this.worldObj.createExplosion((Entity)null, this.posX, this.posY, this.posZ, 6.0F, true);
                this.onCrystalDestroyed(source);
            }
        }

        return true;
    }
}
 
Example 34
Project: CustomWorldGen   File: PhaseList.java   Source Code and License 5 votes vote down vote up
public IPhase createPhase(EntityDragon dragon)
{
    try
    {
        Constructor <? extends IPhase > constructor = this.getConstructor();
        return (IPhase)constructor.newInstance(new Object[] {dragon});
    }
    catch (Exception exception)
    {
        throw new Error(exception);
    }
}
 
Example 35
Project: CustomWorldGen   File: RenderDragon.java   Source Code and License 5 votes vote down vote up
/**
 * Renders the model in RenderLiving
 */
protected void renderModel(EntityDragon entitylivingbaseIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor)
{
    if (entitylivingbaseIn.deathTicks > 0)
    {
        float f = (float)entitylivingbaseIn.deathTicks / 200.0F;
        GlStateManager.depthFunc(515);
        GlStateManager.enableAlpha();
        GlStateManager.alphaFunc(516, f);
        this.bindTexture(DRAGON_EXPLODING_TEXTURES);
        this.mainModel.render(entitylivingbaseIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor);
        GlStateManager.alphaFunc(516, 0.1F);
        GlStateManager.depthFunc(514);
    }

    this.bindEntityTexture(entitylivingbaseIn);
    this.mainModel.render(entitylivingbaseIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor);

    if (entitylivingbaseIn.hurtTime > 0)
    {
        GlStateManager.depthFunc(514);
        GlStateManager.disableTexture2D();
        GlStateManager.enableBlend();
        GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA);
        GlStateManager.color(1.0F, 0.0F, 0.0F, 0.5F);
        this.mainModel.render(entitylivingbaseIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor);
        GlStateManager.enableTexture2D();
        GlStateManager.disableBlend();
        GlStateManager.depthFunc(515);
    }
}
 
Example 36
Project: Uranium   File: CraftEnderDragon.java   Source Code and License 4 votes vote down vote up
public CraftEnderDragon(CraftServer server, EntityDragon entity) {
    super(server, entity);
}
 
Example 37
Project: Uranium   File: CraftEnderDragon.java   Source Code and License 4 votes vote down vote up
@Override
public EntityDragon getHandle() {
    return (EntityDragon) entity;
}
 
Example 38
Project: BaseClient   File: RenderManager.java   Source Code and License 4 votes vote down vote up
public RenderManager(TextureManager renderEngineIn, RenderItem itemRendererIn)
{
    this.renderEngine = renderEngineIn;
    this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider(this));
    this.entityRenderMap.put(EntitySpider.class, new RenderSpider(this));
    this.entityRenderMap.put(EntityPig.class, new RenderPig(this, new ModelPig(), 0.7F));
    this.entityRenderMap.put(EntitySheep.class, new RenderSheep(this, new ModelSheep2(), 0.7F));
    this.entityRenderMap.put(EntityCow.class, new RenderCow(this, new ModelCow(), 0.7F));
    this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(this, new ModelCow(), 0.7F));
    this.entityRenderMap.put(EntityWolf.class, new RenderWolf(this, new ModelWolf(), 0.5F));
    this.entityRenderMap.put(EntityChicken.class, new RenderChicken(this, new ModelChicken(), 0.3F));
    this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(this, new ModelOcelot(), 0.4F));
    this.entityRenderMap.put(EntityRabbit.class, new RenderRabbit(this, new ModelRabbit(), 0.3F));
    this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish(this));
    this.entityRenderMap.put(EntityEndermite.class, new RenderEndermite(this));
    this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper(this));
    this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman(this));
    this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan(this));
    this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton(this));
    this.entityRenderMap.put(EntityWitch.class, new RenderWitch(this));
    this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze(this));
    this.entityRenderMap.put(EntityPigZombie.class, new RenderPigZombie(this));
    this.entityRenderMap.put(EntityZombie.class, new RenderZombie(this));
    this.entityRenderMap.put(EntitySlime.class, new RenderSlime(this, new ModelSlime(16), 0.25F));
    this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube(this));
    this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(this, new ModelZombie(), 0.5F, 6.0F));
    this.entityRenderMap.put(EntityGhast.class, new RenderGhast(this));
    this.entityRenderMap.put(EntitySquid.class, new RenderSquid(this, new ModelSquid(), 0.7F));
    this.entityRenderMap.put(EntityVillager.class, new RenderVillager(this));
    this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem(this));
    this.entityRenderMap.put(EntityBat.class, new RenderBat(this));
    this.entityRenderMap.put(EntityGuardian.class, new RenderGuardian(this));
    this.entityRenderMap.put(EntityDragon.class, new RenderDragon(this));
    this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal(this));
    this.entityRenderMap.put(EntityWither.class, new RenderWither(this));
    this.entityRenderMap.put(Entity.class, new RenderEntity(this));
    this.entityRenderMap.put(EntityPainting.class, new RenderPainting(this));
    this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame(this, itemRendererIn));
    this.entityRenderMap.put(EntityLeashKnot.class, new RenderLeashKnot(this));
    this.entityRenderMap.put(EntityArrow.class, new RenderArrow(this));
    this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(this, Items.snowball, itemRendererIn));
    this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(this, Items.ender_pearl, itemRendererIn));
    this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(this, Items.ender_eye, itemRendererIn));
    this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(this, Items.egg, itemRendererIn));
    this.entityRenderMap.put(EntityPotion.class, new RenderPotion(this, itemRendererIn));
    this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(this, Items.experience_bottle, itemRendererIn));
    this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(this, Items.fireworks, itemRendererIn));
    this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(this, 2.0F));
    this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(this, 0.5F));
    this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull(this));
    this.entityRenderMap.put(EntityItem.class, new RenderEntityItem(this, itemRendererIn));
    this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb(this));
    this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed(this));
    this.entityRenderMap.put(EntityFallingBlock.class, new RenderFallingBlock(this));
    this.entityRenderMap.put(EntityArmorStand.class, new ArmorStandRenderer(this));
    this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart(this));
    this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner(this));
    this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart(this));
    this.entityRenderMap.put(EntityBoat.class, new RenderBoat(this));
    this.entityRenderMap.put(EntityFishHook.class, new RenderFish(this));
    this.entityRenderMap.put(EntityHorse.class, new RenderHorse(this, new ModelHorse(), 0.75F));
    this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt(this));
    this.playerRenderer = new RenderPlayer(this);
    this.skinMap.put("default", this.playerRenderer);
    this.skinMap.put("slim", new RenderPlayer(this, true));
    PlayerItemsLayer.register(this.skinMap);

    if (Reflector.RenderingRegistry_loadEntityRenderers.exists())
    {
        Reflector.call(Reflector.RenderingRegistry_loadEntityRenderers, new Object[] {this.entityRenderMap});
    }
}
 
Example 39
Project: CustomWorldGen   File: RenderDragon.java   Source Code and License 4 votes vote down vote up
/**
 * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
 */
protected ResourceLocation getEntityTexture(EntityDragon entity)
{
    return DRAGON_TEXTURES;
}
 
Example 40
Project: BaseClient   File: RenderDragon.java   Source Code and License 4 votes vote down vote up
/**
 * Draws the ray from the dragon to it's crystal
 */
protected void drawRechargeRay(EntityDragon dragon, double p_180574_2_, double p_180574_4_, double p_180574_6_, float p_180574_8_)
{
    float f = (float)dragon.healingEnderCrystal.innerRotation + p_180574_8_;
    float f1 = MathHelper.sin(f * 0.2F) / 2.0F + 0.5F;
    f1 = (f1 * f1 + f1) * 0.2F;
    float f2 = (float)(dragon.healingEnderCrystal.posX - dragon.posX - (dragon.prevPosX - dragon.posX) * (double)(1.0F - p_180574_8_));
    float f3 = (float)((double)f1 + dragon.healingEnderCrystal.posY - 1.0D - dragon.posY - (dragon.prevPosY - dragon.posY) * (double)(1.0F - p_180574_8_));
    float f4 = (float)(dragon.healingEnderCrystal.posZ - dragon.posZ - (dragon.prevPosZ - dragon.posZ) * (double)(1.0F - p_180574_8_));
    float f5 = MathHelper.sqrt_float(f2 * f2 + f4 * f4);
    float f6 = MathHelper.sqrt_float(f2 * f2 + f3 * f3 + f4 * f4);
    GlStateManager.pushMatrix();
    GlStateManager.translate((float)p_180574_2_, (float)p_180574_4_ + 2.0F, (float)p_180574_6_);
    GlStateManager.rotate((float)(-Math.atan2((double)f4, (double)f2)) * 180.0F / (float)Math.PI - 90.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate((float)(-Math.atan2((double)f5, (double)f3)) * 180.0F / (float)Math.PI - 90.0F, 1.0F, 0.0F, 0.0F);
    Tessellator tessellator = Tessellator.getInstance();
    WorldRenderer worldrenderer = tessellator.getWorldRenderer();
    RenderHelper.disableStandardItemLighting();
    GlStateManager.disableCull();
    this.bindTexture(enderDragonCrystalBeamTextures);
    GlStateManager.shadeModel(7425);
    float f7 = 0.0F - ((float)dragon.ticksExisted + p_180574_8_) * 0.01F;
    float f8 = MathHelper.sqrt_float(f2 * f2 + f3 * f3 + f4 * f4) / 32.0F - ((float)dragon.ticksExisted + p_180574_8_) * 0.01F;
    worldrenderer.begin(5, DefaultVertexFormats.POSITION_TEX_COLOR);
    int i = 8;

    for (int j = 0; j <= 8; ++j)
    {
        float f9 = MathHelper.sin((float)(j % 8) * (float)Math.PI * 2.0F / 8.0F) * 0.75F;
        float f10 = MathHelper.cos((float)(j % 8) * (float)Math.PI * 2.0F / 8.0F) * 0.75F;
        float f11 = (float)(j % 8) * 1.0F / 8.0F;
        worldrenderer.pos((double)(f9 * 0.2F), (double)(f10 * 0.2F), 0.0D).tex((double)f11, (double)f8).color(0, 0, 0, 255).endVertex();
        worldrenderer.pos((double)f9, (double)f10, (double)f6).tex((double)f11, (double)f7).color(255, 255, 255, 255).endVertex();
    }

    tessellator.draw();
    GlStateManager.enableCull();
    GlStateManager.shadeModel(7424);
    RenderHelper.enableStandardItemLighting();
    GlStateManager.popMatrix();
}
 
Example 41
Project: BaseClient   File: RenderDragon.java   Source Code and License 4 votes vote down vote up
/**
 * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
 */
protected ResourceLocation getEntityTexture(EntityDragon entity)
{
    return enderDragonTextures;
}
 
Example 42
Project: BaseClient   File: LayerEnderDragonDeath.java   Source Code and License 4 votes vote down vote up
public void doRenderLayer(EntityDragon entitylivingbaseIn, float p_177141_2_, float p_177141_3_, float partialTicks, float p_177141_5_, float p_177141_6_, float p_177141_7_, float scale)
{
    if (entitylivingbaseIn.deathTicks > 0)
    {
        Tessellator tessellator = Tessellator.getInstance();
        WorldRenderer worldrenderer = tessellator.getWorldRenderer();
        RenderHelper.disableStandardItemLighting();
        float f = ((float)entitylivingbaseIn.deathTicks + partialTicks) / 200.0F;
        float f1 = 0.0F;

        if (f > 0.8F)
        {
            f1 = (f - 0.8F) / 0.2F;
        }

        Random random = new Random(432L);
        GlStateManager.disableTexture2D();
        GlStateManager.shadeModel(7425);
        GlStateManager.enableBlend();
        GlStateManager.blendFunc(770, 1);
        GlStateManager.disableAlpha();
        GlStateManager.enableCull();
        GlStateManager.depthMask(false);
        GlStateManager.pushMatrix();
        GlStateManager.translate(0.0F, -1.0F, -2.0F);

        for (int i = 0; (float)i < (f + f * f) / 2.0F * 60.0F; ++i)
        {
            GlStateManager.rotate(random.nextFloat() * 360.0F, 1.0F, 0.0F, 0.0F);
            GlStateManager.rotate(random.nextFloat() * 360.0F, 0.0F, 1.0F, 0.0F);
            GlStateManager.rotate(random.nextFloat() * 360.0F, 0.0F, 0.0F, 1.0F);
            GlStateManager.rotate(random.nextFloat() * 360.0F, 1.0F, 0.0F, 0.0F);
            GlStateManager.rotate(random.nextFloat() * 360.0F, 0.0F, 1.0F, 0.0F);
            GlStateManager.rotate(random.nextFloat() * 360.0F + f * 90.0F, 0.0F, 0.0F, 1.0F);
            float f2 = random.nextFloat() * 20.0F + 5.0F + f1 * 10.0F;
            float f3 = random.nextFloat() * 2.0F + 1.0F + f1 * 2.0F;
            worldrenderer.begin(6, DefaultVertexFormats.POSITION_COLOR);
            worldrenderer.pos(0.0D, 0.0D, 0.0D).color(255, 255, 255, (int)(255.0F * (1.0F - f1))).endVertex();
            worldrenderer.pos(-0.866D * (double)f3, (double)f2, (double)(-0.5F * f3)).color(255, 0, 255, 0).endVertex();
            worldrenderer.pos(0.866D * (double)f3, (double)f2, (double)(-0.5F * f3)).color(255, 0, 255, 0).endVertex();
            worldrenderer.pos(0.0D, (double)f2, (double)(1.0F * f3)).color(255, 0, 255, 0).endVertex();
            worldrenderer.pos(-0.866D * (double)f3, (double)f2, (double)(-0.5F * f3)).color(255, 0, 255, 0).endVertex();
            tessellator.draw();
        }

        GlStateManager.popMatrix();
        GlStateManager.depthMask(true);
        GlStateManager.disableCull();
        GlStateManager.disableBlend();
        GlStateManager.shadeModel(7424);
        GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
        GlStateManager.enableTexture2D();
        GlStateManager.enableAlpha();
        RenderHelper.enableStandardItemLighting();
    }
}
 
Example 43
Project: BaseClient   File: RenderManager.java   Source Code and License 4 votes vote down vote up
public RenderManager(TextureManager renderEngineIn, RenderItem itemRendererIn)
{
    this.renderEngine = renderEngineIn;
    this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider(this));
    this.entityRenderMap.put(EntitySpider.class, new RenderSpider(this));
    this.entityRenderMap.put(EntityPig.class, new RenderPig(this, new ModelPig(), 0.7F));
    this.entityRenderMap.put(EntitySheep.class, new RenderSheep(this, new ModelSheep2(), 0.7F));
    this.entityRenderMap.put(EntityCow.class, new RenderCow(this, new ModelCow(), 0.7F));
    this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(this, new ModelCow(), 0.7F));
    this.entityRenderMap.put(EntityWolf.class, new RenderWolf(this, new ModelWolf(), 0.5F));
    this.entityRenderMap.put(EntityChicken.class, new RenderChicken(this, new ModelChicken(), 0.3F));
    this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(this, new ModelOcelot(), 0.4F));
    this.entityRenderMap.put(EntityRabbit.class, new RenderRabbit(this, new ModelRabbit(), 0.3F));
    this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish(this));
    this.entityRenderMap.put(EntityEndermite.class, new RenderEndermite(this));
    this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper(this));
    this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman(this));
    this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan(this));
    this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton(this));
    this.entityRenderMap.put(EntityWitch.class, new RenderWitch(this));
    this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze(this));
    this.entityRenderMap.put(EntityPigZombie.class, new RenderPigZombie(this));
    this.entityRenderMap.put(EntityZombie.class, new RenderZombie(this));
    this.entityRenderMap.put(EntitySlime.class, new RenderSlime(this, new ModelSlime(16), 0.25F));
    this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube(this));
    this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(this, new ModelZombie(), 0.5F, 6.0F));
    this.entityRenderMap.put(EntityGhast.class, new RenderGhast(this));
    this.entityRenderMap.put(EntitySquid.class, new RenderSquid(this, new ModelSquid(), 0.7F));
    this.entityRenderMap.put(EntityVillager.class, new RenderVillager(this));
    this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem(this));
    this.entityRenderMap.put(EntityBat.class, new RenderBat(this));
    this.entityRenderMap.put(EntityGuardian.class, new RenderGuardian(this));
    this.entityRenderMap.put(EntityDragon.class, new RenderDragon(this));
    this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal(this));
    this.entityRenderMap.put(EntityWither.class, new RenderWither(this));
    this.entityRenderMap.put(Entity.class, new RenderEntity(this));
    this.entityRenderMap.put(EntityPainting.class, new RenderPainting(this));
    this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame(this, itemRendererIn));
    this.entityRenderMap.put(EntityLeashKnot.class, new RenderLeashKnot(this));
    this.entityRenderMap.put(EntityArrow.class, new RenderArrow(this));
    this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(this, Items.snowball, itemRendererIn));
    this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(this, Items.ender_pearl, itemRendererIn));
    this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(this, Items.ender_eye, itemRendererIn));
    this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(this, Items.egg, itemRendererIn));
    this.entityRenderMap.put(EntityPotion.class, new RenderPotion(this, itemRendererIn));
    this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(this, Items.experience_bottle, itemRendererIn));
    this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(this, Items.fireworks, itemRendererIn));
    this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(this, 2.0F));
    this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(this, 0.5F));
    this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull(this));
    this.entityRenderMap.put(EntityItem.class, new RenderEntityItem(this, itemRendererIn));
    this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb(this));
    this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed(this));
    this.entityRenderMap.put(EntityFallingBlock.class, new RenderFallingBlock(this));
    this.entityRenderMap.put(EntityArmorStand.class, new ArmorStandRenderer(this));
    this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart(this));
    this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner(this));
    this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart(this));
    this.entityRenderMap.put(EntityBoat.class, new RenderBoat(this));
    this.entityRenderMap.put(EntityFishHook.class, new RenderFish(this));
    this.entityRenderMap.put(EntityHorse.class, new RenderHorse(this, new ModelHorse(), 0.75F));
    this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt(this));
    this.playerRenderer = new RenderPlayer(this);
    this.skinMap.put("default", this.playerRenderer);
    this.skinMap.put("slim", new RenderPlayer(this, true));
}
 
Example 44
Project: BaseClient   File: RenderDragon.java   Source Code and License 4 votes vote down vote up
/**
 * Draws the ray from the dragon to it's crystal
 */
protected void drawRechargeRay(EntityDragon dragon, double p_180574_2_, double p_180574_4_, double p_180574_6_, float p_180574_8_)
{
    float f = (float)dragon.healingEnderCrystal.innerRotation + p_180574_8_;
    float f1 = MathHelper.sin(f * 0.2F) / 2.0F + 0.5F;
    f1 = (f1 * f1 + f1) * 0.2F;
    float f2 = (float)(dragon.healingEnderCrystal.posX - dragon.posX - (dragon.prevPosX - dragon.posX) * (double)(1.0F - p_180574_8_));
    float f3 = (float)((double)f1 + dragon.healingEnderCrystal.posY - 1.0D - dragon.posY - (dragon.prevPosY - dragon.posY) * (double)(1.0F - p_180574_8_));
    float f4 = (float)(dragon.healingEnderCrystal.posZ - dragon.posZ - (dragon.prevPosZ - dragon.posZ) * (double)(1.0F - p_180574_8_));
    float f5 = MathHelper.sqrt_float(f2 * f2 + f4 * f4);
    float f6 = MathHelper.sqrt_float(f2 * f2 + f3 * f3 + f4 * f4);
    GlStateManager.pushMatrix();
    GlStateManager.translate((float)p_180574_2_, (float)p_180574_4_ + 2.0F, (float)p_180574_6_);
    GlStateManager.rotate((float)(-Math.atan2((double)f4, (double)f2)) * 180.0F / (float)Math.PI - 90.0F, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate((float)(-Math.atan2((double)f5, (double)f3)) * 180.0F / (float)Math.PI - 90.0F, 1.0F, 0.0F, 0.0F);
    Tessellator tessellator = Tessellator.getInstance();
    WorldRenderer worldrenderer = tessellator.getWorldRenderer();
    RenderHelper.disableStandardItemLighting();
    GlStateManager.disableCull();
    this.bindTexture(enderDragonCrystalBeamTextures);
    GlStateManager.shadeModel(7425);
    float f7 = 0.0F - ((float)dragon.ticksExisted + p_180574_8_) * 0.01F;
    float f8 = MathHelper.sqrt_float(f2 * f2 + f3 * f3 + f4 * f4) / 32.0F - ((float)dragon.ticksExisted + p_180574_8_) * 0.01F;
    worldrenderer.begin(5, DefaultVertexFormats.POSITION_TEX_COLOR);
    int i = 8;

    for (int j = 0; j <= 8; ++j)
    {
        float f9 = MathHelper.sin((float)(j % 8) * (float)Math.PI * 2.0F / 8.0F) * 0.75F;
        float f10 = MathHelper.cos((float)(j % 8) * (float)Math.PI * 2.0F / 8.0F) * 0.75F;
        float f11 = (float)(j % 8) * 1.0F / 8.0F;
        worldrenderer.pos((double)(f9 * 0.2F), (double)(f10 * 0.2F), 0.0D).tex((double)f11, (double)f8).color(0, 0, 0, 255).endVertex();
        worldrenderer.pos((double)f9, (double)f10, (double)f6).tex((double)f11, (double)f7).color(255, 255, 255, 255).endVertex();
    }

    tessellator.draw();
    GlStateManager.enableCull();
    GlStateManager.shadeModel(7424);
    RenderHelper.enableStandardItemLighting();
    GlStateManager.popMatrix();
}
 
Example 45
Project: BaseClient   File: RenderDragon.java   Source Code and License 4 votes vote down vote up
/**
 * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
 */
protected ResourceLocation getEntityTexture(EntityDragon entity)
{
    return enderDragonTextures;
}
 
Example 46
Project: BaseClient   File: LayerEnderDragonDeath.java   Source Code and License 4 votes vote down vote up
public void doRenderLayer(EntityDragon entitylivingbaseIn, float p_177141_2_, float p_177141_3_, float partialTicks, float p_177141_5_, float p_177141_6_, float p_177141_7_, float scale)
{
    if (entitylivingbaseIn.deathTicks > 0)
    {
        Tessellator tessellator = Tessellator.getInstance();
        WorldRenderer worldrenderer = tessellator.getWorldRenderer();
        RenderHelper.disableStandardItemLighting();
        float f = ((float)entitylivingbaseIn.deathTicks + partialTicks) / 200.0F;
        float f1 = 0.0F;

        if (f > 0.8F)
        {
            f1 = (f - 0.8F) / 0.2F;
        }

        Random random = new Random(432L);
        GlStateManager.disableTexture2D();
        GlStateManager.shadeModel(7425);
        GlStateManager.enableBlend();
        GlStateManager.blendFunc(770, 1);
        GlStateManager.disableAlpha();
        GlStateManager.enableCull();
        GlStateManager.depthMask(false);
        GlStateManager.pushMatrix();
        GlStateManager.translate(0.0F, -1.0F, -2.0F);

        for (int i = 0; (float)i < (f + f * f) / 2.0F * 60.0F; ++i)
        {
            GlStateManager.rotate(random.nextFloat() * 360.0F, 1.0F, 0.0F, 0.0F);
            GlStateManager.rotate(random.nextFloat() * 360.0F, 0.0F, 1.0F, 0.0F);
            GlStateManager.rotate(random.nextFloat() * 360.0F, 0.0F, 0.0F, 1.0F);
            GlStateManager.rotate(random.nextFloat() * 360.0F, 1.0F, 0.0F, 0.0F);
            GlStateManager.rotate(random.nextFloat() * 360.0F, 0.0F, 1.0F, 0.0F);
            GlStateManager.rotate(random.nextFloat() * 360.0F + f * 90.0F, 0.0F, 0.0F, 1.0F);
            float f2 = random.nextFloat() * 20.0F + 5.0F + f1 * 10.0F;
            float f3 = random.nextFloat() * 2.0F + 1.0F + f1 * 2.0F;
            worldrenderer.begin(6, DefaultVertexFormats.POSITION_COLOR);
            worldrenderer.pos(0.0D, 0.0D, 0.0D).color(255, 255, 255, (int)(255.0F * (1.0F - f1))).endVertex();
            worldrenderer.pos(-0.866D * (double)f3, (double)f2, (double)(-0.5F * f3)).color(255, 0, 255, 0).endVertex();
            worldrenderer.pos(0.866D * (double)f3, (double)f2, (double)(-0.5F * f3)).color(255, 0, 255, 0).endVertex();
            worldrenderer.pos(0.0D, (double)f2, (double)(1.0F * f3)).color(255, 0, 255, 0).endVertex();
            worldrenderer.pos(-0.866D * (double)f3, (double)f2, (double)(-0.5F * f3)).color(255, 0, 255, 0).endVertex();
            tessellator.draw();
        }

        GlStateManager.popMatrix();
        GlStateManager.depthMask(true);
        GlStateManager.disableCull();
        GlStateManager.disableBlend();
        GlStateManager.shadeModel(7424);
        GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
        GlStateManager.enableTexture2D();
        GlStateManager.enableAlpha();
        RenderHelper.enableStandardItemLighting();
    }
}
 
Example 47
Project: connor41-etfuturum2   File: PurpurBlock.java   Source Code and License 4 votes vote down vote up
@Override
public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) {
	return !(entity instanceof EntityDragon);
}
 
Example 48
Project: connor41-etfuturum2   File: ChorusFlower.java   Source Code and License 4 votes vote down vote up
@Override
public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) {
	return !(entity instanceof EntityDragon);
}
 
Example 49
Project: connor41-etfuturum2   File: EndBricks.java   Source Code and License 4 votes vote down vote up
@Override
public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) {
	return !(entity instanceof EntityDragon);
}
 
Example 50
Project: connor41-etfuturum2   File: ChorusPlant.java   Source Code and License 4 votes vote down vote up
@Override
public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) {
	return !(entity instanceof EntityDragon);
}
 
Example 51
Project: connor41-etfuturum2   File: PurpurSlab.java   Source Code and License 4 votes vote down vote up
@Override
public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) {
	return !(entity instanceof EntityDragon);
}
 
Example 52
Project: connor41-etfuturum2   File: EndRod.java   Source Code and License 4 votes vote down vote up
@Override
public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) {
	return !(entity instanceof EntityDragon);
}
 
Example 53
Project: connor41-etfuturum2   File: PurpurStairs.java   Source Code and License 4 votes vote down vote up
@Override
public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) {
	return !(entity instanceof EntityDragon);
}
 
Example 54
Project: minecraft-quiverbow   File: AI_Targeting.java   Source Code and License 4 votes vote down vote up
private static boolean isEntityListed(Entity_AA turret, Entity entity)
{
	if (entity instanceof EntityPlayer)
	{
		EntityPlayer player = (EntityPlayer) entity;
		
		if (isNameOnWhitelist(turret, player.getDisplayName())) { return true; }	// Not shooting at their friends either
		else if (isNameOnWhitelist(turret, "player")) { return true; }				// Not shooting at players in general
	}
	
	// Creature specific whitelists
	else if (entity instanceof EntityVillager && isNameOnWhitelist(turret, "villager")) { return true; }
	else if (entity instanceof EntityChicken && isNameOnWhitelist(turret, "chicken")) { return true; }
	else if (entity instanceof EntityCow && isNameOnWhitelist(turret, "cow")) { return true; }
	else if (entity instanceof EntityHorse && isNameOnWhitelist(turret, "horse")) { return true; }
	else if (entity instanceof EntityMooshroom && isNameOnWhitelist(turret, "mooshroom")) { return true; }
	else if (entity instanceof EntityOcelot && isNameOnWhitelist(turret, "ocelot")) { return true; }
	else if (entity instanceof EntityPig && isNameOnWhitelist(turret, "pig")) { return true; }
	else if (entity instanceof EntitySheep && isNameOnWhitelist(turret, "sheep")) { return true; }
	else if (entity instanceof EntitySquid && isNameOnWhitelist(turret, "squid")) { return true; }
	else if (entity instanceof EntityWolf && isNameOnWhitelist(turret, "wolf")) { return true; }
	
	// Bosses
	else if (entity instanceof EntityDragon && isNameOnWhitelist(turret, "ender dragon")) { return true; }
	else if (entity instanceof EntityDragonPart && isNameOnWhitelist(turret, "ender dragon")) { return true; }
	else if (entity instanceof EntityWither && isNameOnWhitelist(turret, "wither")) { return true; }
	
	// Hostiles
	else if (entity instanceof EntityBlaze && isNameOnWhitelist(turret, "blaze")) { return true; }
	else if (entity instanceof EntityCaveSpider && isNameOnWhitelist(turret, "cave spider")) { return true; }
	else if (entity instanceof EntityCreeper && isNameOnWhitelist(turret, "creeper")) { return true; }
	else if (entity instanceof EntityEnderman && isNameOnWhitelist(turret, "enderman")) { return true; }
	else if (entity instanceof EntityGhast && isNameOnWhitelist(turret, "ghast")) { return true; }
	else if (entity instanceof EntityGiantZombie && isNameOnWhitelist(turret, "zombie")) { return true; }
	else if (entity instanceof EntityGolem && isNameOnWhitelist(turret, "golem")) { return true; }
	else if (entity instanceof EntityIronGolem && isNameOnWhitelist(turret, "iron golem")) { return true; }
	else if (entity instanceof EntityMagmaCube && isNameOnWhitelist(turret, "magma cube")) { return true; }
	else if (entity instanceof EntityPigZombie && isNameOnWhitelist(turret, "pig zombie")) { return true; }
	else if (entity instanceof EntitySilverfish && isNameOnWhitelist(turret, "silverfish")) { return true; }
	else if (entity instanceof EntitySkeleton && isNameOnWhitelist(turret, "skeleton")) { return true; }
	else if (entity instanceof EntitySlime && isNameOnWhitelist(turret, "slime")) { return true; }
	else if (entity instanceof EntitySnowman && isNameOnWhitelist(turret, "snow golem")) { return true; }
	else if (entity instanceof EntitySpider && isNameOnWhitelist(turret, "spider")) { return true; }
	else if (entity instanceof EntityWitch && isNameOnWhitelist(turret, "witch")) { return true; }
	else if (entity instanceof EntityZombie && isNameOnWhitelist(turret, "zombie")) { return true; }
	
	if (entity instanceof EntityLiving)	// For things with custom names
	{
		EntityLiving living = (EntityLiving) entity;
		
		if (living.hasCustomNameTag())
		{
			if (isNameOnWhitelist(turret, living.getCustomNameTag())) { return true; }
		}
	}
	
	return false;	// Nope. Fire away!
}
 
Example 55
Project: minecraft-quiverbow   File: SoulShot.java   Source Code and License 4 votes vote down vote up
@Override
public void onImpact(MovingObjectPosition target)
{
	if (target.entityHit != null) 
   	{
   		// Figuring out what we hit here now
   		if (target.entityHit instanceof EntityCreeper) { doCapture(target, 50); }
   		else if (target.entityHit instanceof EntityPigZombie) { doCapture(target, 57); }
   		else if (target.entityHit instanceof EntityCaveSpider) { doCapture(target, 59); }
   		else if (target.entityHit instanceof EntityMooshroom) { doCapture(target, 96); }
   		else if (target.entityHit instanceof EntitySkeleton) { doCapture(target, 51); }
   		else if (target.entityHit instanceof EntitySpider) { doCapture(target, 52); }
   		else if (target.entityHit instanceof EntityZombie) { doCapture(target, 54); }
   		else if (target.entityHit instanceof EntityMagmaCube) { doCapture(target, 62); }
   		else if (target.entityHit instanceof EntitySlime) { doCapture(target, 55); }
   		else if (target.entityHit instanceof EntityGhast) { doCapture(target, 56); }
   		else if (target.entityHit instanceof EntitySilverfish) { doCapture(target, 60); }
   		else if (target.entityHit instanceof EntityBlaze) { doCapture(target, 61); }
   		else if (target.entityHit instanceof EntityBat) { doCapture(target, 65); }
   		else if (target.entityHit instanceof EntityWitch) { doCapture(target, 66); }
   		else if (target.entityHit instanceof EntityPig) { doCapture(target, 90); }
   		else if (target.entityHit instanceof EntitySheep) { doCapture(target, 91); }
   		else if (target.entityHit instanceof EntityCow) { doCapture(target, 92); }
   		else if (target.entityHit instanceof EntityChicken) { doCapture(target, 93); }
   		else if (target.entityHit instanceof EntitySquid) { doCapture(target, 94); }
   		else if (target.entityHit instanceof EntityWolf) { doCapture(target, 95); }
   		else if (target.entityHit instanceof EntityOcelot) { doCapture(target, 98); }
   		else if (target.entityHit instanceof EntityHorse) { doCapture(target, 100); }
   		else if (target.entityHit instanceof EntityVillager) { doCapture(target, 120); }
   		
   		// Can't catch Arceus
   		else if (target.entityHit instanceof EntityPlayer)
   		{
   			target.entityHit.attackEntityFrom(DamageSource.causeIndirectMagicDamage(this, this.shootingEntity), (float) 10);
   			this.damageShooter(); 
   		}
   		
   		else if (target.entityHit instanceof EntityDragon) { this.damageShooter(); }
   		else if (target.entityHit instanceof EntityWither) { this.damageShooter(); }
   		// else, not a known entity
   		
   		NetHelper.sendParticleMessageToAllPlayers(this.worldObj, this.getEntityId(), (byte) 11, (byte) 4);
           
           this.setDead();		// We've hit something, so begone with the projectile
       }        
   	else	// Hit the terrain
   	{
   		//Block block = this.worldObj.getBlock(target.blockX, target.blockY, target.blockZ);
		
   		// Glass breaking
           if (!Helper.tryBlockBreak(this.worldObj, this, target, 1)) { this.setDead(); } // Only begone if we didn't hit glass
   	}
}
 
Example 56
Project: Backmemed   File: ModelAdapterDragon.java   Source Code and License 4 votes vote down vote up
public ModelAdapterDragon()
{
    super(EntityDragon.class, "dragon", 0.5F);
}
 
Example 57
Project: Backmemed   File: PhaseSittingBase.java   Source Code and License 4 votes vote down vote up
public PhaseSittingBase(EntityDragon p_i46794_1_)
{
    super(p_i46794_1_);
}
 
Example 58
Project: Backmemed   File: PhaseSittingAttacking.java   Source Code and License 4 votes vote down vote up
public PhaseSittingAttacking(EntityDragon dragonIn)
{
    super(dragonIn);
}
 
Example 59
Project: Backmemed   File: PhaseDying.java   Source Code and License 4 votes vote down vote up
public PhaseDying(EntityDragon dragonIn)
{
    super(dragonIn);
}
 
Example 60
Project: Backmemed   File: PhaseTakeoff.java   Source Code and License 4 votes vote down vote up
public PhaseTakeoff(EntityDragon dragonIn)
{
    super(dragonIn);
}