Record Class StoredNumberAccess
java.lang.Object
java.lang.Record
net.minecraft.world.level.storage.loot.providers.number.StoredNumberAccess
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<StoredNumberAccess> private final NbtPathArgument.NbtPathThe field for thepathrecord component.private final IdentifierThe field for thestoragerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStoredNumberAccess(Identifier storage, NbtPathArgument.NbtPath path) Creates an instance of aStoredNumberAccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getNumericTag(LootContext context) final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.storage()Returns the value of thestoragerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
storage
The field for thestoragerecord component. -
path
The field for thepathrecord component. -
MAP_CODEC
-
-
Constructor Details
-
StoredNumberAccess
Creates an instance of aStoredNumberAccessrecord class.- Parameters:
storage- the value for thestoragerecord componentpath- the value for thepathrecord component
-
-
Method Details
-
getNumericTag
-
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). -
storage
Returns the value of thestoragerecord component.- Returns:
- the value of the
storagerecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-