Interface EngineBlockBehavior

All Superinterfaces:
EngineInterface<net.minecraft.world.level.block.state.BlockBehaviour>
All Known Implementing Classes:
BlockBehaviorMixin

public interface EngineBlockBehavior extends EngineInterface<net.minecraft.world.level.block.state.BlockBehaviour>
Configures block behavior properties such as collision, resistance, sounds, and friction.
  • Method Details

    • engine$hasCollision

      default void engine$hasCollision(boolean collision)
      Sets whether the block has collision.
    • engine$setExplosionResistance

      default void engine$setExplosionResistance(float resistance)
      Sets the explosion resistance of the block.
    • engine$setIsRandomlyTicking

      default void engine$setIsRandomlyTicking(boolean randomlyTicking)
      Sets whether the block randomly ticks.
    • engine$setSoundType

      default void engine$setSoundType(net.minecraft.world.level.block.SoundType type)
      Sets the sound type for the block.
    • engine$setFriction

      default void engine$setFriction(float friction)
      Sets the friction coefficient of the block.
    • engine$setSpeedFactor

      default void engine$setSpeedFactor(float speedFactor)
      Sets the speed factor applied to entities on this block.
    • engine$setJumpFactor

      default void engine$setJumpFactor(float jumpFactor)
      Sets the jump factor applied to entities on this block.