Klasse BlockBehaviorMixin
java.lang.Object
de.luckymcdev.foundryengine.mixin.world.BlockBehaviorMixin
- Alle implementierten Schnittstellen:
EngineInterface<net.minecraft.world.level.block.state.BlockBehaviour>, EngineBlockBehavior
Implements
EngineBlockBehavior on BlockBehaviour to allow runtime property modification.-
Feldübersicht
FelderModifikator und TypFeldBeschreibungfloatfloatbooleanbooleanfloatnet.minecraft.world.level.block.SoundTypefloat -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidengine$hasCollision(boolean collision) Sets whether this block has collision.voidengine$setExplosionResistance(float resistance) Sets the explosion resistance of this block.voidengine$setFriction(float friction) Sets the friction of this block.voidengine$setIsRandomlyTicking(boolean randomlyTicking) Sets whether this block randomly ticks.voidengine$setJumpFactor(float nJumpFactor) Sets the jump factor of this block.voidengine$setSoundType(net.minecraft.world.level.block.SoundType type) Sets the sound type of this block.voidengine$setSpeedFactor(float speedFactor) Sets the speed factor of this block.Von Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden EngineInterface
engine$self
-
Felddetails
-
explosionResistance
public float explosionResistance -
isRandomlyTicking
public boolean isRandomlyTicking -
hasCollision
public boolean hasCollision -
soundType
public net.minecraft.world.level.block.SoundType soundType -
friction
public float friction -
speedFactor
public float speedFactor -
jumpFactor
public float jumpFactor
-
-
Konstruktordetails
-
BlockBehaviorMixin
public BlockBehaviorMixin()
-
-
Methodendetails
-
engine$hasCollision
public void engine$hasCollision(boolean collision) Sets whether this block has collision.- Angegeben von:
engine$hasCollisionin SchnittstelleEngineBlockBehavior
-
engine$setExplosionResistance
public void engine$setExplosionResistance(float resistance) Sets the explosion resistance of this block.- Angegeben von:
engine$setExplosionResistancein SchnittstelleEngineBlockBehavior
-
engine$setIsRandomlyTicking
public void engine$setIsRandomlyTicking(boolean randomlyTicking) Sets whether this block randomly ticks.- Angegeben von:
engine$setIsRandomlyTickingin SchnittstelleEngineBlockBehavior
-
engine$setSoundType
public void engine$setSoundType(net.minecraft.world.level.block.SoundType type) Sets the sound type of this block.- Angegeben von:
engine$setSoundTypein SchnittstelleEngineBlockBehavior
-
engine$setFriction
public void engine$setFriction(float friction) Sets the friction of this block.- Angegeben von:
engine$setFrictionin SchnittstelleEngineBlockBehavior
-
engine$setSpeedFactor
public void engine$setSpeedFactor(float speedFactor) Sets the speed factor of this block.- Angegeben von:
engine$setSpeedFactorin SchnittstelleEngineBlockBehavior
-
engine$setJumpFactor
public void engine$setJumpFactor(float nJumpFactor) Sets the jump factor of this block.- Angegeben von:
engine$setJumpFactorin SchnittstelleEngineBlockBehavior
-