public class EntityMinecart extends Entity implements IInventory
Modifier and Type | Field and Description |
---|---|
int |
fuel |
int |
minecartCurrentDamage |
int |
minecartRockDirection |
int |
minecartTimeSinceHit |
int |
minecartType |
double |
pushX |
double |
pushZ |
addedToChunk, air, beenAttacked, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, cloakUrl, dataWatcher, distanceWalkedModified, entityBrightness, entityCollisionReduction, entityId, fallDistance, field_9293_aM, fire, fireResistance, heartsLife, height, ignoreFrustumCheck, inWater, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, maxAir, motionX, motionY, motionZ, noClip, onGround, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, skinUrl, stepHeight, ticksExisted, width, worldObj, yOffset, ySize
Constructor and Description |
---|
EntityMinecart(World world) |
EntityMinecart(World world,
double d,
double d1,
double d2,
int i) |
Modifier and Type | Method and Description |
---|---|
void |
applyEntityCollision(Entity entity) |
boolean |
attackEntityFrom(Entity entity,
int i) |
boolean |
canBeCollidedWith() |
boolean |
canBePushed() |
boolean |
canInteractWith(EntityPlayer entityplayer) |
protected boolean |
canTriggerWalking() |
ItemStack |
decrStackSize(int i,
int j) |
protected void |
entityInit() |
Vec3D |
func_514_g(double d,
double d1,
double d2) |
Vec3D |
func_515_a(double d,
double d1,
double d2,
double d3) |
AxisAlignedBB |
getBoundingBox() |
AxisAlignedBB |
getCollisionBox(Entity entity) |
int |
getInventoryStackLimit() |
java.lang.String |
getInvName() |
double |
getMountedYOffset() |
float |
getShadowSize() |
int |
getSizeInventory() |
ItemStack |
getStackInSlot(int i) |
boolean |
interact(EntityPlayer entityplayer) |
void |
onInventoryChanged() |
void |
onUpdate() |
void |
performHurtAnimation() |
protected void |
readEntityFromNBT(NBTTagCompound nbttagcompound) |
void |
setEntityDead() |
void |
setInventorySlotContents(int i,
ItemStack itemstack) |
void |
setPositionAndRotation2(double d,
double d1,
double d2,
float f,
float f1,
int i) |
void |
setVelocity(double d,
double d1,
double d2) |
protected void |
writeEntityToNBT(NBTTagCompound nbttagcompound) |
addEntityID, addToPlayerScore, addVelocity, dealFireDamage, dropItem, dropItemWithOffset, entityDropItem, equals, fall, func_346_d, getCollisionBorderSize, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityBrightness, getEntityFlag, getEntityString, getEntityTexture, getEyeHeight, getLookVec, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hashCode, isBurning, isEntityAlive, isEntityInsideOpaqueBlock, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isWet, kill, mountEntity, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onCollideWithPlayer, onEntityUpdate, onKillEntity, onStruckByLightning, outfitWithItem, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setBeenAttacked, setEntityFlag, setInPortal, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setWorld, updateCloak, updateFallState, updateRidden, updateRiderPosition, writeToNBT
public int minecartCurrentDamage
public int minecartTimeSinceHit
public int minecartRockDirection
public int minecartType
public int fuel
public double pushX
public double pushZ
public EntityMinecart(World world)
public EntityMinecart(World world, double d, double d1, double d2, int i)
protected boolean canTriggerWalking()
canTriggerWalking
in class Entity
protected void entityInit()
entityInit
in class Entity
public AxisAlignedBB getCollisionBox(Entity entity)
getCollisionBox
in class Entity
public AxisAlignedBB getBoundingBox()
getBoundingBox
in class Entity
public boolean canBePushed()
canBePushed
in class Entity
public double getMountedYOffset()
getMountedYOffset
in class Entity
public boolean attackEntityFrom(Entity entity, int i)
attackEntityFrom
in class Entity
public void performHurtAnimation()
performHurtAnimation
in class Entity
public boolean canBeCollidedWith()
canBeCollidedWith
in class Entity
public void setEntityDead()
setEntityDead
in class Entity
public Vec3D func_515_a(double d, double d1, double d2, double d3)
public Vec3D func_514_g(double d, double d1, double d2)
protected void writeEntityToNBT(NBTTagCompound nbttagcompound)
writeEntityToNBT
in class Entity
protected void readEntityFromNBT(NBTTagCompound nbttagcompound)
readEntityFromNBT
in class Entity
public float getShadowSize()
getShadowSize
in class Entity
public void applyEntityCollision(Entity entity)
applyEntityCollision
in class Entity
public int getSizeInventory()
getSizeInventory
in interface IInventory
public ItemStack getStackInSlot(int i)
getStackInSlot
in interface IInventory
public ItemStack decrStackSize(int i, int j)
decrStackSize
in interface IInventory
public void setInventorySlotContents(int i, ItemStack itemstack)
setInventorySlotContents
in interface IInventory
public java.lang.String getInvName()
getInvName
in interface IInventory
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
public void onInventoryChanged()
onInventoryChanged
in interface IInventory
public boolean interact(EntityPlayer entityplayer)
public void setPositionAndRotation2(double d, double d1, double d2, float f, float f1, int i)
setPositionAndRotation2
in class Entity
public void setVelocity(double d, double d1, double d2)
setVelocity
in class Entity
public boolean canInteractWith(EntityPlayer entityplayer)
canInteractWith
in interface IInventory