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 TypMethodeBeschreibungdefault voidengine$hasCollision(boolean collision) Sets whether the block has collision.default voidengine$setExplosionResistance(float resistance) Sets the explosion resistance of the block.default voidengine$setFriction(float friction) Sets the friction coefficient of the block.default voidengine$setIsRandomlyTicking(boolean randomlyTicking) Sets whether the block randomly ticks.default voidengine$setJumpFactor(float jumpFactor) Sets the jump factor applied to entities on this block.default voidengine$setSoundType(net.minecraft.world.level.block.SoundType type) Sets the sound type for the block.default voidengine$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.
-