Class AfterEntityFallenOnBlockCallback
java.lang.Object
dev.latvian.mods.kubejs.block.callback.EntityBlockCallback
dev.latvian.mods.kubejs.block.callback.AfterEntityFallenOnBlockCallback
-
Field Summary
Fields inherited from class dev.latvian.mods.kubejs.block.callback.EntityBlockCallback
block, entity, level, state -
Constructor Summary
ConstructorsConstructorDescriptionAfterEntityFallenOnBlockCallback(net.minecraft.world.level.BlockGetter blockGetter, net.minecraft.world.entity.Entity entity) -
Method Summary
Modifier and TypeMethodDescriptionvoidbounce(float bounciness) net.minecraft.world.phys.Vec3booleanvoidsetVelocity(float x, float y, float z) voidsetVelocity(net.minecraft.world.phys.Vec3 vec) Methods inherited from class dev.latvian.mods.kubejs.block.callback.EntityBlockCallback
getBlock, getEntity, getLevel, getPos, getState, isSuppressingBounce
-
Constructor Details
-
AfterEntityFallenOnBlockCallback
public AfterEntityFallenOnBlockCallback(net.minecraft.world.level.BlockGetter blockGetter, net.minecraft.world.entity.Entity entity)
-
-
Method Details
-
bounce
@Info("Bounce the entity upwards by bounciness * their fall velocity.\nDo not make bounciness negative, as that is a recipe for a long and laggy trip to the void\n") public void bounce(float bounciness) -
getVelocity
@Info("Returns the Vec3 of the entity\'s velocity. Use .x, .y and .z to get the respective components of that") public net.minecraft.world.phys.Vec3 getVelocity() -
setVelocity
-
setVelocity
-
hasChangedVelocity
@HideFromJS public boolean hasChangedVelocity()
-