Class InventoryTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.pixelmonmod.pixelmon.blocks.tileentity.InventoryTileEntity
- All Implemented Interfaces:
- IBasicInventory,- net.minecraft.world.Clearable,- net.minecraft.world.Container,- net.minecraft.world.inventory.MenuConstructor,- net.minecraft.world.MenuProvider,- net.minecraftforge.common.capabilities.ICapabilityProvider,- net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>,- net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,- net.minecraftforge.common.extensions.IForgeBlockEntity,- net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- Direct Known Subclasses:
- BoxTileEntity,- EndTableTileEntity,- FridgeTileEntity,- MowerTileEntity
public abstract class InventoryTileEntity
extends net.minecraft.world.level.block.entity.BlockEntity
implements IBasicInventory, net.minecraft.world.MenuProvider
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvidernet.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
- 
Field SummaryFields inherited from class net.minecraft.world.level.block.entity.BlockEntitylevel, remove, worldPositionFields inherited from interface net.minecraft.world.ContainerDEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZEFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntityINFINITE_EXTENT_AABB
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedInventoryTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, String inventoryName, int rows, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaddToInventory(net.minecraft.world.item.ItemStack stack) net.minecraft.world.inventory.AbstractContainerMenucreateMenu(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) intnet.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>net.minecraft.network.chat.Componentnet.minecraft.world.item.ItemStackgetItem(int index) intbooleanbooleanisEmpty()voidload(net.minecraft.nbt.CompoundTag nbt) net.minecraft.world.item.ItemStackremoveItem(int index, int count) net.minecraft.world.item.ItemStackremoveItemNoUpdate(int index) voidsaveAdditional(net.minecraft.nbt.CompoundTag nbt) voidsetItem(int index, net.minecraft.world.item.ItemStack stack) booleanstillValid(net.minecraft.world.entity.player.Player player) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.ContainercanTakeItem, countItem, hasAnyMatching, hasAnyOf, setChangedMethods inherited from interface com.pixelmonmod.pixelmon.blocks.tileentity.IBasicInventorycanPlaceItem, clearContent, startOpen, stopOpenMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntitydeserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
- 
Constructor Details- 
InventoryTileEntityprotected InventoryTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, String inventoryName, int rows, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) 
 
- 
- 
Method Details- 
getContentspublic net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getContents()
- 
loadpublic void load(net.minecraft.nbt.CompoundTag nbt) - Overrides:
- loadin class- net.minecraft.world.level.block.entity.BlockEntity
 
- 
addToInventorypublic boolean addToInventory(net.minecraft.world.item.ItemStack stack) 
- 
saveAdditionalpublic void saveAdditional(net.minecraft.nbt.CompoundTag nbt) - Overrides:
- saveAdditionalin class- net.minecraft.world.level.block.entity.BlockEntity
 
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin interface- net.minecraft.world.Container
 
- 
getItempublic net.minecraft.world.item.ItemStack getItem(int index) - Specified by:
- getItemin interface- net.minecraft.world.Container
 
- 
removeItempublic net.minecraft.world.item.ItemStack removeItem(int index, int count) - Specified by:
- removeItemin interface- net.minecraft.world.Container
- Specified by:
- removeItemin interface- IBasicInventory
 
- 
removeItemNoUpdatepublic net.minecraft.world.item.ItemStack removeItemNoUpdate(int index) - Specified by:
- removeItemNoUpdatein interface- net.minecraft.world.Container
 
- 
setItempublic void setItem(int index, net.minecraft.world.item.ItemStack stack) - Specified by:
- setItemin interface- net.minecraft.world.Container
 
- 
getMaxStackSizepublic int getMaxStackSize()- Specified by:
- getMaxStackSizein interface- net.minecraft.world.Container
- Specified by:
- getMaxStackSizein interface- IBasicInventory
 
- 
stillValidpublic boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
- stillValidin interface- net.minecraft.world.Container
 
- 
getCustomName
- 
hasCustomNamepublic boolean hasCustomName()
- 
getDisplayNamepublic net.minecraft.network.chat.Component getDisplayName()- Specified by:
- getDisplayNamein interface- net.minecraft.world.MenuProvider
 
- 
createMenupublic net.minecraft.world.inventory.AbstractContainerMenu createMenu(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) - Specified by:
- createMenuin interface- net.minecraft.world.inventory.MenuConstructor
 
- 
getContainerSizepublic int getContainerSize()- Specified by:
- getContainerSizein interface- net.minecraft.world.Container
 
 
-