public abstract class EntityMinecartContainer extends EntityMinecart implements ILockableContainer, ILootContainer
EntityMinecart.Type
Modifier and Type | Field and Description |
---|---|
boolean |
dropContentsWhenDead |
IItemHandler |
itemHandler |
canBePushed, canUseRail, defaultDragAir, defaultMaxSpeedAirLateral, defaultMaxSpeedAirVertical, dragAir, maxSpeedAirLateral, maxSpeedAirVertical
addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, fireResistance, firstUpdate, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj
Constructor and Description |
---|
EntityMinecartContainer(World worldIn) |
EntityMinecartContainer(World worldIn,
double x,
double y,
double z) |
Modifier and Type | Method and Description |
---|---|
void |
addLoot(EntityPlayer player) |
protected void |
applyDrag() |
Entity |
changeDimension(int dimensionIn) |
void |
clear() |
void |
closeInventory(EntityPlayer player) |
ItemStack |
decrStackSize(int index,
int count) |
<T> T |
getCapability(Capability<T> capability,
EnumFacing facing)
Retrieves the handler for the capability requested on the specific side.
|
int |
getField(int id) |
int |
getFieldCount() |
int |
getInventoryStackLimit() |
LockCode |
getLockCode() |
ResourceLocation |
getLootTable() |
ItemStack |
getStackInSlot(int index) |
boolean |
hasCapability(Capability<?> capability,
EnumFacing facing)
Determines if this object has support for the capability in question on the specific side.
|
boolean |
isItemValidForSlot(int index,
ItemStack stack) |
boolean |
isLocked() |
boolean |
isUseableByPlayer(EntityPlayer player) |
void |
killMinecart(DamageSource source) |
void |
markDirty() |
void |
openInventory(EntityPlayer player) |
boolean |
processInitialInteract(EntityPlayer player,
ItemStack stack,
EnumHand hand) |
protected void |
readEntityFromNBT(NBTTagCompound compound) |
ItemStack |
removeStackFromSlot(int index) |
void |
setDead() |
void |
setDropItemsWhenDead(boolean dropWhenDead) |
void |
setField(int id,
int value) |
void |
setInventorySlotContents(int index,
ItemStack stack) |
void |
setLockCode(LockCode code) |
void |
setLootTable(ResourceLocation lootTableIn,
long lootTableSeedIn) |
protected void |
writeEntityToNBT(NBTTagCompound compound) |
applyEntityCollision, attackEntityFrom, canBeCollidedWith, canBePushed, canBeRidden, canTriggerWalking, canUseRail, create, entityInit, getAdjustedHorizontalFacing, getCartItem, getCollisionBoundingBox, getCollisionBox, getCollisionHandler, getCurrentCartSpeedCapOnRail, getDamage, getDefaultDisplayTile, getDefaultDisplayTileOffset, getDisplayTile, getDisplayTileOffset, getDragAir, getMaxCartSpeedOnRail, getMaximumSpeed, getMaxSpeed, getMaxSpeedAirLateral, getMaxSpeedAirVertical, getMountedYOffset, getPos, getPosOffset, getRenderBoundingBox, getRollingAmplitude, getRollingDirection, getSlopeAdjustment, getType, hasDisplayTile, isPoweredCart, moveAlongTrack, moveDerailedMinecart, moveMinecartOnRail, onActivatorRailPass, onUpdate, performHurtAnimation, setCanUseRail, setCollisionHandler, setCurrentCartSpeedCapOnRail, setDamage, setDisplayTile, setDisplayTileOffset, setDragAir, setHasDisplayTile, setMaxSpeedAirLateral, setMaxSpeedAirVertical, setPosition, setPositionAndRotationDirect, setRollingAmplitude, setRollingDirection, setVelocity, shouldDoRailFunctions
addChatMessage, addEntityCrashInfo, addPassenger, addTag, addToPlayerScore, addTrackingPlayer, addVelocity, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBeRidden, canCommandSenderUseCommand, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, dismountRidingEntity, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, getAir, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getFlag, getHeldEquipment, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getServer, getSoundCategory, getSplashSound, getSwimSound, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, handleStatusUpdate, handleWaterMovement, hasCustomName, hashCode, hitByEntity, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, kill, moveEntity, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onKillCommand, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetEntityId, resetHeight, resetPositionToBB, sendCommandFeedback, serializeNBT, setAir, setAlwaysRenderNameTag, setAngles, setBeenAttacked, setCommandStat, setCommandStats, setCustomNameTag, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setInWeb, setItemStackToSlot, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPortal, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSize, setSneaking, setSprinting, setUniqueId, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, toString, updateFallState, updatePassenger, updateRidden, verifyExplosion, writeToNBT, writeToNBTAtomically, writeToNBTOptional
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getSizeInventory
createContainer, getGuiID
getDisplayName, getName, hasCustomName
public boolean dropContentsWhenDead
public IItemHandler itemHandler
public EntityMinecartContainer(World worldIn)
public EntityMinecartContainer(World worldIn, double x, double y, double z)
public void killMinecart(DamageSource source)
killMinecart
in class EntityMinecart
@Nullable public ItemStack getStackInSlot(int index)
getStackInSlot
in interface IInventory
@Nullable public ItemStack decrStackSize(int index, int count)
decrStackSize
in interface IInventory
@Nullable public ItemStack removeStackFromSlot(int index)
removeStackFromSlot
in interface IInventory
public void setInventorySlotContents(int index, @Nullable 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 int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
@Nullable public Entity changeDimension(int dimensionIn)
changeDimension
in class Entity
public void setDead()
setDead
in class EntityMinecart
public void setDropItemsWhenDead(boolean dropWhenDead)
setDropItemsWhenDead
in class Entity
protected void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT
in class EntityMinecart
protected void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT
in class EntityMinecart
public boolean processInitialInteract(EntityPlayer player, @Nullable ItemStack stack, EnumHand hand)
processInitialInteract
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 addLoot(@Nullable EntityPlayer player)
public <T> T getCapability(Capability<T> capability, EnumFacing facing)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
getCapability
in class Entity
capability
- The capability to checkfacing
- The Side to check from:
CAN BE NULL. Null is defined to represent 'internal' or 'self'public boolean hasCapability(Capability<?> capability, EnumFacing facing)
ICapabilityProvider
hasCapability
in interface ICapabilityProvider
hasCapability
in class Entity
capability
- The capability to checkfacing
- The Side to check from:
CAN BE NULL. Null is defined to represent 'internal' or 'self'public void clear()
clear
in interface IInventory
public void setLootTable(ResourceLocation lootTableIn, long lootTableSeedIn)
public ResourceLocation getLootTable()
getLootTable
in interface ILootContainer