public interface DBlockData
| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.Comparable<T>> |
get(DState<T> state)
Get the value of one of the states of this data.
|
DBlock |
getBlock()
Get the
DBlock representing this data. |
org.bukkit.util.BoundingBox[] |
getCollisionShape()
Get the bounding boxes that make up the collidable shape of the block.
|
org.bukkit.util.BoundingBox[] |
getHitbox()
Get the bounding boxes that make up the visible hitbox of the block.
|
<T extends java.lang.Comparable<T>> |
increment(DState<T> state)
Increment the DBlockData to the next available state.
|
<T extends java.lang.Comparable<T>> |
set(DState<T> state,
T value)
Set the value of one of the states of this data.
|
void |
setAsDefault()
Set this as the default data when the block gets placed.
|
void setAsDefault()
org.bukkit.util.BoundingBox[] getCollisionShape()
org.bukkit.util.BoundingBox[] getHitbox()
<T extends java.lang.Comparable<T>> T get(DState<T> state)
DState must be included in the DBlock.getStates() method.T - state - <T extends java.lang.Comparable<T>> DBlockData set(DState<T> state, T value)
DState must be included in the DBlock.getStates() method.T - state - value - <T extends java.lang.Comparable<T>> T increment(DState<T> state)
T - state -