Interface BlockEntityType

All Superinterfaces:
DefaultedRegistryValue

@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.

      Parameters:
      block - The block to test
      Returns:
      True if valid, false if not