public abstract class EntityMinecartContainer extends EntityMinecart implements ILockableContainer
EntityMinecart.EnumMinecartType
canBePushed, canUseRail, defaultDragAir, defaultMaxSpeedAirLateral, defaultMaxSpeedAirVertical, dragAir, maxSpeedAirLateral, maxSpeedAirVertical
addedToChunk, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, fireResistance, firstUpdate, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj
Constructor and Description |
---|
EntityMinecartContainer(World worldIn) |
EntityMinecartContainer(World worldIn,
double p_i1717_2_,
double p_i1717_4_,
double p_i1717_6_) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyDrag() |
void |
clear() |
void |
closeInventory(EntityPlayer player) |
ItemStack |
decrStackSize(int index,
int count) |
int |
getField(int id) |
int |
getFieldCount() |
int |
getInventoryStackLimit() |
LockCode |
getLockCode() |
java.lang.String |
getName() |
ItemStack |
getStackInSlot(int index) |
ItemStack |
getStackInSlotOnClosing(int index) |
boolean |
interactFirst(EntityPlayer playerIn) |
boolean |
isItemValidForSlot(int index,
ItemStack stack) |
boolean |
isLocked() |
boolean |
isUseableByPlayer(EntityPlayer player) |
void |
killMinecart(DamageSource p_94095_1_) |
void |
markDirty() |
void |
openInventory(EntityPlayer player) |
protected void |
readEntityFromNBT(NBTTagCompound tagCompund) |
void |
setDead() |
void |
setField(int id,
int value) |
void |
setInventorySlotContents(int index,
ItemStack stack) |
void |
setLockCode(LockCode code) |
void |
travelToDimension(int dimensionId) |
protected void |
writeEntityToNBT(NBTTagCompound tagCompound) |
applyEntityCollision, attackEntityFrom, canBeCollidedWith, canBePushed, canBeRidden, canTriggerWalking, canUseRail, entityInit, func_174898_m, func_174899_a, func_180426_a, func_180458_a, func_180460_a, func_70489_a, func_70495_a, getBoundingBox, getCartItem, getCollisionBox, getCollisionHandler, getCurrentCartSpeedCapOnRail, getCustomNameTag, getDamage, getDefaultDisplayTile, getDefaultDisplayTileOffset, getDisplayName, getDisplayTile, getDisplayTileOffset, getDragAir, getMaxCartSpeedOnRail, getMaxSpeed, getMaxSpeedAirLateral, getMaxSpeedAirVertical, getMinecartType, getMountedYOffset, getRollingAmplitude, getRollingDirection, getSlopeAdjustment, hasCustomName, hasDisplayTile, isPoweredCart, moveDerailedMinecart, moveMinecartOnRail, onActivatorRailPass, onUpdate, performHurtAnimation, setCanUseRail, setCollisionHandler, setCurrentCartSpeedCapOnRail, setCustomNameTag, setDamage, setDisplayTileOffset, setDragAir, setHasDisplayTile, setMaxSpeedAirLateral, setMaxSpeedAirVertical, setPosition, setRollingAmplitude, setRollingDirection, setVelocity, shouldDoRailFunctions
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, canAttackWithItem, canRenderOnFire, canRiderInteract, canUseCommand, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, func_145781_i, func_174807_aT, func_174815_a, func_174816_a, func_174817_o, func_174819_aU, func_174823_aP, func_174825_a, func_174827_a, func_174834_g, func_180427_aV, func_180433_a, getAir, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCommandSenderEntity, getDataWatcher, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getExtendedProperties, getEyeHeight, getFlag, getHorizontalFacing, getInventory, getLook, getLookVec, getMaxFallHeight, getMaxInPortalTime, getParts, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getRotationYawHead, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, handleHealthUpdate, handleWaterMovement, hashCode, hitByEntity, isBurning, isCreatureType, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSprinting, isWet, kill, mountEntity, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onKillCommand, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerExtendedProperties, replaceItemInInventory, resetEntityId, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setBeenAttacked, setCommandStat, setCurrentItemOrArmor, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPositionAndRotation, setPositionAndUpdate, setRotation, setRotationYawHead, setSilent, setSize, setSneaking, setSprinting, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, toString, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getSizeInventory
createContainer, getGuiID
getDisplayName, hasCustomName
public EntityMinecartContainer(World worldIn)
public EntityMinecartContainer(World worldIn, double p_i1717_2_, double p_i1717_4_, double p_i1717_6_)
public void killMinecart(DamageSource p_94095_1_)
killMinecart
in class EntityMinecart
public ItemStack getStackInSlot(int index)
getStackInSlot
in interface IInventory
public ItemStack decrStackSize(int index, int count)
decrStackSize
in interface IInventory
public ItemStack getStackInSlotOnClosing(int index)
getStackInSlotOnClosing
in interface IInventory
public void setInventorySlotContents(int index, ItemStack stack)
setInventorySlotContents
in interface IInventory
public void markDirty()
markDirty
in interface IInventory
public boolean isUseableByPlayer(EntityPlayer player)
isUseableByPlayer
in interface IInventory
public void openInventory(EntityPlayer player)
openInventory
in interface IInventory
public void closeInventory(EntityPlayer player)
closeInventory
in interface IInventory
public boolean isItemValidForSlot(int index, ItemStack stack)
isItemValidForSlot
in interface IInventory
public java.lang.String getName()
getName
in interface ICommandSender
getName
in interface IWorldNameable
getName
in class EntityMinecart
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
public void travelToDimension(int dimensionId)
travelToDimension
in class Entity
public void setDead()
setDead
in class EntityMinecart
protected void writeEntityToNBT(NBTTagCompound tagCompound)
writeEntityToNBT
in class EntityMinecart
protected void readEntityFromNBT(NBTTagCompound tagCompund)
readEntityFromNBT
in class EntityMinecart
public boolean interactFirst(EntityPlayer playerIn)
interactFirst
in class Entity
protected void applyDrag()
applyDrag
in class EntityMinecart
public int getField(int id)
getField
in interface IInventory
public void setField(int id, int value)
setField
in interface IInventory
public int getFieldCount()
getFieldCount
in interface IInventory
public boolean isLocked()
isLocked
in interface ILockableContainer
public void setLockCode(LockCode code)
setLockCode
in interface ILockableContainer
public LockCode getLockCode()
getLockCode
in interface ILockableContainer
public void clear()
clear
in interface IInventory