Class HitboxItemPair

java.lang.Object
com.hammy275.immersivemc.client.immersive.info.HitboxItemPair
All Implemented Interfaces:
HitboxInfo

public class HitboxItemPair extends Object implements HitboxInfo
  • Field Details

    • box

      @Nullable public @Nullable BoundingBox 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

      public HitboxItemPair(@Nullable @Nullable BoundingBox box, boolean isTriggerHitbox)
  • Method Details

    • getHitbox

      @Nullable public @Nullable BoundingBox getHitbox()
      Specified by:
      getHitbox in interface HitboxInfo
      Returns:
      Get the actual hitbox used for collision, intersection, etc.
    • isTriggerHitbox

      public boolean isTriggerHitbox()
      Specified by:
      isTriggerHitbox in interface HitboxInfo
      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.