Interface BounceConsumer

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BounceConsumer
A functional interface that consumes projectile bounce events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onBounce(Ref<EntityStore> ref, org.joml.Vector3d position, CommandBuffer<EntityStore> commandBuffer)
    Called when a projectile bounces.
  • Method Details

    • onBounce

      void onBounce(@Nonnull Ref<EntityStore> ref, @Nonnull org.joml.Vector3d position, @Nonnull CommandBuffer<EntityStore> commandBuffer)
      Called when a projectile bounces.
      Parameters:
      ref - The entity reference of the projectile.
      position - The position of the impact.
      commandBuffer - The CommandBuffer<EntityStore> for component access.