public class PassthroughBlockMaterial extends java.lang.Object implements BlockMaterial
Constructor and Description |
---|
PassthroughBlockMaterial(BlockMaterial material) |
Modifier and Type | Method and Description |
---|---|
float |
getHardness()
Get the hardness factor for this block.
|
int |
getLightValue()
Get the light value for this block.
|
float |
getResistance()
Get the resistance factor for this block.
|
float |
getSlipperiness()
Get the slipperiness factor for this block.
|
boolean |
hasContainer()
Gets whether the block has a container (Item container).
|
boolean |
isAir()
Gets if this block is a type of air.
|
boolean |
isBurnable()
Get whether this block will burn.
|
boolean |
isFragileWhenPushed()
Get whether this block breaks when it is pushed by a piston.
|
boolean |
isFullCube()
Get whether this block is a full sized cube.
|
boolean |
isLiquid()
Get whether this block is a liquid.
|
boolean |
isMovementBlocker()
Get whether this block prevents movement.
|
boolean |
isOpaque()
Get whether this block is opaque.
|
boolean |
isPowerSource()
Get whether this block emits a Redstone signal.
|
boolean |
isReplacedDuringPlacement()
Get whether this block is replaced when a block is placed over it
(for example, tall grass).
|
boolean |
isSolid()
Get whether this block is a solid.
|
boolean |
isTicksRandomly()
Get whether this block is ticked randomly.
|
boolean |
isToolRequired()
Get whether this block needs to be broken by a tool for maximum
speed.
|
boolean |
isTranslucent()
Get whether this block is translucent.
|
boolean |
isUnpushable()
Get whether this block can be pushed by a piston.
|
public PassthroughBlockMaterial(@Nullable BlockMaterial material)
public boolean isAir()
BlockMaterial
isAir
in interface BlockMaterial
public boolean isFullCube()
BlockMaterial
isFullCube
in interface BlockMaterial
public boolean isOpaque()
BlockMaterial
isOpaque
in interface BlockMaterial
public boolean isPowerSource()
BlockMaterial
isPowerSource
in interface BlockMaterial
public boolean isLiquid()
BlockMaterial
isLiquid
in interface BlockMaterial
public boolean isSolid()
BlockMaterial
isSolid
in interface BlockMaterial
public float getHardness()
BlockMaterial
getHardness
in interface BlockMaterial
public float getResistance()
BlockMaterial
getResistance
in interface BlockMaterial
public float getSlipperiness()
BlockMaterial
getSlipperiness
in interface BlockMaterial
public int getLightValue()
BlockMaterial
getLightValue
in interface BlockMaterial
public boolean isFragileWhenPushed()
BlockMaterial
isFragileWhenPushed
in interface BlockMaterial
public boolean isUnpushable()
BlockMaterial
isUnpushable
in interface BlockMaterial
public boolean isTicksRandomly()
BlockMaterial
isTicksRandomly
in interface BlockMaterial
public boolean isMovementBlocker()
BlockMaterial
isMovementBlocker
in interface BlockMaterial
public boolean isBurnable()
BlockMaterial
isBurnable
in interface BlockMaterial
public boolean isToolRequired()
BlockMaterial
isToolRequired
in interface BlockMaterial
public boolean isReplacedDuringPlacement()
BlockMaterial
isReplacedDuringPlacement
in interface BlockMaterial
public boolean isTranslucent()
BlockMaterial
isTranslucent
in interface BlockMaterial
public boolean hasContainer()
BlockMaterial
hasContainer
in interface BlockMaterial