OBBHitDetection

public class OBBHitDetection implements Listener

Handles hit detection for modeled entities using Oriented Bounding Boxes. This system can detect hits even when the model is rotated.

Constructors

Link copied to clipboard
public void OBBHitDetection()

Properties

Link copied to clipboard
public static boolean applyDamage
Link copied to clipboard
public static HashMap<UUID, Float> attackCooldowns
Link copied to clipboard
public static boolean bypassProjectileRedirect

Functions

Link copied to clipboard
public void blockBreakEvent(BlockBreakEvent event)
Link copied to clipboard
public void EntityDamageByEntityEvent(EntityDamageByEntityEvent event)
Link copied to clipboard
public static HashMap<UUID, Float> getAttackCooldowns()
Link copied to clipboard
public void observePlayerInteractAtEntity(PlayerInteractAtEntityEvent event)
Link copied to clipboard
public void observePlayerInteractEntity(PlayerInteractEntityEvent event)
Link copied to clipboard
public void onEntityHitEvent(EntityDamageByEntityEvent event)
Link copied to clipboard
public void onPlayerAnimation(PlayerAnimationEvent event)
Spigot/Paper can suppress LEFT_CLICK_AIR when its server-side ray hits a backing entity that the client was told to hide.
Link copied to clipboard
public void onPlayerInteract(PlayerInteractEvent event)
Link copied to clipboard
public void onPlayerQuit(PlayerQuitEvent event)
Link copied to clipboard
public void onProjectileCreate(ProjectileLaunchEvent event)
Link copied to clipboard
public static void pauseProjectileDetection()
Stops the registry-reading clock without resetting per-projectile state.
Link copied to clipboard
public static void routeLeftClick(Player player, ModeledEntity target)
Routes every non-native left-click source through the same one-tick target ledger.
Link copied to clipboard
public static void routePacketLeftClick(Player player, ModeledEntity packetOwner)
Validates a client-targeted packet entity against the authoritative OBB ray before routing it.
Link copied to clipboard
public static void routePacketRightClick(Player player, ModeledEntity packetOwner)
Link copied to clipboard
public void routePlayerInteractAtEntity(PlayerInteractAtEntityEvent event)
Link copied to clipboard
public void routePlayerInteractEntity(PlayerInteractEntityEvent event)
Link copied to clipboard
public static void shutdown()
Destructive plugin-disable cleanup.
Link copied to clipboard
public static void startProjectileDetection()
Link copied to clipboard
public void tintAcceptedNativeMeleeHit(EntityDamageByEntityEvent event)