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 voidapplyDrag()voidclear()voidcloseInventory(EntityPlayer var1)ItemStackdecrStackSize(int i, int j)+ Removes up to a specified number of items from an inventory slot and returns them in a new stack.intgetField(int var1)intgetFieldCount()intgetInventoryStackLimit()+ Returns the maximum stack size for a inventory slot.LockCodegetLockCode()java.lang.StringgetName()+ Gets the name of this command sender (usually username, but possibly "Rcon")ItemStackgetStackInSlot(int i)+ Returns the stack in the given slot.booleaninteractFirst(EntityPlayer entityplayer)+ First layer of player interactionbooleanisItemValidForSlot(int var1, ItemStack var2)+ Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.booleanisLocked()booleanisUseableByPlayer(EntityPlayer entityplayer)+ Do not make give this method the name canInteractWith because it clashes with ContainervoidkillMinecart(DamageSource damagesource)voidmarkDirty()+ 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.voidopenInventory(EntityPlayer var1)protected voidreadEntityFromNBT(NBTTagCompound nbttagcompound)+ (abstract) Protected helper method to read subclass entity data from NBT.ItemStackremoveStackFromSlot(int i)+ Removes a stack from the given slot and returns it.voidsetDead()+ Will get destroyed next tick.voidsetField(int var1, int var2)voidsetInventorySlotContents(int i, ItemStack itemstack)+ Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).voidsetLockCode(LockCode var1)voidtravelToDimension(int i)+ Teleports the entity to another dimension.protected voidwriteEntityToNBT(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:
killMinecartin classEntityMinecart
-
getStackInSlot
public ItemStack getStackInSlot(int i)
+ Returns the stack in the given slot.- Specified by:
getStackInSlotin 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:
decrStackSizein interfaceIInventory
-
removeStackFromSlot
public ItemStack removeStackFromSlot(int i)
+ Removes a stack from the given slot and returns it.- Specified by:
removeStackFromSlotin 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:
setInventorySlotContentsin 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:
markDirtyin interfaceIInventory
-
isUseableByPlayer
public boolean isUseableByPlayer(EntityPlayer entityplayer)
+ Do not make give this method the name canInteractWith because it clashes with Container- Specified by:
isUseableByPlayerin interfaceIInventory
-
openInventory
public void openInventory(EntityPlayer var1)
- Specified by:
openInventoryin interfaceIInventory
-
closeInventory
public void closeInventory(EntityPlayer var1)
- Specified by:
closeInventoryin 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:
isItemValidForSlotin interfaceIInventory
-
getName
public java.lang.String getName()
+ Gets the name of this command sender (usually username, but possibly "Rcon")- Specified by:
getNamein interfaceIWorldNameable- Overrides:
getNamein 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:
getInventoryStackLimitin interfaceIInventory
-
travelToDimension
public void travelToDimension(int i)
+ Teleports the entity to another dimension. Params: Dimension number to teleport to- Overrides:
travelToDimensionin classEntity
-
setDead
public void setDead()
+ Will get destroyed next tick.- Overrides:
setDeadin classEntityMinecart
-
writeEntityToNBT
protected void writeEntityToNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityMinecart
-
readEntityFromNBT
protected void readEntityFromNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityMinecart
-
interactFirst
public boolean interactFirst(EntityPlayer entityplayer)
+ First layer of player interaction- Overrides:
interactFirstin classEntity
-
applyDrag
protected void applyDrag()
- Overrides:
applyDragin classEntityMinecart
-
getField
public int getField(int var1)
- Specified by:
getFieldin interfaceIInventory
-
setField
public void setField(int var1, int var2)- Specified by:
setFieldin interfaceIInventory
-
getFieldCount
public int getFieldCount()
- Specified by:
getFieldCountin interfaceIInventory
-
isLocked
public boolean isLocked()
- Specified by:
isLockedin interfaceILockableContainer
-
setLockCode
public void setLockCode(LockCode var1)
- Specified by:
setLockCodein interfaceILockableContainer
-
getLockCode
public LockCode getLockCode()
- Specified by:
getLockCodein interfaceILockableContainer
-
clear
public void clear()
- Specified by:
clearin interfaceIInventory
-
-