Class HitboxInfoFactoryImpl

java.lang.Object
com.hammy275.immersivemc.common.api_impl.hitbox.HitboxInfoFactoryImpl
All Implemented Interfaces:
HitboxInfoFactory

public class HitboxInfoFactoryImpl extends Object implements HitboxInfoFactory
  • Field Details

  • Constructor Details

    • HitboxInfoFactoryImpl

      public HitboxInfoFactoryImpl()
  • Method Details

    • interactHitbox

      public HitboxInfo interactHitbox(BoundingBox boundingBox)
      Description copied from interface: HitboxInfoFactory
      Creates a hitbox that, by default, is interacted with by right-click outside of VR and by placing a hand inside the hitbox in VR.
      Specified by:
      interactHitbox in interface HitboxInfoFactory
      Parameters:
      boundingBox - The BoundingBox representing the hitbox.
      Returns:
      A HitboxInfo for use in Immersives.
    • triggerHitbox

      public HitboxInfo triggerHitbox(BoundingBox boundingBox)
      Description copied from interface: HitboxInfoFactory
      Creates a hitbox that, by default, is interacted with by right-click outside of VR and by pressing the button bound to block breaking while a hand is inside the hitbox in VR.
      Specified by:
      triggerHitbox in interface HitboxInfoFactory
      Parameters:
      boundingBox - The BoundingBox representing the hitbox.
      Returns:
      A HitboxInfo for use in Immersives.