Record Class PrettyPath
java.lang.Object
java.lang.Record
com.portingdeadmods.researchd.utils.PrettyPath
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PrettyPath> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, PrettyPath> -
Constructor Summary
ConstructorsConstructorDescriptionPrettyPath(Path fullPath, Path shortPath) Creates an instance of aPrettyPathrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fullPath()Returns the value of thefullPathrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theshortPathrecord component.@NotNull StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,PrettyPath> STREAM_CODEC
-
-
Constructor Details
-
PrettyPath
Creates an instance of aPrettyPathrecord class.- Parameters:
fullPath- the value for thefullPathrecord componentshortPath- the value for theshortPathrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
fullPath
Returns the value of thefullPathrecord component.- Returns:
- the value of the
fullPathrecord component
-
shortPath
Returns the value of theshortPathrecord component.- Returns:
- the value of the
shortPathrecord component
-