Interface BlockMaterial
- All Known Implementing Classes:
PassthroughBlockMaterial
public interface BlockMaterial
Describes the material for a block.
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the hardness factor for this block.int
Get the light value for this block.float
Get the resistance factor for this block.float
Get the slipperiness factor for this block.boolean
Gets whether the block has a container (Item container).boolean
isAir()
Gets if this block is a type of air.boolean
Get whether this block will burn.boolean
Get whether this block breaks when it is pushed by a piston.boolean
Get whether this block is a full sized cube.boolean
isLiquid()
Get whether this block is a liquid.boolean
Get whether this block prevents movement.boolean
isOpaque()
Get whether this block is opaque.boolean
Get whether this block emits a Redstone signal.boolean
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
Get whether this block is ticked randomly.boolean
Get whether this block needs to be broken by a tool for maximum speed.boolean
Get whether this block is translucent.boolean
Get whether this block can be pushed by a piston.
-
Method Details
-
isAir
boolean isAir()Gets if this block is a type of air.- Returns:
- If it's air
-
isFullCube
boolean isFullCube()Get whether this block is a full sized cube.- Returns:
- the value of the test
-
isOpaque
boolean isOpaque()Get whether this block is opaque.- Returns:
- the value of the test
-
isPowerSource
boolean isPowerSource()Get whether this block emits a Redstone signal.- Returns:
- the value of the test
-
isLiquid
boolean isLiquid()Get whether this block is a liquid.- Returns:
- the value of the test
-
isSolid
boolean isSolid()Get whether this block is a solid.- Returns:
- the value of the test
-
getHardness
float getHardness()Get the hardness factor for this block.- Returns:
- the hardness factor
-
getResistance
float getResistance()Get the resistance factor for this block.- Returns:
- the resistance factor
-
getSlipperiness
float getSlipperiness()Get the slipperiness factor for this block.- Returns:
- the slipperiness factor
-
getLightValue
int getLightValue()Get the light value for this block.- Returns:
- the light value
-
isFragileWhenPushed
boolean isFragileWhenPushed()Get whether this block breaks when it is pushed by a piston.- Returns:
- true if the block breaks
-
isUnpushable
boolean isUnpushable()Get whether this block can be pushed by a piston.- Returns:
- true if the block cannot be pushed
-
isTicksRandomly
boolean isTicksRandomly()Get whether this block is ticked randomly.- Returns:
- true if this block is ticked randomly
-
isMovementBlocker
boolean isMovementBlocker()Get whether this block prevents movement.- Returns:
- true if this block blocks movement
-
isBurnable
boolean isBurnable()Get whether this block will burn.- Returns:
- true if this block will burn
-
isToolRequired
boolean isToolRequired()Get whether this block needs to be broken by a tool for maximum speed.- Returns:
- true if a tool is required
-
isReplacedDuringPlacement
boolean isReplacedDuringPlacement()Get whether this block is replaced when a block is placed over it (for example, tall grass).- Returns:
- true if the block is replaced
-
isTranslucent
boolean isTranslucent()Get whether this block is translucent.- Returns:
- true if the block is translucent
-
hasContainer
boolean hasContainer()Gets whether the block has a container (Item container).- Returns:
- If it has a container
-