Class BlockProperties

java.lang.Object
com.github.darksoulq.abyssallib.world.block.BlockProperties

public class BlockProperties extends Object
Defines the physical and interaction behavior of a custom block.

This class uses a builder pattern to configure immutable properties such as hardness, resistance, tool requirements, drops, and reactions to world events.

  • Field Details

    • hardness

      public final float hardness
      Hardness of the block, used to determine break speed.
    • resistance

      public final float resistance
      Resistance of the block to explosions.
    • requireSilkTouch

      public final boolean requireSilkTouch
      Whether the block supports Silk Touch to drop itself.
    • allowFortune

      public final boolean allowFortune
      Whether the block supports the Fortune enchantment.
    • isFlammable

      public final boolean isFlammable
      Whether the block is flammable and can be destroyed by fire.
    • allowPhysics

      public final boolean allowPhysics
      Whether the block allows vanilla physics updates.
    • minExp

      public final int minExp
      Minimum experience dropped when broken.
    • maxExp

      public final int maxExp
      Maximum experience dropped when broken.
    • pistonReaction

      public final BlockProperties.PistonReaction pistonReaction
      How the block reacts to pistons.
  • Method Details