Class BlockEntity


public abstract class BlockEntity extends AbstractPropertyEntity<CustomBlock>
Represents the entity data associated with a custom CustomBlock.
  • Constructor Details

    • BlockEntity

      public BlockEntity(CustomBlock block)
      Constructs a new BlockEntity linked to the given CustomBlock.
      Parameters:
      block - the block this entity belongs to
  • Method Details

    • getBlock

      public CustomBlock getBlock()
      Returns the block that this entity is associated with.
      Returns:
      the associated CustomBlock