Schnittstelle EngineBlockBehavior

Alle Superschnittstellen:
EngineInterface<net.minecraft.world.level.block.state.BlockBehaviour>
Alle bekannten Implementierungsklassen:
BlockBehaviorMixin

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

    Modifikator und Typ
    Methode
    Beschreibung
    default void
    engine$hasCollision(boolean collision)
    Sets whether the block has collision.
    default void
    Sets the explosion resistance of the block.
    default void
    engine$setFriction(float friction)
    Sets the friction coefficient of the block.
    default void
    engine$setIsRandomlyTicking(boolean randomlyTicking)
    Sets whether the block randomly ticks.
    default void
    engine$setJumpFactor(float jumpFactor)
    Sets the jump factor applied to entities on this block.
    default void
    engine$setSoundType(net.minecraft.world.level.block.SoundType type)
    Sets the sound type for the block.
    default void
    engine$setSpeedFactor(float speedFactor)
    Sets the speed factor applied to entities on this block.

    Von Schnittstelle geerbte Methoden EngineInterface

    engine$self
  • Methodendetails

    • 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.