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.voidMarks the associated block as dirty so its data is saved to the database.Methods inherited from class AbstractPropertyEntity
bindProperties, 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
-
markDirty
public void markDirty()Marks the associated block as dirty so its data is saved to the database.- Specified by:
markDirtyin classAbstractPropertyEntity<CustomBlock>
-