Class Material
java.lang.Object
com.hypixel.hytale.builtin.buildertools.utils.Material
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMaterial(int blockId, int fluidId, byte fluidLevel, int rotation) -
Method Summary
Modifier and TypeMethodDescriptionstatic Materialblock(int blockId) static Materialblock(int blockId, int rotation) booleanstatic Materialfluid(int fluidId, byte fluidLevel) static Materialstatic MaterialfromPattern(BlockPattern pattern, Random random) intintbyteintinthashCode()booleanbooleanisBlock()booleanisEmpty()booleanisFluid()toString()
-
Field Details
-
EMPTY
-
blockId
private final int blockId -
fluidId
private final int fluidId -
fluidLevel
private final byte fluidLevel -
rotation
private final int rotation
-
-
Constructor Details
-
Material
private Material(int blockId, int fluidId, byte fluidLevel, int rotation)
-
-
Method Details
-
block
-
block
-
fluid
-
fromKey
-
isFluid
public boolean isFluid() -
isBlock
public boolean isBlock() -
isEmpty
public boolean isEmpty() -
getBlockId
public int getBlockId() -
getFluidId
public int getFluidId() -
getFluidLevel
public byte getFluidLevel() -
getRotation
public int getRotation() -
hasRotation
public boolean hasRotation() -
toString
-
equals
-
hashCode
public int hashCode() -
fromPattern
-