Package net.minecraft.world.poi
Record Class PointOfInterestSet.Serialized
java.lang.Object
java.lang.Record
net.minecraft.world.poi.PointOfInterestSet.Serialized
- Record Components:
isValid-records-
- Enclosing class:
PointOfInterestSet
public static record PointOfInterestSet.Serialized(boolean isValid, List<PointOfInterest.Serialized> records)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/poi/PointOfInterestSet$Serializedintermediary net/minecraft/class_4157$class_9865official cjj$anamed isValidintermediary comp_2914official bnamed recordsintermediary comp_2915official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PointOfInterestSet.Serialized> private final booleanThe field for theisValidrecord component.private final List<PointOfInterest.Serialized> The field for therecordsrecord component. -
Constructor Summary
Constructors -
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.booleanisValid()Returns the value of theisValidrecord component.records()Returns the value of therecordsrecord component.toPointOfInterestSet(Runnable updateListener) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
isValid
private final boolean isValidThe field for theisValidrecord component. -
records
The field for therecordsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/poi/PointOfInterestSet$Serialized;CODEC:Lcom/mojang/serialization/Codec;intermediary field_52453Lnet/minecraft/class_4157$class_9865;field_52453:Lcom/mojang/serialization/Codec;official aLcjj$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Serialized
-
-
Method Details
-
toPointOfInterestSet
- Mappings:
Namespace Name Mixin selector named toPointOfInterestSetLnet/minecraft/world/poi/PointOfInterestSet$Serialized;toPointOfInterestSet(Ljava/lang/Runnable;)Lnet/minecraft/world/poi/PointOfInterestSet;intermediary method_61453Lnet/minecraft/class_4157$class_9865;method_61453(Ljava/lang/Runnable;)Lnet/minecraft/class_4157;official aLcjj$a;a(Ljava/lang/Runnable;)Lcjj;
-
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 '=='. -
isValid
public boolean isValid()Returns the value of theisValidrecord component.- Returns:
- the value of the
isValidrecord component
-
records
Returns the value of therecordsrecord component.- Returns:
- the value of the
recordsrecord component
-