Interface BlockEntityType
-
- All Superinterfaces:
DefaultedRegistryValue
@CatalogedBy(BlockEntityTypes.class) public interface BlockEntityType extends DefaultedRegistryValue
Describes a type of block entity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isValidBlock(BlockState block)
Determines if the provided block is considered valid by theBlockEntity
.-
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
-
-
-
Method Detail
-
isValidBlock
boolean isValidBlock(BlockState block)
Determines if the provided block is considered valid by theBlockEntity
.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
-
-