Class AfterEntityFallenOnBlockCallback

java.lang.Object
dev.latvian.mods.kubejs.block.callback.EntityBlockCallback
dev.latvian.mods.kubejs.block.callback.AfterEntityFallenOnBlockCallback

public class AfterEntityFallenOnBlockCallback extends EntityBlockCallback
  • 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

      @Info("Sets the entity\'s velocity") public void setVelocity(net.minecraft.world.phys.Vec3 vec)
    • setVelocity

      @Info("Sets the entity\'s velocity") public void setVelocity(float x, float y, float z)
    • hasChangedVelocity

      @HideFromJS public boolean hasChangedVelocity()