Package net.minecraft.tileentity
Class ShulkerBoxTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<TileEntity>
net.minecraft.tileentity.TileEntity
net.minecraft.tileentity.LockableTileEntity
net.minecraft.tileentity.LockableLootTileEntity
net.minecraft.tileentity.ShulkerBoxTileEntity
- All Implemented Interfaces:
IContainerProvider
,INamedContainerProvider
,IClearable
,IInventory
,ISidedInventory
,ITickableTileEntity
,INameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeTileEntity
,INBTSerializable<CompoundNBT>
public class ShulkerBoxTileEntity
extends LockableLootTileEntity
implements ISidedInventory, ITickableTileEntity
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate DyeColor
private NonNullList<ItemStack>
private boolean
private int
private float
private float
private static final int[]
Fields inherited from class net.minecraft.tileentity.LockableLootTileEntity
lootTable, lootTableSeed
Fields inherited from class net.minecraft.tileentity.TileEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canPlaceItemThroughFace
(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) boolean
canTakeItemThroughFace
(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) protected Container
createMenu
(int p_213906_1_, PlayerInventory p_213906_2_) protected IItemHandler
private void
getBoundingBox
(BlockState p_190584_1_) getBoundingBox
(Direction p_190587_1_) getColor()
int
protected ITextComponent
protected NonNullList<ItemStack>
getItems()
float
getProgress
(float p_190585_1_) int[]
getSlotsForFace
(Direction p_180463_1_) private AxisAlignedBB
getTopBoundingBox
(Direction p_190588_1_) boolean
isClosed()
void
load
(BlockState p_230337_1_, CompoundNBT p_230337_2_) void
loadFromTag
(CompoundNBT p_190586_1_) private void
save
(CompoundNBT p_189515_1_) saveToTag
(CompoundNBT p_190580_1_) protected void
setItems
(NonNullList<ItemStack> p_199721_1_) void
startOpen
(PlayerEntity p_174889_1_) void
stopOpen
(PlayerEntity p_174886_1_) void
tick()
boolean
triggerEvent
(int p_145842_1_, int p_145842_2_) protected void
Methods inherited from class net.minecraft.tileentity.LockableLootTileEntity
canOpen, clearContent, createMenu, getItem, isEmpty, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTable, stillValid, tryLoadLootTable, trySaveLootTable, unpackLootTable
Methods inherited from class net.minecraft.tileentity.LockableTileEntity
canUnlock, getCapability, getCustomName, getDisplayName, getName, invalidateCaps, setCustomName
Methods inherited from class net.minecraft.tileentity.TileEntity
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getUpdateTag, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
Methods inherited from interface net.minecraft.inventory.IClearable
clearContent
Methods inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
Methods inherited from interface net.minecraft.inventory.IInventory
canPlaceItem, countItem, getItem, getMaxStackSize, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setChanged, setItem, stillValid
Methods inherited from interface net.minecraft.util.INameable
hasCustomName
-
Field Details
-
SLOTS
private static final int[] SLOTS -
itemStacks
-
openCount
private int openCount -
animationStatus
-
progress
private float progress -
progressOld
private float progressOld -
color
-
loadColorFromBlock
private boolean loadColorFromBlock
-
-
Constructor Details
-
ShulkerBoxTileEntity
-
ShulkerBoxTileEntity
public ShulkerBoxTileEntity()
-
-
Method Details
-
tick
public void tick()- Specified by:
tick
in interfaceITickableTileEntity
-
updateAnimation
protected void updateAnimation() -
getAnimationStatus
-
getBoundingBox
-
getBoundingBox
-
getTopBoundingBox
-
moveCollidedEntities
private void moveCollidedEntities() -
getContainerSize
public int getContainerSize()- Specified by:
getContainerSize
in interfaceIInventory
-
triggerEvent
public boolean triggerEvent(int p_145842_1_, int p_145842_2_) - Overrides:
triggerEvent
in classTileEntity
-
doNeighborUpdates
private void doNeighborUpdates() -
startOpen
- Specified by:
startOpen
in interfaceIInventory
-
stopOpen
- Specified by:
stopOpen
in interfaceIInventory
-
getDefaultName
- Specified by:
getDefaultName
in classLockableTileEntity
-
load
- Overrides:
load
in classLockableTileEntity
-
save
- Overrides:
save
in classLockableTileEntity
-
loadFromTag
-
saveToTag
-
getItems
- Specified by:
getItems
in classLockableLootTileEntity
-
setItems
- Specified by:
setItems
in classLockableLootTileEntity
-
getSlotsForFace
- Specified by:
getSlotsForFace
in interfaceISidedInventory
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int p_180462_1_, ItemStack p_180462_2_, @Nullable Direction p_180462_3_) - Specified by:
canPlaceItemThroughFace
in interfaceISidedInventory
-
canTakeItemThroughFace
public boolean canTakeItemThroughFace(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) - Specified by:
canTakeItemThroughFace
in interfaceISidedInventory
-
getProgress
public float getProgress(float p_190585_1_) -
getColor
-
createMenu
- Specified by:
createMenu
in classLockableTileEntity
-
isClosed
public boolean isClosed() -
createUnSidedHandler
- Overrides:
createUnSidedHandler
in classLockableTileEntity
-