Interface BlockEntityType

All Superinterfaces:

@CatalogedBy(BlockEntityTypes.class) public interface BlockEntityType extends DefaultedRegistryValue
Describes a type of block entity.
  • Method Details

    • isValidBlock

      boolean isValidBlock(BlockState block)
      Determines if the provided block is considered valid by the BlockEntity.

      It is up to the implementation to determine validity and what such a state is used for. In vanilla Minecraft, block entities will not tick if their block is not valid.

      block - The block to test
      True if valid, false if not