Contents
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.
A functional interface that consumes projectile bounce events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonBounce(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- TheCommandBuffer<EntityStore>for component access.
-