public abstract class EntityInventory
extends net.minecraft.entity.Entity
implements net.minecraft.inventory.IInventory
Modifier and Type | Field and Description |
---|---|
net.minecraft.item.ItemStack[] |
items |
addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, 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, yOffset, ySize
Constructor and Description |
---|
EntityInventory(net.minecraft.world.World world) |
Modifier and Type | Method and Description |
---|---|
void |
closeInventory() |
net.minecraft.item.ItemStack |
decrStackSize(int slot,
int amount) |
protected void |
entityInit() |
abstract java.lang.String |
getInventoryName() |
abstract int |
getInventoryStackLimit() |
abstract int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int slot) |
net.minecraft.item.ItemStack |
getStackInSlotOnClosing(int slot) |
boolean |
hasCustomInventoryName() |
abstract boolean |
interactFirst(net.minecraft.entity.player.EntityPlayer player) |
abstract boolean |
isItemValidForSlot(int slot,
net.minecraft.item.ItemStack stack) |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player) |
void |
markDirty() |
void |
openInventory() |
void |
readEntityFromNBT(net.minecraft.nbt.NBTTagCompound tag) |
void |
setInventorySlotContents(int slot,
net.minecraft.item.ItemStack stack) |
void |
writeEntityToNBT(net.minecraft.nbt.NBTTagCompound tag) |
addEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, attackEntityFrom, canAttackWithItem, canBeCollidedWith, canBePushed, canRenderOnFire, canRiderInteract, canTriggerWalking, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doesEntityNotTriggerPressurePlate, dropItem, entityDropItem, equals, extinguish, fall, func_145748_c_, func_145771_j, func_145772_a, func_145774_a, func_145775_I, func_145778_a, func_145780_a, func_145781_i, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getCommandSenderName, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityId, getEntityString, getExtendedProperties, getEyeHeight, getFlag, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getMountedYOffset, getParts, getPersistentID, getPickedResult, getPortalCooldown, getRotationYawHead, getShadowSize, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, isBurning, isCreatureType, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isWet, kill, mountEntity, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onKillEntity, onStruckByLightning, onUpdate, performHurtAnimation, playSound, preparePlayerToSpawn, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setDead, setEating, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setPositionAndRotation2, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, toString, travelToDimension, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
protected void entityInit()
entityInit
in class net.minecraft.entity.Entity
public void readEntityFromNBT(net.minecraft.nbt.NBTTagCompound tag)
readEntityFromNBT
in class net.minecraft.entity.Entity
public void writeEntityToNBT(net.minecraft.nbt.NBTTagCompound tag)
writeEntityToNBT
in class net.minecraft.entity.Entity
public abstract int getSizeInventory()
getSizeInventory
in interface net.minecraft.inventory.IInventory
public net.minecraft.item.ItemStack getStackInSlot(int slot)
getStackInSlot
in interface net.minecraft.inventory.IInventory
public net.minecraft.item.ItemStack decrStackSize(int slot, int amount)
decrStackSize
in interface net.minecraft.inventory.IInventory
public net.minecraft.item.ItemStack getStackInSlotOnClosing(int slot)
getStackInSlotOnClosing
in interface net.minecraft.inventory.IInventory
public void setInventorySlotContents(int slot, net.minecraft.item.ItemStack stack)
setInventorySlotContents
in interface net.minecraft.inventory.IInventory
public abstract java.lang.String getInventoryName()
getInventoryName
in interface net.minecraft.inventory.IInventory
public boolean hasCustomInventoryName()
hasCustomInventoryName
in interface net.minecraft.inventory.IInventory
public abstract int getInventoryStackLimit()
getInventoryStackLimit
in interface net.minecraft.inventory.IInventory
public void markDirty()
markDirty
in interface net.minecraft.inventory.IInventory
public boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player)
isUseableByPlayer
in interface net.minecraft.inventory.IInventory
public void openInventory()
openInventory
in interface net.minecraft.inventory.IInventory
public void closeInventory()
closeInventory
in interface net.minecraft.inventory.IInventory
public abstract boolean isItemValidForSlot(int slot, net.minecraft.item.ItemStack stack)
isItemValidForSlot
in interface net.minecraft.inventory.IInventory
public abstract boolean interactFirst(net.minecraft.entity.player.EntityPlayer player)
interactFirst
in class net.minecraft.entity.Entity