mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
Fix some bugs,and add diyos BattleSigns
This commit is contained in:
1 parent
1124d54a7b
commit
42a5af5566
27 files changed
+500
-92
No files matched your search
@@ -1,7 +1,9 @@
|
||||
package tconstruct.entity;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class FancyEntityItem extends EntityItem
|
||||
@@ -9,6 +11,8 @@ public class FancyEntityItem extends EntityItem
|
||||
public FancyEntityItem(World par1World, double par2, double par4, double par6)
|
||||
{
|
||||
super(par1World, par2, par4, par6);
|
||||
this.isImmuneToFire = true;
|
||||
this.lifespan = 72000;
|
||||
}
|
||||
|
||||
public FancyEntityItem(World par1World, double par2, double par4, double par6, ItemStack par8ItemStack)
|
||||
@@ -21,5 +25,24 @@ public class FancyEntityItem extends EntityItem
|
||||
public FancyEntityItem(World par1World)
|
||||
{
|
||||
super(par1World);
|
||||
this.isImmuneToFire = true;
|
||||
this.lifespan = 72000;
|
||||
}
|
||||
|
||||
public FancyEntityItem(World world, Entity original, ItemStack stack)
|
||||
{
|
||||
this(world, original.posX, original.posY, original.posZ);
|
||||
this.delayBeforeCanPickup = 20;
|
||||
this.motionX = original.motionX;
|
||||
this.motionY = original.motionY;
|
||||
this.motionZ = original.motionZ;
|
||||
this.setEntityItemStack(stack);
|
||||
}
|
||||
|
||||
public boolean attackEntityFrom (DamageSource par1DamageSource, float par2)
|
||||
{
|
||||
if (par1DamageSource.getDamageType().equals("outOfWorld"))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
package tconstruct.entity;
|
||||
|
||||
import net.minecraft.entity.monster.EntityCreeper;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class Skyla extends EntityCreeper
|
||||
{
|
||||
|
||||
public Skyla(World par1World)
|
||||
{
|
||||
super(par1World);
|
||||
// username = "Skyla";
|
||||
// texture = "/mods/tinker/textures/mob/skyla.png";
|
||||
}
|
||||
|
||||
/*
|
||||
* @Override public void sendChatToPlayer (String var1) {}
|
||||
*
|
||||
* @Override public boolean canCommandSenderUseCommand (int var1, String
|
||||
* var2) { return false; }
|
||||
*
|
||||
* @Override public ChunkCoordinates getPlayerCoordinates () { return null;
|
||||
* }
|
||||
*/
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user