Class BukkitBlockState
java.lang.Object
wtf.choco.veinminer.platform.world.BukkitBlockState
- All Implemented Interfaces:
BlockState
A Bukkit implementation of
BlockState
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
@NotNull String
getAsString
(boolean hideUnspecified) Get thisBlockState
as a string.@NotNull BlockType
getType()
Get theBlockType
represented by thisBlockState
.int
hashCode()
boolean
matches
(@NotNull BlockState state) Check whether or not thisBlockState
matches the given BlockState.static @NotNull BlockState
Get aBlockState
for the givenBlockData
.toString()
-
Method Details
-
getType
Description copied from interface:BlockState
Get theBlockType
represented by thisBlockState
.- Specified by:
getType
in interfaceBlockState
- Returns:
- the block type
-
getAsString
Description copied from interface:BlockState
Get thisBlockState
as a string.- Specified by:
getAsString
in interfaceBlockState
- Parameters:
hideUnspecified
- whether or not to hide states that were not explicitly set in the construction of this state- Returns:
- the string
-
matches
Description copied from interface:BlockState
Check whether or not thisBlockState
matches the given BlockState.A BlockState will match if all states that were explicitly set by this BlockState match that of the provided BlockState. Any states that were not explicitly set are ignored. Therefore, while
a.matches(b)
may returntrue
, it cannot be guaranteed thatb.matches(a)
will also returntrue
.- Specified by:
matches
in interfaceBlockState
- Parameters:
state
- the state to check- Returns:
- true if the provided BlockState matches this BlockState, false if one of its states do not match one of this BlockState's explicitly set states
-
of
Get aBlockState
for the givenBlockData
.- Parameters:
blockData
- the block data- Returns:
- the BlockState
-
hashCode
public int hashCode() -
equals
-
toString
-