HitboxComponent

public class HitboxComponent

Constructors

Link copied to clipboard
public void HitboxComponent(ModeledEntity modeledEntity)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
public void checkPlayerCollisions()
Checks for collisions with nearby players and fires appropriate events
Link copied to clipboard
Creates a packet-only Interaction entity for click detection.
Link copied to clipboard
Link copied to clipboard
Returns the current client Interaction envelope height, or zero when unavailable.
Link copied to clipboard
Returns the exact packet Interaction UUID exposed to clients, when supported.
Link copied to clipboard
Returns the current client Interaction envelope width, or zero when unavailable.
Link copied to clipboard
public void hidePacketInteractionEntityFrom(UUID uuid)
Hides the packet interaction entity from a player.
Link copied to clipboard
protected boolean isPlayerColliding(Player player)
Checks if a player is colliding with this entity's OBB hitbox
Link copied to clipboard
Reconciles every client-targetable entity ID owned by this model with the shared packet interaction dispatcher.
Link copied to clipboard
Removes the packet interaction entity.
Link copied to clipboard
public void showPacketInteractionEntityTo(Player player)
Shows the packet interaction entity to a player.
public void showPacketInteractionEntityTo(Player player, AbstractPacketBundle packetBundle)
Link copied to clipboard
public void tick(AbstractPacketBundle packetBundle)
Async!
Link copied to clipboard
public void tickPrimaryThread()
Refreshes contact-enabled hitboxes and fires contact callbacks on the primary thread.