Class AbstractPlayerAttachmentInfo

java.lang.Object
com.hammy275.immersivemc.client.immersive.info.AbstractPlayerAttachmentInfo
Direct Known Subclasses:
BackpackInfo, ImmersiveHitboxesInfo

public abstract class AbstractPlayerAttachmentInfo extends Object
  • Field Details

    • ticksLeft

      protected int ticksLeft
    • itemTransitionCountdown

      protected int itemTransitionCountdown
    • ticksActive

      public int ticksActive
    • initCompleted

      public boolean initCompleted
    • inputHitboxes

      protected BoundingBox[] inputHitboxes
    • light

      public int light
    • slotHovered

      public int slotHovered
    • slotHovered2

      public int slotHovered2
    • triggerHitboxSlotHovered

      public int triggerHitboxSlotHovered
  • Constructor Details

    • AbstractPlayerAttachmentInfo

      public AbstractPlayerAttachmentInfo(int ticksToExist)
  • Method Details

    • setInputSlots

      public abstract void setInputSlots()
    • slotHovered

      public boolean slotHovered(int slot)
    • getInputSlots

      public BoundingBox[] getInputSlots()
      Gets all the slot IDs that represent inputs. Used for guiding.
      Returns:
      An array of all hitboxes that represent inputs
    • getTicksLeft

      public int getTicksLeft()
    • changeTicksLeft

      public void changeTicksLeft(int amount)
    • setTicksLeft

      public void setTicksLeft(int value)
    • getHitbox

      public abstract BoundingBox getHitbox(int slot)
    • getAllHitboxes

      public abstract BoundingBox[] getAllHitboxes()
    • setHitbox

      public abstract void setHitbox(int slot, BoundingBox hitbox)
    • hasHitboxes

      public abstract boolean hasHitboxes()
    • getPosition

      public abstract net.minecraft.world.phys.Vec3 getPosition(int slot)
    • getAllPositions

      public abstract net.minecraft.world.phys.Vec3[] getAllPositions()
    • setPosition

      public abstract void setPosition(int slot, net.minecraft.world.phys.Vec3 position)
    • hasPositions

      public abstract boolean hasPositions()
    • getItemTransitionCountdown

      public int getItemTransitionCountdown()
    • changeItemTransitionCountdown

      public void changeItemTransitionCountdown(int amount)
    • readyToRender

      public abstract boolean readyToRender()
    • getBlockPosition

      public abstract net.minecraft.core.BlockPos getBlockPosition()
    • remove

      public void remove()
    • toString

      public String toString()
      Overrides:
      toString in class Object