Class CustomSignsTest.CustomWallSignBlock

All Implemented Interfaces:
IBucketPickupHandler, ILiquidContainer, ITileEntityProvider, IWaterLoggable, IItemProvider, IForgeBlock, IForgeRegistryEntry<Block>
Enclosing class:
CustomSignsTest

public static class CustomSignsTest.CustomWallSignBlock extends WallSignBlock
  • Constructor Details

  • Method Details

    • hasTileEntity

      public boolean hasTileEntity(BlockState stateIn)
      Description copied from interface: IForgeBlock
      Called throughout the code as a replacement for block instanceof BlockContainer Moving this to the Block base class allows for mods that wish to extend vanilla blocks, and also want to have a tile entity on that block, may. Return true from this function to specify this block has a tile entity.
      Parameters:
      stateIn - State of the current block
      Returns:
      True if block has a tile entity, false otherwise
    • newBlockEntity

      public TileEntity newBlockEntity(IBlockReader worldIn)
      Specified by:
      newBlockEntity in interface ITileEntityProvider
      Overrides:
      newBlockEntity in class AbstractSignBlock