Class HitboxInfoFactoryImpl
java.lang.Object
com.hammy275.immersivemc.common.api_impl.hitbox.HitboxInfoFactoryImpl
- All Implemented Interfaces:
HitboxInfoFactory
-
Field Summary
-
Constructor Summary
-
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: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 interfaceHitboxInfoFactory
- Parameters:
boundingBox
- The BoundingBox representing the hitbox.- Returns:
- A HitboxInfo for use in Immersives.
-
triggerHitbox
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 interfaceHitboxInfoFactory
- Parameters:
boundingBox
- The BoundingBox representing the hitbox.- Returns:
- A HitboxInfo for use in Immersives.
-