Package net.minecraft.tileentity
Class TileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<TileEntity>
net.minecraft.tileentity.TileEntity
- All Implemented Interfaces:
ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeTileEntity
,INBTSerializable<CompoundNBT>
- Direct Known Subclasses:
BannerTileEntity
,BeaconTileEntity
,BedTileEntity
,BeehiveTileEntity
,BellTileEntity
,CampfireTileEntity
,CommandBlockTileEntity
,ComparatorTileEntity
,ConduitTileEntity
,DaylightDetectorTileEntity
,EnchantingTableTileEntity
,EnderChestTileEntity
,EndPortalTileEntity
,FullPotsAccessorDemo.DioriteFlowerPotTileEntity
,JigsawTileEntity
,JukeboxTileEntity
,LecternTileEntity
,LockableTileEntity
,MobSpawnerTileEntity
,PistonTileEntity
,SignTileEntity
,SkullTileEntity
,StructureBlockTileEntity
,TileFluidHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate BlockState
private CompoundNBT
private boolean
protected World
private static final org.apache.logging.log4j.Logger
protected boolean
private final TileEntityType<?>
protected BlockPos
Fields inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
fillCrashReportCategory
(CrashReportCategory p_145828_1_) getLevel()
Gets aNBTTagCompound
that can be used to store custom data for this tile entity.getType()
double
boolean
hasLevel()
boolean
void
load
(BlockState p_230337_1_, CompoundNBT p_230337_2_) static TileEntity
loadStatic
(BlockState p_235657_0_, CompoundNBT p_235657_1_) void
void
void
boolean
void
save
(CompoundNBT p_189515_1_) private CompoundNBT
saveMetadata
(CompoundNBT p_189516_1_) void
void
setLevelAndPosition
(World p_226984_1_, BlockPos p_226984_2_) void
setPosition
(BlockPos p_174878_1_) void
boolean
triggerEvent
(int p_145842_1_, int p_145842_2_) Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, 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, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
type
-
level
-
worldPosition
-
remove
protected boolean remove -
blockState
-
hasLoggedInvalidStateBefore
private boolean hasLoggedInvalidStateBefore -
customTileData
-
-
Constructor Details
-
TileEntity
-
-
Method Details
-
getLevel
-
setLevelAndPosition
-
hasLevel
public boolean hasLevel() -
load
-
save
-
saveMetadata
-
loadStatic
-
setChanged
public void setChanged() -
getViewDistance
public double getViewDistance() -
getBlockPos
-
getBlockState
-
getUpdatePacket
-
getUpdateTag
-
isRemoved
public boolean isRemoved() -
setRemoved
public void setRemoved() -
onChunkUnloaded
public void onChunkUnloaded()- Specified by:
onChunkUnloaded
in interfaceIForgeTileEntity
-
clearRemoved
public void clearRemoved() -
triggerEvent
public boolean triggerEvent(int p_145842_1_, int p_145842_2_) -
clearCache
public void clearCache() -
fillCrashReportCategory
-
setPosition
-
onlyOpCanSetNbt
public boolean onlyOpCanSetNbt() -
rotate
-
mirror
-
getType
-
getTileData
Description copied from interface:IForgeTileEntity
Gets aNBTTagCompound
that can be used to store custom data for this tile entity. It will be written, and read from disc, so it persists over world saves.- Specified by:
getTileData
in interfaceIForgeTileEntity
- Returns:
- A compound tag for custom data
-
logInvalidState
public void logInvalidState()
-