Class HitboxInfoFactoryImpl
java.lang.Object
com.hammy275.immersivemc.common.api_impl.hitbox.HitboxInfoFactoryImpl
- All Implemented Interfaces:
HitboxInfoFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninteractHitbox(BoundingBox boundingBox) 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.triggerHitbox(BoundingBox boundingBox) 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.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
HitboxInfoFactoryImpl
public HitboxInfoFactoryImpl()
-
-
Method Details
-
interactHitbox
Description copied from interface:HitboxInfoFactoryCreates 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:
interactHitboxin interfaceHitboxInfoFactory- Parameters:
boundingBox- The BoundingBox representing the hitbox.- Returns:
- A HitboxInfo for use in Immersives.
-
triggerHitbox
Description copied from interface:HitboxInfoFactoryCreates 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:
triggerHitboxin interfaceHitboxInfoFactory- Parameters:
boundingBox- The BoundingBox representing the hitbox.- Returns:
- A HitboxInfo for use in Immersives.
-