Created
January 12, 2014 11:43
-
-
Save anonymous/8383622 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the new error message: | |
2014-01-12 13:26:56 [INFO] [STDERR] java.lang.reflect.InvocationTargetException | |
2014-01-12 13:26:56 [INFO] [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
2014-01-12 13:26:56 [INFO] [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) | |
2014-01-12 13:26:56 [INFO] [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) | |
2014-01-12 13:26:56 [INFO] [STDERR] at java.lang.reflect.Constructor.newInstance(Unknown Source) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:162) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:409) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:103) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:83) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:182) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:118) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:166) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.world.World.getChunkFromChunkCoords(World.java:529) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.world.World.spawnEntityInWorld(World.java:1578) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.management.ServerConfigurationManager.playerLoggedIn(ServerConfigurationManager.java:267) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.management.ServerConfigurationManager.initializeConnectionToPlayer(ServerConfigurationManager.java:136) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:97) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) | |
2014-01-12 13:26:56 [INFO] [STDERR] Caused by: java.lang.Error: Unresolved compilation problem: | |
2014-01-12 13:26:56 [INFO] [STDERR] The constructor EntityAICreeperSwell(LavaCreeperClass) is undefined | |
2014-01-12 13:26:56 [INFO] [STDERR] | |
2014-01-12 13:26:56 [INFO] [STDERR] at tutorial.generic.LavaCreeperClass.<init>(LavaCreeperClass.java:49) | |
2014-01-12 13:26:56 [INFO] [STDERR] ... 21 more | |
2014-01-12 13:26:56 [WARNING] [Minecraft-Server] Skipping Entity with id LavaCreeper | |
2014-01-12 13:26:56 [INFO] [STDERR] java.lang.reflect.InvocationTargetException | |
2014-01-12 13:26:56 [INFO] [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
2014-01-12 13:26:56 [INFO] [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) | |
2014-01-12 13:26:56 [INFO] [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) | |
2014-01-12 13:26:56 [INFO] [STDERR] at java.lang.reflect.Constructor.newInstance(Unknown Source) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:162) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:409) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:103) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:83) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:182) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:118) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.management.PlayerInstance.<init>(PlayerInstance.java:43) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.management.PlayerManager.getOrCreateChunkWatcher(PlayerManager.java:114) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.management.PlayerManager.addPlayer(PlayerManager.java:151) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.management.ServerConfigurationManager.func_72375_a(ServerConfigurationManager.java:220) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.management.ServerConfigurationManager.playerLoggedIn(ServerConfigurationManager.java:268) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.management.ServerConfigurationManager.initializeConnectionToPlayer(ServerConfigurationManager.java:136) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:97) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) | |
2014-01-12 13:26:56 [INFO] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) | |
2014-01-12 13:26:56 [INFO] [STDERR] Caused by: java.lang.Error: Unresolved compilation problem: | |
2014-01-12 13:26:56 [INFO] [STDERR] The constructor EntityAICreeperSwell(LavaCreeperClass) is undefined | |
2014-01-12 13:26:56 [INFO] [STDERR] | |
2014-01-12 13:26:56 [INFO] [STDERR] at tutorial.generic.LavaCreeperClass.<init>(LavaCreeperClass.java:49) | |
2014-01-12 13:26:56 [INFO] [STDERR] ... 22 more | |
2014-01-12 13:26:56 [WARNING] [Minecraft-Server] Skipping Entity with id LavaCreeper | |
2014-01-12 13:26:57 [INFO] [Minecraft-Server] Saving and pausing game... | |
2014-01-12 13:26:57 [INFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld | |
2014-01-12 13:26:57 [INFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether | |
2014-01-12 13:26:57 [INFO] [Minecraft-Server] Saving chunks for level 'New World'/The End | |
2014-01-12 13:27:01 [INFO] [STDERR] java.lang.reflect.InvocationTargetException | |
2014-01-12 13:27:01 [INFO] [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
2014-01-12 13:27:01 [INFO] [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) | |
2014-01-12 13:27:01 [INFO] [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) | |
2014-01-12 13:27:01 [INFO] [STDERR] at java.lang.reflect.Constructor.newInstance(Unknown Source) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.entity.EntityList.createEntityByID(EntityList.java:205) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.item.ItemMonsterPlacer.spawnCreature(ItemMonsterPlacer.java:175) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.item.ItemMonsterPlacer.onItemUse(ItemMonsterPlacer.java:81) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:153) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:429) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:556) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) | |
2014-01-12 13:27:01 [INFO] [STDERR] Caused by: java.lang.Error: Unresolved compilation problem: | |
2014-01-12 13:27:01 [INFO] [STDERR] The constructor EntityAICreeperSwell(LavaCreeperClass) is undefined | |
2014-01-12 13:27:01 [INFO] [STDERR] | |
2014-01-12 13:27:01 [INFO] [STDERR] at tutorial.generic.LavaCreeperClass.<init>(LavaCreeperClass.java:49) | |
2014-01-12 13:27:01 [INFO] [STDERR] ... 20 more | |
2014-01-12 13:27:01 [WARNING] [Minecraft-Server] Skipping Entity with id 3 | |
2014-01-12 13:27:01 [INFO] [STDERR] java.lang.reflect.InvocationTargetException | |
2014-01-12 13:27:01 [INFO] [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
2014-01-12 13:27:01 [INFO] [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) | |
2014-01-12 13:27:01 [INFO] [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) | |
2014-01-12 13:27:01 [INFO] [STDERR] at java.lang.reflect.Constructor.newInstance(Unknown Source) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.entity.EntityList.createEntityByID(EntityList.java:205) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.item.ItemMonsterPlacer.spawnCreature(ItemMonsterPlacer.java:175) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.item.ItemMonsterPlacer.onItemUse(ItemMonsterPlacer.java:81) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:153) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:429) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:556) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) | |
2014-01-12 13:27:01 [INFO] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) | |
2014-01-12 13:27:01 [INFO] [STDERR] Caused by: java.lang.Error: Unresolved compilation problem: | |
2014-01-12 13:27:01 [INFO] [STDERR] The constructor EntityAICreeperSwell(LavaCreeperClass) is undefined | |
2014-01-12 13:27:01 [INFO] [STDERR] | |
2014-01-12 13:27:01 [INFO] [STDERR] at tutorial.generic.LavaCreeperClass.<init>(LavaCreeperClass.java:49) | |
2014-01-12 13:27:01 [INFO] [STDERR] ... 20 more | |
Here is where the class file starts: | |
package tutorial.generic; | |
import net.minecraft.client.model.ModelBase; | |
import net.minecraft.client.renderer.entity.RenderLiving; | |
import net.minecraft.entity.Entity; | |
import net.minecraft.entity.SharedMonsterAttributes; | |
import net.minecraft.entity.ai.EntityAIAttackOnCollide; | |
import net.minecraft.entity.ai.EntityAIAvoidEntity; | |
import net.minecraft.entity.ai.EntityAICreeperSwell; | |
import net.minecraft.entity.ai.EntityAIHurtByTarget; | |
import net.minecraft.entity.ai.EntityAILookIdle; | |
import net.minecraft.entity.ai.EntityAINearestAttackableTarget; | |
import net.minecraft.entity.ai.EntityAISwimming; | |
import net.minecraft.entity.ai.EntityAIWander; | |
import net.minecraft.entity.ai.EntityAIWatchClosest; | |
import net.minecraft.entity.monster.EntityMob; | |
import net.minecraft.entity.monster.EntitySkeleton; | |
import net.minecraft.entity.passive.EntityOcelot; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.item.Item; | |
import net.minecraft.nbt.NBTTagCompound; | |
import net.minecraft.util.DamageSource; | |
import net.minecraft.util.ResourceLocation; | |
import net.minecraft.world.World; | |
import cpw.mods.fml.relauncher.Side; | |
import cpw.mods.fml.relauncher.SideOnly; | |
public class LavaCreeperClass extends EntityMob | |
{ | |
/** | |
* Time when this creeper was last in an active state (Messed up code here, probably causes creeper animation to go | |
* weird) | |
*/ | |
private int lastActiveTime; | |
/** | |
* The amount of time since the creeper was close enough to the player to ignite | |
*/ | |
private int timeSinceIgnited; | |
private int fuseTime = 30; | |
/** Explosion radius for this creeper. */ | |
private int explosionRadius = 3; | |
public LavaCreeperClass(World par1World) | |
{ | |
super(par1World); | |
this.tasks.addTask(1, new EntityAISwimming(this)); | |
this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, false)); | |
this.tasks.addTask(5, new EntityAIWander(this, 0.8D)); | |
this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); | |
this.tasks.addTask(7, new EntityAILookIdle(this)); | |
this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true)); | |
this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false)); | |
} | |
protected void applyEntityAttributes() | |
{ | |
super.applyEntityAttributes(); | |
this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setAttribute(0.25D); | |
} | |
/** | |
* Returns true if the newer Entity AI code should be run | |
*/ | |
public boolean isAIEnabled() | |
{ | |
return true; | |
} | |
/** | |
* The number of iterations PathFinder.getSafePoint will execute before giving up. | |
*/ | |
public int getMaxSafePointTries() | |
{ | |
return this.getAttackTarget() == null ? 3 : 3 + (int)(this.getHealth() - 1.0F); | |
} | |
/** | |
* Called when the mob is falling. Calculates and applies fall damage. | |
*/ | |
protected void fall(float par1) | |
{ | |
super.fall(par1); | |
this.timeSinceIgnited = (int)((float)this.timeSinceIgnited + par1 * 1.5F); | |
if (this.timeSinceIgnited > this.fuseTime - 5) | |
{ | |
this.timeSinceIgnited = this.fuseTime - 5; | |
} | |
} | |
protected void entityInit() | |
{ | |
super.entityInit(); | |
this.dataWatcher.addObject(16, Byte.valueOf((byte) - 1)); | |
this.dataWatcher.addObject(17, Byte.valueOf((byte)0)); | |
} | |
/** | |
* (abstract) Protected helper method to write subclass entity data to NBT. | |
*/ | |
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound) | |
{ | |
super.writeEntityToNBT(par1NBTTagCompound); | |
if (this.dataWatcher.getWatchableObjectByte(17) == 1) | |
{ | |
par1NBTTagCompound.setBoolean("powered", true); | |
} | |
par1NBTTagCompound.setShort("Fuse", (short)this.fuseTime); | |
par1NBTTagCompound.setByte("ExplosionRadius", (byte)this.explosionRadius); | |
} | |
/** | |
* (abstract) Protected helper method to read subclass entity data from NBT. | |
*/ | |
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound) | |
{ | |
super.readEntityFromNBT(par1NBTTagCompound); | |
this.dataWatcher.updateObject(17, Byte.valueOf((byte)(par1NBTTagCompound.getBoolean("powered") ? 1 : 0))); | |
if (par1NBTTagCompound.hasKey("Fuse")) | |
{ | |
this.fuseTime = par1NBTTagCompound.getShort("Fuse"); | |
} | |
if (par1NBTTagCompound.hasKey("ExplosionRadius")) | |
{ | |
this.explosionRadius = par1NBTTagCompound.getByte("ExplosionRadius"); | |
} | |
} | |
/** | |
* Called to update the entity's position/logic. | |
*/ | |
public void onUpdate() | |
{ | |
if (this.isEntityAlive()) | |
{ | |
this.lastActiveTime = this.timeSinceIgnited; | |
int i = this.getCreeperState(); | |
if (i > 0 && this.timeSinceIgnited == 0) | |
{ | |
this.playSound("random.fuse", 1.0F, 0.5F); | |
} | |
this.timeSinceIgnited += i; | |
if (this.timeSinceIgnited < 0) | |
{ | |
this.timeSinceIgnited = 0; | |
} | |
if (this.timeSinceIgnited >= this.fuseTime) | |
{ | |
this.timeSinceIgnited = this.fuseTime; | |
if (!this.worldObj.isRemote) | |
{ | |
boolean flag = this.worldObj.getGameRules().getGameRuleBooleanValue("mobGriefing"); | |
if (this.getPowered()) | |
{ | |
this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, (float)(this.explosionRadius * 2), flag); | |
} | |
else | |
{ | |
this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, (float)this.explosionRadius, flag); | |
} | |
this.setDead(); | |
} | |
} | |
} | |
super.onUpdate(); | |
} | |
/** | |
* Returns the sound this mob makes when it is hurt. | |
*/ | |
protected String getHurtSound() | |
{ | |
return "mob.creeper.say"; | |
} | |
/** | |
* Returns the sound this mob makes on death. | |
*/ | |
protected String getDeathSound() | |
{ | |
return "mob.creeper.death"; | |
} | |
/** | |
* Called when the mob's health reaches 0. | |
*/ | |
public void onDeath(DamageSource par1DamageSource) | |
{ | |
super.onDeath(par1DamageSource); | |
if (par1DamageSource.getEntity() instanceof EntitySkeleton) | |
{ | |
int i = Item.record13.itemID + this.rand.nextInt(Item.recordWait.itemID - Item.record13.itemID + 1); | |
this.dropItem(i, 1); | |
} | |
} | |
public boolean attackEntityAsMob(Entity par1Entity) | |
{ | |
return true; | |
} | |
/** | |
* Returns true if the creeper is powered by a lightning bolt. | |
*/ | |
public boolean getPowered() | |
{ | |
return this.dataWatcher.getWatchableObjectByte(17) == 1; | |
} | |
@SideOnly(Side.CLIENT) | |
/** | |
* Params: (Float)Render tick. Returns the intensity of the creeper's flash when it is ignited. | |
*/ | |
public float getCreeperFlashIntensity(float par1) | |
{ | |
return ((float)this.lastActiveTime + (float)(this.timeSinceIgnited - this.lastActiveTime) * par1) / (float)(this.fuseTime - 2); | |
} | |
/** | |
* Returns the item ID for the item the mob drops on death. | |
*/ | |
protected int getDropItemId() | |
{ | |
return Item.gunpowder.itemID; | |
} | |
/** | |
* Returns the current state of creeper, -1 is idle, 1 is 'in fuse' | |
*/ | |
public int getCreeperState() | |
{ | |
return this.dataWatcher.getWatchableObjectByte(16); | |
} | |
/** | |
* Sets the state of creeper, -1 to idle and 1 to be 'in fuse' | |
*/ | |
public void setCreeperState(int par1) | |
{ | |
this.dataWatcher.updateObject(16, Byte.valueOf((byte)par1)); | |
} | |
@SideOnly(Side.CLIENT) | |
public static class RenderTheMob extends RenderLiving{ | |
private static final ResourceLocation LavaCreeper = new ResourceLocation("genericmod","/textures/mobs/LavaCreeper.png"); | |
public RenderTheMob(ModelBase par1ModelBase, float par2) { | |
super(par1ModelBase, par2); | |
// TODO Auto-generated constructor stub | |
} | |
@Override | |
protected ResourceLocation getEntityTexture(Entity entity) { | |
// TODO Auto-generated method stub | |
return null; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment