Class PassthroughBlockMaterial
java.lang.Object
com.sk89q.worldedit.world.registry.PassthroughBlockMaterial
- All Implemented Interfaces:
BlockMaterial
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
PassthroughBlockMaterial
-
-
Method Details
-
isAir
public boolean isAir()Description copied from interface:BlockMaterial
Gets if this block is a type of air.- Specified by:
isAir
in interfaceBlockMaterial
- Returns:
- If it's air
-
isFullCube
public boolean isFullCube()Description copied from interface:BlockMaterial
Get whether this block is a full sized cube.- Specified by:
isFullCube
in interfaceBlockMaterial
- Returns:
- the value of the test
-
isOpaque
public boolean isOpaque()Description copied from interface:BlockMaterial
Get whether this block is opaque.- Specified by:
isOpaque
in interfaceBlockMaterial
- Returns:
- the value of the test
-
isPowerSource
public boolean isPowerSource()Description copied from interface:BlockMaterial
Get whether this block emits a Redstone signal.- Specified by:
isPowerSource
in interfaceBlockMaterial
- Returns:
- the value of the test
-
isLiquid
public boolean isLiquid()Description copied from interface:BlockMaterial
Get whether this block is a liquid.- Specified by:
isLiquid
in interfaceBlockMaterial
- Returns:
- the value of the test
-
isSolid
public boolean isSolid()Description copied from interface:BlockMaterial
Get whether this block is a solid.- Specified by:
isSolid
in interfaceBlockMaterial
- Returns:
- the value of the test
-
getHardness
public float getHardness()Description copied from interface:BlockMaterial
Get the hardness factor for this block.- Specified by:
getHardness
in interfaceBlockMaterial
- Returns:
- the hardness factor
-
getResistance
public float getResistance()Description copied from interface:BlockMaterial
Get the resistance factor for this block.- Specified by:
getResistance
in interfaceBlockMaterial
- Returns:
- the resistance factor
-
getSlipperiness
public float getSlipperiness()Description copied from interface:BlockMaterial
Get the slipperiness factor for this block.- Specified by:
getSlipperiness
in interfaceBlockMaterial
- Returns:
- the slipperiness factor
-
getLightValue
public int getLightValue()Description copied from interface:BlockMaterial
Get the light value for this block.- Specified by:
getLightValue
in interfaceBlockMaterial
- Returns:
- the light value
-
isFragileWhenPushed
public boolean isFragileWhenPushed()Description copied from interface:BlockMaterial
Get whether this block breaks when it is pushed by a piston.- Specified by:
isFragileWhenPushed
in interfaceBlockMaterial
- Returns:
- true if the block breaks
-
isUnpushable
public boolean isUnpushable()Description copied from interface:BlockMaterial
Get whether this block can be pushed by a piston.- Specified by:
isUnpushable
in interfaceBlockMaterial
- Returns:
- true if the block cannot be pushed
-
isTicksRandomly
public boolean isTicksRandomly()Description copied from interface:BlockMaterial
Get whether this block is ticked randomly.- Specified by:
isTicksRandomly
in interfaceBlockMaterial
- Returns:
- true if this block is ticked randomly
-
isMovementBlocker
public boolean isMovementBlocker()Description copied from interface:BlockMaterial
Get whether this block prevents movement.- Specified by:
isMovementBlocker
in interfaceBlockMaterial
- Returns:
- true if this block blocks movement
-
isBurnable
public boolean isBurnable()Description copied from interface:BlockMaterial
Get whether this block will burn.- Specified by:
isBurnable
in interfaceBlockMaterial
- Returns:
- true if this block will burn
-
isToolRequired
public boolean isToolRequired()Description copied from interface:BlockMaterial
Get whether this block needs to be broken by a tool for maximum speed.- Specified by:
isToolRequired
in interfaceBlockMaterial
- Returns:
- true if a tool is required
-
isReplacedDuringPlacement
public boolean isReplacedDuringPlacement()Description copied from interface:BlockMaterial
Get whether this block is replaced when a block is placed over it (for example, tall grass).- Specified by:
isReplacedDuringPlacement
in interfaceBlockMaterial
- Returns:
- true if the block is replaced
-
isTranslucent
public boolean isTranslucent()Description copied from interface:BlockMaterial
Get whether this block is translucent.- Specified by:
isTranslucent
in interfaceBlockMaterial
- Returns:
- true if the block is translucent
-
hasContainer
public boolean hasContainer()Description copied from interface:BlockMaterial
Gets whether the block has a container (Item container).- Specified by:
hasContainer
in interfaceBlockMaterial
- Returns:
- If it has a container
-