Class TileEntity

    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • level

        @Nullable
        protected World level
      • worldPosition

        protected BlockPos worldPosition
      • remove

        protected boolean remove
      • blockState

        @Nullable
        private BlockState blockState
      • hasLoggedInvalidStateBefore

        private boolean hasLoggedInvalidStateBefore
    • Constructor Detail

    • Method Detail

      • getLevel

        @Nullable
        public World getLevel()
      • setLevelAndPosition

        public void setLevelAndPosition​(World p_226984_1_,
                                        BlockPos p_226984_2_)
      • hasLevel

        public boolean hasLevel()
      • setChanged

        public void setChanged()
      • getViewDistance

        public double getViewDistance()
      • getBlockPos

        public BlockPos getBlockPos()
      • getBlockState

        public BlockState getBlockState()
      • isRemoved

        public boolean isRemoved()
      • setRemoved

        public void setRemoved()
      • clearRemoved

        public void clearRemoved()
      • triggerEvent

        public boolean triggerEvent​(int p_145842_1_,
                                    int p_145842_2_)
      • clearCache

        public void clearCache()
      • fillCrashReportCategory

        public void fillCrashReportCategory​(CrashReportCategory p_145828_1_)
      • setPosition

        public void setPosition​(BlockPos p_174878_1_)
      • onlyOpCanSetNbt

        public boolean onlyOpCanSetNbt()
      • rotate

        public void rotate​(Rotation p_189667_1_)
      • mirror

        public void mirror​(Mirror p_189668_1_)
      • getTileData

        public CompoundNBT getTileData()
        Description copied from interface: IForgeTileEntity
        Gets a NBTTagCompound 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 interface IForgeTileEntity
        Returns:
        A compound tag for custom data
      • logInvalidState

        public void logInvalidState()