Interface BlockEntityType
- All Superinterfaces:
DefaultedRegistryValue
@CatalogedBy(BlockEntityTypes.class)
public interface BlockEntityType
extends DefaultedRegistryValue
Describes a type of block entity.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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 Details
-
isValidBlock
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
-