Class PlacedBlock
java.lang.Object
dev.rono.igniscore.api.model.PlacedBlock
A custom block placed in the world: its type definition plus world position.
This is the object returned by BlockEvent.block().
Use definition() for extension config/behavior and location() for
world coordinates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PlacedBlockfrom(RuntimeBlockInstance instance) inthashCode()location()static PlacedBlockof(BlockDefinition definition, IgnisLocation location)
-
Constructor Details
-
PlacedBlock
-
-
Method Details
-
of
-
from
-
definition
- Returns:
- the extension block type loaded from config.yml
-
location
- Returns:
- the world position of this placed block
-
equals
-
hashCode
-