Package net.minecraft
Record Class class_9753
java.lang.Object
java.lang.Record
net.minecraft.class_9753
- Record Components:
amount-
- All Implemented Interfaces:
LootContextAware,LootNumberProvider
- Mappings:
Namespace Name named net/minecraft/class_9753intermediary net/minecraft/class_9753official eutnamed amountintermediary comp_2784official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_9704The field for theamountrecord component.static final com.mojang.serialization.MapCodec<class_9753> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamount()Returns the value of theamountrecord component.final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.static class_9753method_60313(class_9704 class_9704) floatnextFloat(LootContext context) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.loot.context.LootContextAware
getRequiredParameters, validateMethods inherited from interface net.minecraft.loot.provider.number.LootNumberProvider
nextInt
-
Field Details
-
amount
The field for theamountrecord component. -
field_51813
- Mappings:
Namespace Name Mixin selector named field_51813Lnet/minecraft/class_9753;field_51813:Lcom/mojang/serialization/MapCodec;intermediary field_51813Lnet/minecraft/class_9753;field_51813:Lcom/mojang/serialization/MapCodec;official aLeut;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
class_9753
-
-
Method Details
-
nextFloat
- Specified by:
nextFloatin interfaceLootNumberProvider- Mappings:
Namespace Name Mixin selector named nextFloatLnet/minecraft/loot/provider/number/LootNumberProvider;nextFloat(Lnet/minecraft/loot/context/LootContext;)Fintermediary method_32454Lnet/minecraft/class_5658;method_32454(Lnet/minecraft/class_47;)Fofficial bLeuv;b(Leqo;)F
-
getType
- Specified by:
getTypein interfaceLootNumberProvider- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/loot/provider/number/LootNumberProvider;getType()Lnet/minecraft/loot/provider/number/LootNumberProviderType;intermediary method_365Lnet/minecraft/class_5658;method_365()Lnet/minecraft/class_5657;official bLeuv;b()Leuu;
-
method_60313
- Mappings:
Namespace Name Mixin selector named method_60313Lnet/minecraft/class_9753;method_60313(Lnet/minecraft/class_9704;)Lnet/minecraft/class_9753;intermediary method_60313Lnet/minecraft/class_9753;method_60313(Lnet/minecraft/class_9704;)Lnet/minecraft/class_9753;official aLeut;a(Lczq;)Leut;
-
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). -
amount
Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-