Record Class UUIDDataComponent
java.lang.Object
java.lang.Record
in.northwestw.shortcircuit.registries.datacomponents.UUIDDataComponent
-
Constructor Summary
ConstructorsConstructorDescriptionUUIDDataComponent(UUID uuid) Creates an instance of aUUIDDataComponentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static UUIDDataComponentfromLongs(long msb, long lsb) static net.minecraft.core.component.DataComponentType.Builder<UUIDDataComponent> getBuilder(net.minecraft.core.component.DataComponentType.Builder<UUIDDataComponent> builder) final inthashCode()Returns a hash code value for this object.longlongfinal StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
UUIDDataComponent
Creates an instance of aUUIDDataComponentrecord class.- Parameters:
uuid- the value for theuuidrecord component
-
-
Method Details
-
getBuilder
public static net.minecraft.core.component.DataComponentType.Builder<UUIDDataComponent> getBuilder(net.minecraft.core.component.DataComponentType.Builder<UUIDDataComponent> builder) -
fromLongs
-
mostSignificantBits
public long mostSignificantBits() -
leastSignificantBits
public long leastSignificantBits() -
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). -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-