Class BlockEntity
java.lang.Object
com.github.darksoulq.abyssallib.world.entity.AbstractPropertyEntity<CustomBlock>
com.github.darksoulq.abyssallib.world.block.BlockEntity
Represents the entity data associated with a custom
CustomBlock.-
Constructor Summary
ConstructorsConstructorDescriptionBlockEntity(CustomBlock block) Constructs a newBlockEntitylinked to the givenCustomBlock. -
Method Summary
Modifier and TypeMethodDescriptiongetBlock()Returns the block that this entity is associated with.Methods inherited from class AbstractPropertyEntity
deserialize, getType, onLoad, onSave, serialize
-
Constructor Details
-
BlockEntity
Constructs a newBlockEntitylinked to the givenCustomBlock.- Parameters:
block- the block this entity belongs to
-
-
Method Details
-
getBlock
Returns the block that this entity is associated with.- Returns:
- the associated
CustomBlock
-