Package net.minecraft
Record Class class_9726
java.lang.Object
java.lang.Record
net.minecraft.class_9726
- Record Components:
factor-
- All Implemented Interfaces:
class_9723
- Mappings:
Namespace Name named net/minecraft/class_9726intermediary net/minecraft/class_9726official daenamed factorintermediary comp_2734official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_9704The field for thefactorrecord component.static final com.mojang.serialization.MapCodec<class_9726> Fields inherited from interface net.minecraft.class_9723
field_51709 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.factor()Returns the value of thefactorrecord component.final inthashCode()Returns a hash code value for this object.com.mojang.serialization.MapCodec<class_9726> floatmethod_60213(ItemStack itemStack, int int2, Random random, float float2) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
factor
The field for thefactorrecord component. -
field_51712
- Mappings:
Namespace Name Mixin selector named field_51712Lnet/minecraft/class_9726;field_51712:Lcom/mojang/serialization/MapCodec;intermediary field_51712Lnet/minecraft/class_9726;field_51712:Lcom/mojang/serialization/MapCodec;official aLdae;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
class_9726
-
-
Method Details
-
method_60213
- Specified by:
method_60213in interfaceclass_9723- Mappings:
Namespace Name Mixin selector named method_60213Lnet/minecraft/class_9723;method_60213(Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/random/Random;F)Fintermediary method_60213Lnet/minecraft/class_9723;method_60213(Lnet/minecraft/class_1799;ILnet/minecraft/class_5819;F)Fofficial aLdab;a(Lcua;ILaym;F)F
-
method_60211
- Specified by:
method_60211in interfaceclass_9723- Mappings:
Namespace Name Mixin selector named method_60211Lnet/minecraft/class_9723;method_60211()Lcom/mojang/serialization/MapCodec;intermediary method_60211Lnet/minecraft/class_9723;method_60211()Lcom/mojang/serialization/MapCodec;official aLdab;a()Lcom/mojang/serialization/MapCodec;
-
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). -
factor
Returns the value of thefactorrecord component.- Returns:
- the value of the
factorrecord component
-