Record Class SwapTracker.LastImmersive<I extends ImmersiveInfo>
java.lang.Object
java.lang.Record
com.hammy275.immersivemc.client.immersive.SwapTracker.LastImmersive<I>
- Enclosing class:
SwapTracker
protected static record SwapTracker.LastImmersive<I extends ImmersiveInfo>(Immersive<I extends ImmersiveInfo, ?, ?> immersive, I extends ImmersiveInfo info)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLastImmersive(Immersive<I, ?, ?> immersive, I info) Creates an instance of aLastImmersiverecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdoHitboxInteract(List<Integer> slots, net.minecraft.world.InteractionHand hand, int currentCooldown, boolean leftClickDown) booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimmersiverecord component.info()Returns the value of theinforecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LastImmersive
-
-
Method Details
-
doHitboxInteract
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
toString
-
hashCode
-
immersive
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-