Interface UseEntityCallback
public interface UseEntityCallback
Callback for right-clicking ("using") an entity.
Is hooked in before the spectator check, so make sure to check for the player's game mode as well!
Upon return:
- SUCCESS cancels further processing and, on the client, sends a packet to the server.
- PASS falls back to further processing.
- FAIL cancels further processing and does not send a packet to the server.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioninteract
(PlayerEntity player, World world, Hand hand, Entity entity, @Nullable EntityHitResult hitResult)
-
Field Details
-
EVENT
-
-
Method Details
-
interact
ActionResult interact(PlayerEntity player, World world, Hand hand, Entity entity, @Nullable @Nullable EntityHitResult hitResult)
-