Record Class LodestoneTracker25w14craftmine
java.lang.Object
java.lang.Record
com.viaversion.viaaprilfools.api.minecraft.item.LodestoneTracker25w14craftmine
public record LodestoneTracker25w14craftmine(com.viaversion.viaversion.api.minecraft.GlobalBlockPosition position, boolean tracked, boolean exits)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.viaversion.viaversion.api.type.Type<LodestoneTracker25w14craftmine> -
Constructor Summary
ConstructorsConstructorDescriptionLodestoneTracker25w14craftmine(com.viaversion.viaversion.api.minecraft.GlobalBlockPosition position, boolean tracked, boolean exits) Creates an instance of aLodestoneTracker25w14craftminerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanexits()Returns the value of theexitsrecord component.final inthashCode()Returns a hash code value for this object.com.viaversion.viaversion.api.minecraft.GlobalBlockPositionposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.booleantracked()Returns the value of thetrackedrecord component.
-
Field Details
-
TYPE
-
-
Constructor Details
-
LodestoneTracker25w14craftmine
public LodestoneTracker25w14craftmine(com.viaversion.viaversion.api.minecraft.GlobalBlockPosition position, boolean tracked, boolean exits) Creates an instance of aLodestoneTracker25w14craftminerecord class.- Parameters:
position- the value for thepositionrecord componenttracked- the value for thetrackedrecord componentexits- the value for theexitsrecord component
-
-
Method Details
-
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
position
public com.viaversion.viaversion.api.minecraft.GlobalBlockPosition position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
tracked
public boolean tracked()Returns the value of thetrackedrecord component.- Returns:
- the value of the
trackedrecord component
-
exits
public boolean exits()Returns the value of theexitsrecord component.- Returns:
- the value of the
exitsrecord component
-