Class ImmersiveHitboxesInfo
java.lang.Object
com.hammy275.immersivemc.client.immersive.info.AbstractPlayerAttachmentInfo
com.hammy275.immersivemc.client.immersive.info.ImmersiveHitboxesInfo
- All Implemented Interfaces:
InfoTriggerHitboxes
public class ImmersiveHitboxesInfo
extends AbstractPlayerAttachmentInfo
implements InfoTriggerHitboxes
-
Field Summary
Fields inherited from class com.hammy275.immersivemc.client.immersive.info.AbstractPlayerAttachmentInfo
initCompleted, inputHitboxes, itemTransitionCountdown, light, slotHovered, slotHovered2, ticksActive, ticksLeft, triggerHitboxSlotHovered
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.Vec3[]
net.minecraft.core.BlockPos
getHitbox
(int slot) net.minecraft.world.phys.Vec3
getPosition
(int slot) getTriggerHitbox
(int hitboxNum) int
boolean
boolean
boolean
void
setHitbox
(int slot, BoundingBox hitbox) void
void
setPosition
(int slot, net.minecraft.world.phys.Vec3 position) Methods inherited from class com.hammy275.immersivemc.client.immersive.info.AbstractPlayerAttachmentInfo
changeItemTransitionCountdown, changeTicksLeft, getInputSlots, getItemTransitionCountdown, getTicksLeft, remove, setTicksLeft, slotHovered, toString
-
Field Details
-
BACKPACK_BACK_INDEX
public static final int BACKPACK_BACK_INDEX- See Also:
-
-
Constructor Details
-
ImmersiveHitboxesInfo
public ImmersiveHitboxesInfo()
-
-
Method Details
-
setInputSlots
public void setInputSlots()- Specified by:
setInputSlots
in classAbstractPlayerAttachmentInfo
-
getHitbox
- Specified by:
getHitbox
in classAbstractPlayerAttachmentInfo
-
getAllHitboxes
- Specified by:
getAllHitboxes
in classAbstractPlayerAttachmentInfo
-
setHitbox
- Specified by:
setHitbox
in classAbstractPlayerAttachmentInfo
-
hasHitboxes
public boolean hasHitboxes()- Specified by:
hasHitboxes
in classAbstractPlayerAttachmentInfo
-
getPosition
public net.minecraft.world.phys.Vec3 getPosition(int slot) - Specified by:
getPosition
in classAbstractPlayerAttachmentInfo
-
getAllPositions
public net.minecraft.world.phys.Vec3[] getAllPositions()- Specified by:
getAllPositions
in classAbstractPlayerAttachmentInfo
-
setPosition
public void setPosition(int slot, net.minecraft.world.phys.Vec3 position) - Specified by:
setPosition
in classAbstractPlayerAttachmentInfo
-
hasPositions
public boolean hasPositions()- Specified by:
hasPositions
in classAbstractPlayerAttachmentInfo
-
readyToRender
public boolean readyToRender()- Specified by:
readyToRender
in classAbstractPlayerAttachmentInfo
-
getBlockPosition
public net.minecraft.core.BlockPos getBlockPosition()- Specified by:
getBlockPosition
in classAbstractPlayerAttachmentInfo
-
getTriggerHitbox
- Specified by:
getTriggerHitbox
in interfaceInfoTriggerHitboxes
-
getTriggerHitboxes
- Specified by:
getTriggerHitboxes
in interfaceInfoTriggerHitboxes
-
getVRControllerNum
public int getVRControllerNum()- Specified by:
getVRControllerNum
in interfaceInfoTriggerHitboxes
-