BlockEntity
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Extends
BlockEntity extends CapabilityProvider<BlockEntity>
.
Implements
BlockEntity
implements the following interfaces:
ICapabilityProviderImpl<ICapabilityProviderImpl>
,ICapabilityProvider
Undocumented Interfaces
IBlockEntityExtension
,ICapabilitySerializable<CompoundTag>
,INBTSerializable<Tag>
Members
Getter
Return Type:
BlockState
blockState() as BlockState
Return Type:
BlockState
getCapability(cap as Capability<T>, side as Direction) as T?
Gets the capability for the given side.
Returns: The found capability or null.
Parameters:
Return Type:
T?
getCapability(cap as Capability<T>) as T?
Gets the capability.
Returns: The found capability or null.
Parameters:
Return Type:
T?
Getter
Return Type:
bool
hasLevel() as bool
Return Type:
bool
Getter
Return Type:
ResourceLocation
registryName() as ResourceLocation
Return Type:
ResourceLocation