Interface HitboxInfo
- All Known Implementing Classes:
HitboxInfoImpl,HitboxItemPair,RelativeHitboxInfoImpl
public interface HitboxInfo
An object representing one hitbox for an
Immersive. You
may obtain instances of this interface using HitboxInfoFactory, though if your hitbox moves, you'll
likely want to create an implementation of this yourself so you can properly implement
getRenderHitbox(float). Although not in the API,
HitboxItemPair is a good example of an implementation of
this interface.-
Method Summary
-
Method Details
-
getHitbox
BoundingBox getHitbox()- Returns:
- Get the actual hitbox used for collision, intersection, etc.
-
isTriggerHitbox
boolean isTriggerHitbox()- 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.
-
getRenderHitbox
- Parameters:
partialTick- The partial tick between the current tick and the next.- Returns:
- The bounding box to be used for rendering.
-