Record Class LodestoneTracker
java.lang.Object
java.lang.Record
net.minestom.server.item.component.LodestoneTracker
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<LodestoneTracker> static final NetworkBuffer.Type<LodestoneTracker> -
Constructor Summary
ConstructorsConstructorDescriptionLodestoneTracker(String dimension, Point blockPosition, boolean tracked) LodestoneTracker(@Nullable WorldPos target, boolean tracked) Creates an instance of aLodestoneTrackerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.booleantracked()Returns the value of thetrackedrecord component.withTarget(@Nullable WorldPos target) withTracked(boolean tracked)
-
Field Details
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
LodestoneTracker
-
LodestoneTracker
-
-
Method Details
-
withTarget
-
withTracked
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
target
-
tracked
public boolean tracked()Returns the value of thetrackedrecord component.- Returns:
- the value of the
trackedrecord component
-