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
Creates an instance of aLastImmersiverecord class.- Parameters:
immersive- the value for theimmersiverecord componentinfo- the value for theinforecord component
-
-
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
immersive
Returns the value of theimmersiverecord component.- Returns:
- the value of the
immersiverecord component
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-