Record Class IntOrUUID.UUIDImpl
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.util.IntOrUUID.UUIDImpl
- All Implemented Interfaces:
IntOrUUID
- Enclosing interface:
IntOrUUID
-
Nested Class Summary
Nested classes/interfaces inherited from interface IntOrUUID
IntOrUUID.IntImpl, IntOrUUID.UUIDImpl -
Field Summary
Fields inherited from interface IntOrUUID
CODEC, DATA_TYPE, STREAM_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneither()final booleanIndicates whether some other object is "equal to" this one.@Nullable net.minecraft.world.entity.EntitygetEntity(net.minecraft.world.level.Level level) final inthashCode()Returns a hash code value for this object.Returns the value of theoptionalValuerecord component.booleantestEntity(net.minecraft.world.entity.Entity entity) @NotNull StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
UUIDImpl
-
UUIDImpl
-
-
Method Details
-
either
-
optionalInteger
- Specified by:
optionalIntegerin interfaceIntOrUUID
-
optionalInt
- Specified by:
optionalIntin interfaceIntOrUUID
-
optionalUUID
- Specified by:
optionalUUIDin interfaceIntOrUUID
-
testEntity
public boolean testEntity(net.minecraft.world.entity.Entity entity) - Specified by:
testEntityin interfaceIntOrUUID
-
getEntity
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
optionalValue
-