Package net.minecraft.entity.item
Class EntityMinecartContainer
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.entity.Entity
-
- net.minecraft.entity.item.EntityMinecart
-
- net.minecraft.entity.item.EntityMinecartContainer
-
- All Implemented Interfaces:
IInventory
,IInteractionObject
,ILockableContainer
,IWorldNameable
,org.teavm.jso.JSObject
- Direct Known Subclasses:
EntityMinecartChest
,EntityMinecartHopper
public abstract class EntityMinecartContainer extends EntityMinecart implements ILockableContainer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.item.EntityMinecart
EntityMinecart.EnumMinecartType
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
-
Fields inherited from class net.minecraft.entity.Entity
addedToChunk, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, field_181016_an, field_181017_ao, field_181018_ap, 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, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj
-
-
Constructor Summary
Constructors Constructor Description EntityMinecartContainer(World worldIn)
EntityMinecartContainer(World worldIn, double parDouble1, double parDouble2, double parDouble3)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyDrag()
void
clear()
void
closeInventory(EntityPlayer var1)
ItemStack
decrStackSize(int i, int j)
+ Removes up to a specified number of items from an inventory slot and returns them in a new stack.int
getField(int var1)
int
getFieldCount()
int
getInventoryStackLimit()
+ Returns the maximum stack size for a inventory slot.LockCode
getLockCode()
java.lang.String
getName()
+ Gets the name of this command sender (usually username, but possibly "Rcon")ItemStack
getStackInSlot(int i)
+ Returns the stack in the given slot.boolean
interactFirst(EntityPlayer entityplayer)
+ First layer of player interactionboolean
isItemValidForSlot(int var1, ItemStack var2)
+ Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.boolean
isLocked()
boolean
isUseableByPlayer(EntityPlayer entityplayer)
+ Do not make give this method the name canInteractWith because it clashes with Containervoid
killMinecart(DamageSource damagesource)
void
markDirty()
+ For tile entities, ensures the chunk containing the tile entity is saved to disk later - the game won't think it hasn't changed and skip it.void
openInventory(EntityPlayer var1)
protected void
readEntityFromNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to read subclass entity data from NBT.ItemStack
removeStackFromSlot(int i)
+ Removes a stack from the given slot and returns it.void
setDead()
+ Will get destroyed next tick.void
setField(int var1, int var2)
void
setInventorySlotContents(int i, ItemStack itemstack)
+ Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).void
setLockCode(LockCode var1)
void
travelToDimension(int i)
+ Teleports the entity to another dimension.protected void
writeEntityToNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to write subclass entity data to NBT.-
Methods inherited from class net.minecraft.entity.item.EntityMinecart
applyEntityCollision, attackEntityFrom, canBeCollidedWith, canBePushed, canTriggerWalking, entityInit, func_174899_a, func_180458_a, func_180460_a, func_70489_a, func_70495_a, getCollisionBoundingBox, getCollisionBox, getCustomNameTag, getDamage, getDefaultDisplayTile, getDefaultDisplayTileOffset, getDisplayName, getDisplayTile, getDisplayTileOffset, getMaximumSpeed, getMinecartType, getMountedYOffset, getRollingAmplitude, getRollingDirection, hasCustomName, hasDisplayTile, moveDerailedMinecart, onActivatorRailPass, onUpdate, performHurtAnimation, setCustomNameTag, setDamage, setDisplayTileOffset, setHasDisplayTile, setPosition, setPositionAndRotation2, setRollingAmplitude, setRollingDirection, setVelocity
-
Methods inherited from class net.minecraft.entity.Entity
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, fromNBT, func_181012_aH, func_181013_g, func_181014_aG, func_181015_d, getAir, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCommandSenderEntity, getDataWatcher, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getEyeHeight, getFlag, getHorizontalFacing, getHoverEvent, getInventory, getLook, getLookVec, getMaxFallHeight, getMaxInPortalTime, getNBTTagCompound, getParts, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getRotationYawHead, getSplashSound, getSwimSound, getUniqueID, getVectorForRotation, getYOffset, handleStatusUpdate, handleWaterMovement, hashCode, hitByEntity, interactAt, isBurning, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSprinting, isWet, kill, loadPluginData, makePluginData, mountEntity, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onDataWatcherUpdate, onEntityUpdate, onKillCommand, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, replaceItemInInventory, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setBeenAttacked, setCurrentItemOrArmor, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPositionAndRotation, setPositionAndUpdate, setRotation, setRotationYawHead, setSilent, setSize, setSneaking, setSprinting, setWorld, shouldSetPosAfterLoading, spawnRunningParticles, toNBT, toString, updateFallState, updateRidden, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraft.world.IInteractionObject
createContainer, getGuiID
-
Methods inherited from interface net.minecraft.inventory.IInventory
getSizeInventory
-
Methods inherited from interface net.minecraft.world.IWorldNameable
getDisplayName, hasCustomName
-
-
-
-
Method Detail
-
killMinecart
public void killMinecart(DamageSource damagesource)
- Overrides:
killMinecart
in classEntityMinecart
-
getStackInSlot
public ItemStack getStackInSlot(int i)
+ Returns the stack in the given slot.- Specified by:
getStackInSlot
in interfaceIInventory
-
decrStackSize
public ItemStack decrStackSize(int i, int j)
+ Removes up to a specified number of items from an inventory slot and returns them in a new stack.- Specified by:
decrStackSize
in interfaceIInventory
-
removeStackFromSlot
public ItemStack removeStackFromSlot(int i)
+ Removes a stack from the given slot and returns it.- Specified by:
removeStackFromSlot
in interfaceIInventory
-
setInventorySlotContents
public void setInventorySlotContents(int i, ItemStack itemstack)
+ Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).- Specified by:
setInventorySlotContents
in interfaceIInventory
-
markDirty
public void markDirty()
+ For tile entities, ensures the chunk containing the tile entity is saved to disk later - the game won't think it hasn't changed and skip it.- Specified by:
markDirty
in interfaceIInventory
-
isUseableByPlayer
public boolean isUseableByPlayer(EntityPlayer entityplayer)
+ Do not make give this method the name canInteractWith because it clashes with Container- Specified by:
isUseableByPlayer
in interfaceIInventory
-
openInventory
public void openInventory(EntityPlayer var1)
- Specified by:
openInventory
in interfaceIInventory
-
closeInventory
public void closeInventory(EntityPlayer var1)
- Specified by:
closeInventory
in interfaceIInventory
-
isItemValidForSlot
public boolean isItemValidForSlot(int var1, ItemStack var2)
+ Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.- Specified by:
isItemValidForSlot
in interfaceIInventory
-
getName
public java.lang.String getName()
+ Gets the name of this command sender (usually username, but possibly "Rcon")- Specified by:
getName
in interfaceIWorldNameable
- Overrides:
getName
in classEntityMinecart
-
getInventoryStackLimit
public int getInventoryStackLimit()
+ Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended.- Specified by:
getInventoryStackLimit
in interfaceIInventory
-
travelToDimension
public void travelToDimension(int i)
+ Teleports the entity to another dimension. Params: Dimension number to teleport to- Overrides:
travelToDimension
in classEntity
-
setDead
public void setDead()
+ Will get destroyed next tick.- Overrides:
setDead
in classEntityMinecart
-
writeEntityToNBT
protected void writeEntityToNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBT
in classEntityMinecart
-
readEntityFromNBT
protected void readEntityFromNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBT
in classEntityMinecart
-
interactFirst
public boolean interactFirst(EntityPlayer entityplayer)
+ First layer of player interaction- Overrides:
interactFirst
in classEntity
-
applyDrag
protected void applyDrag()
- Overrides:
applyDrag
in classEntityMinecart
-
getField
public int getField(int var1)
- Specified by:
getField
in interfaceIInventory
-
setField
public void setField(int var1, int var2)
- Specified by:
setField
in interfaceIInventory
-
getFieldCount
public int getFieldCount()
- Specified by:
getFieldCount
in interfaceIInventory
-
isLocked
public boolean isLocked()
- Specified by:
isLocked
in interfaceILockableContainer
-
setLockCode
public void setLockCode(LockCode var1)
- Specified by:
setLockCode
in interfaceILockableContainer
-
getLockCode
public LockCode getLockCode()
- Specified by:
getLockCode
in interfaceILockableContainer
-
clear
public void clear()
- Specified by:
clear
in interfaceIInventory
-
-