public abstract class AbstractBlockPropertyStore<T extends org.spongepowered.api.data.Property<?,?>> extends AbstractSpongePropertyStore<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractBlockPropertyStore(boolean checksItemStack) |
Modifier and Type | Method and Description |
---|---|
Optional<T> |
getFor(org.spongepowered.api.world.Location<org.spongepowered.api.world.World> location) |
Optional<T> |
getFor(org.spongepowered.api.world.Location<org.spongepowered.api.world.World> location,
org.spongepowered.api.util.Direction direction) |
Optional<T> |
getFor(org.spongepowered.api.data.property.PropertyHolder propertyHolder) |
protected abstract Optional<T> |
getForBlock(net.minecraft.block.Block block)
Gets the property for the block, if the block is actually containing a property in the first place.
|
protected Optional<T> |
getForDirection(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.util.EnumFacing facing)
This is intended for properties that are intentionally for directional orientations.
|
getPriority
protected AbstractBlockPropertyStore(boolean checksItemStack)
protected abstract Optional<T> getForBlock(net.minecraft.block.Block block)
block
- The blockprotected Optional<T> getForDirection(net.minecraft.world.World world, int x, int y, int z, net.minecraft.util.EnumFacing facing)
world
- The worldx
- The x coordinatey
- The y coordinatez
- The z coordinatefacing
- The facing directionpublic Optional<T> getFor(org.spongepowered.api.world.Location<org.spongepowered.api.world.World> location)