Class Minecart
- java.lang.Object
-
- net.minecraft.world.entity.Entity
-
- net.minecraft.world.entity.vehicle.Minecart
-
- All Implemented Interfaces:
IInventory
public class Minecart extends Entity implements IInventory
-
-
Field Summary
Fields Modifier and Type Field Description int
minecartType
double
pushX
double
pushZ
-
Fields inherited from class net.minecraft.world.entity.Entity
addedToChunk, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, cloakUrl, dataWatcher, distanceWalkedModified, entityCollisionReduction, entityId, fallDistance, field_9293_aM, fireResistance, heartsLife, height, ignoreFrustumCheck, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, isJesusColliding, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, playerNameForSkin, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, skinUrl, slim, stepHeight, ticksExisted, velocityChanged, width, worldObj, yOffset, ySize
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyEntityCollision(Entity var1)
boolean
attackEntityFrom(DamageSource var1, int var2)
boolean
canBeCollidedWith()
boolean
canBePushed()
protected boolean
canTriggerWalking()
void
closeChest()
ItemStack
decrStackSize(int var1, int var2)
protected void
entityInit()
int
func_41023_l()
void
func_41024_b(int var1)
int
func_41025_i()
void
func_41028_c(int var1)
void
func_41029_h(int var1)
int
func_41030_m()
Vec3D
func_514_g(double var1, double var3, double var5)
@Client Vec3D
func_515_a(double var1, double var3, double var5, double var7)
AxisAlignedBB
getBoundingBox()
AxisAlignedBB
getCollisionBox(Entity var1)
int
getInventoryStackLimit()
java.lang.String
getInvName()
double
getMountedYOffset()
@net.minecraft.modding.api.Side.Client float
getShadowSize()
int
getSizeInventory()
ItemStack
getStackInSlot(int var1)
ItemStack
getStackInSlotOnClosing(int var1)
boolean
interact(Player var1)
protected boolean
isMinecartPowered()
boolean
isUseableByPlayer(Player var1)
void
onInventoryChanged()
void
onUpdate()
void
openChest()
void
performHurtAnimation()
protected void
readEntityFromNBT(NBTTagCompound var1)
void
setDead()
void
setInventorySlotContents(int var1, ItemStack var2)
protected void
setMinecartPowered(boolean var1)
void
setPositionAndRotation2(double var1, double var3, double var5, float var7, float var8, int var9)
void
setVelocity(double var1, double var3, double var5)
protected void
writeEntityToNBT(NBTTagCompound var1)
-
Methods inherited from class net.minecraft.world.entity.Entity
addEntityID, addToPlayerScore, addVelocity, canAttackWithItem, dealFireDamage, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, func_48079_f, getAir, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCurrentBiomeName, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityString, getEyeHeight, getFlag, getHeadYaw, getInventory, getLookVec, getParts, getTexture, getUsername, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hashCode, isBurning, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInsideOfMaterial, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isSprinting, isSubmergedInAnyFluid, isWet, kill, mountEntity, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onCollideWithPlayer, onEntityUpdate, onKillEntity, onStruckByLightning, outfitWithItem, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setBeenAttacked, setEating, setFire, setFlag, setInPortal, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setSneaking, setSprinting, setWorld, toString, updateFallState, updateRidden, updateRiderPosition, writeToNBT
-
-
-
-
Method Detail
-
canTriggerWalking
protected boolean canTriggerWalking()
- Overrides:
canTriggerWalking
in classEntity
-
entityInit
protected void entityInit()
- Specified by:
entityInit
in classEntity
-
getCollisionBox
public AxisAlignedBB getCollisionBox(Entity var1)
- Overrides:
getCollisionBox
in classEntity
-
getBoundingBox
public AxisAlignedBB getBoundingBox()
- Overrides:
getBoundingBox
in classEntity
-
canBePushed
public boolean canBePushed()
- Overrides:
canBePushed
in classEntity
-
getMountedYOffset
public double getMountedYOffset()
- Overrides:
getMountedYOffset
in classEntity
-
attackEntityFrom
public boolean attackEntityFrom(DamageSource var1, int var2)
- Overrides:
attackEntityFrom
in classEntity
-
performHurtAnimation
@Client public void performHurtAnimation()
- Overrides:
performHurtAnimation
in classEntity
-
canBeCollidedWith
public boolean canBeCollidedWith()
- Overrides:
canBeCollidedWith
in classEntity
-
func_515_a
@Client public @Client Vec3D func_515_a(double var1, double var3, double var5, double var7)
-
func_514_g
public Vec3D func_514_g(double var1, double var3, double var5)
-
writeEntityToNBT
protected void writeEntityToNBT(NBTTagCompound var1)
- Specified by:
writeEntityToNBT
in classEntity
-
readEntityFromNBT
protected void readEntityFromNBT(NBTTagCompound var1)
- Specified by:
readEntityFromNBT
in classEntity
-
getShadowSize
@Client public @net.minecraft.modding.api.Side.Client float getShadowSize()
- Overrides:
getShadowSize
in classEntity
-
applyEntityCollision
public void applyEntityCollision(Entity var1)
- Overrides:
applyEntityCollision
in classEntity
-
getSizeInventory
public int getSizeInventory()
- Specified by:
getSizeInventory
in interfaceIInventory
-
getStackInSlot
public ItemStack getStackInSlot(int var1)
- Specified by:
getStackInSlot
in interfaceIInventory
-
decrStackSize
public ItemStack decrStackSize(int var1, int var2)
- Specified by:
decrStackSize
in interfaceIInventory
-
getStackInSlotOnClosing
public ItemStack getStackInSlotOnClosing(int var1)
- Specified by:
getStackInSlotOnClosing
in interfaceIInventory
-
setInventorySlotContents
public void setInventorySlotContents(int var1, ItemStack var2)
- Specified by:
setInventorySlotContents
in interfaceIInventory
-
getInvName
public java.lang.String getInvName()
- Specified by:
getInvName
in interfaceIInventory
-
getInventoryStackLimit
public int getInventoryStackLimit()
- Specified by:
getInventoryStackLimit
in interfaceIInventory
-
onInventoryChanged
public void onInventoryChanged()
- Specified by:
onInventoryChanged
in interfaceIInventory
-
setPositionAndRotation2
@Client public void setPositionAndRotation2(double var1, double var3, double var5, float var7, float var8, int var9)
- Overrides:
setPositionAndRotation2
in classEntity
-
setVelocity
@Client public void setVelocity(double var1, double var3, double var5)
- Overrides:
setVelocity
in classEntity
-
isUseableByPlayer
public boolean isUseableByPlayer(Player var1)
- Specified by:
isUseableByPlayer
in interfaceIInventory
-
isMinecartPowered
protected boolean isMinecartPowered()
-
setMinecartPowered
protected void setMinecartPowered(boolean var1)
-
openChest
public void openChest()
- Specified by:
openChest
in interfaceIInventory
-
closeChest
public void closeChest()
- Specified by:
closeChest
in interfaceIInventory
-
func_41024_b
public void func_41024_b(int var1)
-
func_41025_i
public int func_41025_i()
-
func_41028_c
public void func_41028_c(int var1)
-
func_41023_l
public int func_41023_l()
-
func_41029_h
public void func_41029_h(int var1)
-
func_41030_m
public int func_41030_m()
-
-