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, writeToNBTpublic 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 Entityprotected void entityInit()
entityInit in class Entitypublic AxisAlignedBB getCollisionBox(Entity entity)
getCollisionBox in class Entitypublic AxisAlignedBB getBoundingBox()
getBoundingBox in class Entitypublic boolean canBePushed()
canBePushed in class Entitypublic double getMountedYOffset()
getMountedYOffset in class Entitypublic boolean attackEntityFrom(Entity entity, int i)
attackEntityFrom in class Entitypublic void performHurtAnimation()
performHurtAnimation in class Entitypublic boolean canBeCollidedWith()
canBeCollidedWith in class Entitypublic void setEntityDead()
setEntityDead in class Entitypublic 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 Entityprotected void readEntityFromNBT(NBTTagCompound nbttagcompound)
readEntityFromNBT in class Entitypublic float getShadowSize()
getShadowSize in class Entitypublic void applyEntityCollision(Entity entity)
applyEntityCollision in class Entitypublic int getSizeInventory()
getSizeInventory in interface IInventorypublic ItemStack getStackInSlot(int i)
getStackInSlot in interface IInventorypublic ItemStack decrStackSize(int i, int j)
decrStackSize in interface IInventorypublic void setInventorySlotContents(int i,
ItemStack itemstack)
setInventorySlotContents in interface IInventorypublic java.lang.String getInvName()
getInvName in interface IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface IInventorypublic void onInventoryChanged()
onInventoryChanged in interface IInventorypublic boolean interact(EntityPlayer entityplayer)
public void setPositionAndRotation2(double d,
double d1,
double d2,
float f,
float f1,
int i)
setPositionAndRotation2 in class Entitypublic void setVelocity(double d,
double d1,
double d2)
setVelocity in class Entitypublic boolean canInteractWith(EntityPlayer entityplayer)
canInteractWith in interface IInventory