Class HitboxItemPair
java.lang.Object
com.hammy275.immersivemc.client.immersive.info.HitboxItemPair
- All Implemented Interfaces:
HitboxInfo
-
Field Summary
Modifier and TypeFieldDescription@Nullable BoundingBox
boolean
net.minecraft.world.item.ItemStack
-
Constructor Summary
ConstructorDescriptionHitboxItemPair
(@Nullable BoundingBox box, boolean isTriggerHitbox) HitboxItemPair
(@Nullable BoundingBox box, net.minecraft.world.item.ItemStack item, boolean isTriggerHitbox) -
Method Summary
-
Field Details
-
box
-
item
public net.minecraft.world.item.ItemStack item -
isTriggerHitbox
public boolean isTriggerHitbox
-
-
Constructor Details
-
HitboxItemPair
public HitboxItemPair(@Nullable @Nullable BoundingBox box, net.minecraft.world.item.ItemStack item, boolean isTriggerHitbox) -
HitboxItemPair
-
-
Method Details
-
getHitbox
- Specified by:
getHitbox
in interfaceHitboxInfo
- Returns:
- Get the actual hitbox used for collision, intersection, etc.
-
isTriggerHitbox
public boolean isTriggerHitbox()- Specified by:
isTriggerHitbox
in interfaceHitboxInfo
- 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.
-