Class PassthroughBlockMaterial

java.lang.Object
com.sk89q.worldedit.world.registry.PassthroughBlockMaterial
All Implemented Interfaces:
BlockMaterial

public class PassthroughBlockMaterial extends Object implements BlockMaterial
  • Constructor Details

    • PassthroughBlockMaterial

      public PassthroughBlockMaterial(@Nullable BlockMaterial material)
  • Method Details

    • isAir

      public boolean isAir()
      Description copied from interface: BlockMaterial
      Gets if this block is a type of air.
      Specified by:
      isAir in interface BlockMaterial
      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 interface BlockMaterial
      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 interface BlockMaterial
      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 interface BlockMaterial
      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 interface BlockMaterial
      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 interface BlockMaterial
      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 interface BlockMaterial
      Returns:
      the hardness factor
    • getResistance

      public float getResistance()
      Description copied from interface: BlockMaterial
      Get the resistance factor for this block.
      Specified by:
      getResistance in interface BlockMaterial
      Returns:
      the resistance factor
    • getSlipperiness

      public float getSlipperiness()
      Description copied from interface: BlockMaterial
      Get the slipperiness factor for this block.
      Specified by:
      getSlipperiness in interface BlockMaterial
      Returns:
      the slipperiness factor
    • getLightValue

      public int getLightValue()
      Description copied from interface: BlockMaterial
      Get the light value for this block.
      Specified by:
      getLightValue in interface BlockMaterial
      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 interface BlockMaterial
      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 interface BlockMaterial
      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 interface BlockMaterial
      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 interface BlockMaterial
      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 interface BlockMaterial
      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 interface BlockMaterial
      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 interface BlockMaterial
      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 interface BlockMaterial
      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 interface BlockMaterial
      Returns:
      If it has a container