Class HitboxInfoImpl

java.lang.Object
com.hammy275.immersivemc.common.api_impl.hitbox.HitboxInfoImpl
All Implemented Interfaces:
HitboxInfo

public class HitboxInfoImpl extends Object implements HitboxInfo
  • Constructor Details

    • HitboxInfoImpl

      public HitboxInfoImpl(BoundingBox boundingBox, boolean isTriggerHitbox)
  • Method Details

    • getHitbox

      public BoundingBox getHitbox()
      Specified by:
      getHitbox in interface HitboxInfo
      Returns:
      Get the actual hitbox used for collision, intersection, etc.
    • isTriggerHitbox

      public boolean isTriggerHitbox()
      Specified by:
      isTriggerHitbox in interface HitboxInfo
      Returns:
      Whether this hitbox is a trigger hitbox. As of writing, this is if the break block button is required to be held while a hand is in this hitbox to activate it in VR.