Class BukkitBlockType
java.lang.Object
wtf.choco.veinminer.platform.world.BukkitBlockType
- All Implemented Interfaces:
BlockType
A Bukkit implementation of
BlockType
.-
Method Summary
Modifier and TypeMethodDescription@NotNull BlockState
createBlockState
(@NotNull String states) Create aBlockState
of thisBlockType
with the given state string.boolean
@NotNull NamespacedKey
getKey()
Get theNamespacedKey
of thisBlockType
.@NotNull Material
Get the BukkitMaterial
represented by thisBukkitBlockType
.int
hashCode()
static @NotNull BlockType
toString()
-
Method Details
-
getKey
Description copied from interface:BlockType
Get theNamespacedKey
of thisBlockType
. -
createBlockState
Description copied from interface:BlockType
Create aBlockState
of thisBlockType
with the given state string.The
states
string should contain only the comma-delimited states of a block, excluding its type and the square brackets that surround the states in typical Minecraft command inputs. For instance, to create a blockstate with the stateswaterlogged=false
andfacing=north
, thestates
string should be"waterlogged=false,facing=north"
(excluding the quotation marks).createBlockState("waterlogged=false,facing=north"); createBlockState("facing=south"); createBlockState("waterlogged=true,type=double");
- Specified by:
createBlockState
in interfaceBlockType
- Parameters:
states
- the states with which to create a BlockState- Returns:
- the created BlockState
-
getMaterial
Get the BukkitMaterial
represented by thisBukkitBlockType
.- Returns:
- the material
-
of
- Parameters:
material
- the material- Returns:
- the block type
-
hashCode
public int hashCode() -
equals
-
toString
-