Class AbstractPlayerAttachmentInfo
java.lang.Object
com.hammy275.immersivemc.client.immersive.info.AbstractPlayerAttachmentInfo
- Direct Known Subclasses:
BackpackInfo
,ImmersiveHitboxesInfo
-
Field Summary
Modifier and TypeFieldDescriptionboolean
protected BoundingBox[]
protected int
int
int
int
int
protected int
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeItemTransitionCountdown
(int amount) void
changeTicksLeft
(int amount) abstract BoundingBox[]
abstract net.minecraft.world.phys.Vec3[]
abstract net.minecraft.core.BlockPos
abstract BoundingBox
getHitbox
(int slot) Gets all the slot IDs that represent inputs.int
abstract net.minecraft.world.phys.Vec3
getPosition
(int slot) int
abstract boolean
abstract boolean
abstract boolean
void
remove()
abstract void
setHitbox
(int slot, BoundingBox hitbox) abstract void
abstract void
setPosition
(int slot, net.minecraft.world.phys.Vec3 position) void
setTicksLeft
(int value) boolean
slotHovered
(int slot) toString()
-
Field Details
-
ticksLeft
protected int ticksLeft -
itemTransitionCountdown
protected int itemTransitionCountdown -
ticksActive
public int ticksActive -
initCompleted
public boolean initCompleted -
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
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
-
getAllHitboxes
-
setHitbox
-
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
-