final class Material
Class Material. Provides material functionality for the Hytale server.
java.lang.Object > Material
Field Summary
blockEntry
final
BlockPattern.BlockEntry
blockEntry
Field blockEntry.
fluidInfo
final
FluidPatternHelper.FluidInfo
fluidInfo
Field fluidInfo.
blockId
final
int
blockId
Field blockId.
fluid
final
Fluid
fluid
Field fluid.
block
final
BlockType
block
Field block.
rotStr
final
String
rotStr
Field rotStr.
Method Detail
Material
public
private
Material
(final int blockId, final int fluidId, final byte fluidLevel, final int rotation)
Method Material.
- Parameters:
final intblockIdfinal intfluidIdfinal bytefluidLevelfinal introtation
fluid
Method fluid.
- Parameters:
final intfluidIdfinal bytefluidLevel
fromKey
Method fromKey.
- Parameters:
@Nonnull final Stringkey
isFluid
public
boolean
isFluid
()
Method isFluid.
isBlock
public
boolean
isBlock
()
Method isBlock.
isEmpty
public
boolean
isEmpty
()
Method isEmpty.
getBlockId
public
int
getBlockId
()
Method getBlockId.
getFluidId
public
int
getFluidId
()
Method getFluidId.
getFluidLevel
public
byte
getFluidLevel
()
Method getFluidLevel.
getRotation
public
int
getRotation
()
Method getRotation.
hasRotation
public
boolean
hasRotation
()
Method hasRotation.
toString
public
String
toString
()
Method toString.
equals
public
boolean
equals
(final Object obj)
Method equals.
- Parameters:
final Objectobj
hashCode
public
int
hashCode
()
Method hashCode.
fromPattern
Method fromPattern.
- Parameters:
@Nonnull final BlockPatternpattern@Nonnull final Randomrandom