Class AbstractImmersiveInfo
java.lang.Object
com.hammy275.immersivemc.client.immersive.info.AbstractImmersiveInfo
- Direct Known Subclasses:
AbstractBlockBasedImmersiveInfo, AbstractPlayerAttachmentImmersiveInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetSlotHovered(int handIndex) longbooleanbooleanisSlotHovered(int hitboxIndex) voidsetSlotHovered(int hitboxIndex, int handIndex) voidtick()
-
Field Details
-
hitboxes
-
slotsHovered
protected final int[] slotsHovered -
ticksExisted
protected long ticksExisted
-
-
Constructor Details
-
AbstractImmersiveInfo
public AbstractImmersiveInfo() -
AbstractImmersiveInfo
-
-
Method Details
-
tick
public void tick() -
getAllHitboxes
-
hasHitboxes
public boolean hasHitboxes() -
setSlotHovered
public void setSlotHovered(int hitboxIndex, int handIndex) -
getSlotHovered
public int getSlotHovered(int handIndex) -
isSlotHovered
public boolean isSlotHovered(int hitboxIndex) -
getTicksExisted
public long getTicksExisted()
-