Package net.minecraft
Record Class class_9744
java.lang.Object
java.lang.Record
net.minecraft.class_9744
- Record Components:
enchantments-minCost-maxCostSpan-
- All Implemented Interfaces:
class_9741
public record class_9744(RegistryEntryList<Enchantment> enchantments, int minCost, int maxCostSpan)
extends Record
implements class_9741
- Mappings:
Namespace Name named net/minecraft/class_9744intermediary net/minecraft/class_9744official datnamed enchantmentsintermediary comp_2766official cnamed minCostintermediary comp_2767official dnamed maxCostSpanintermediary comp_2768official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntryList<Enchantment> The field for theenchantmentsrecord component.static final com.mojang.serialization.MapCodec<class_9744> private final intThe field for themaxCostSpanrecord component.private final intThe field for theminCostrecord component.Fields inherited from interface net.minecraft.class_9741
field_51731 -
Constructor Summary
ConstructorsConstructorDescriptionclass_9744(RegistryEntryList<Enchantment> registryEntryList, int int2, int int3) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenchantmentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxCostSpanrecord component.com.mojang.serialization.MapCodec<class_9744> voidmethod_60266(ItemStack itemStack, ItemEnchantmentsComponent.Builder builder, Random random, World world, BlockPos blockPos) intminCost()Returns the value of theminCostrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
enchantments
The field for theenchantmentsrecord component. -
minCost
private final int minCostThe field for theminCostrecord component. -
maxCostSpan
private final int maxCostSpanThe field for themaxCostSpanrecord component. -
field_51733
- Mappings:
Namespace Name Mixin selector named field_51733Lnet/minecraft/class_9744;field_51733:Lcom/mojang/serialization/MapCodec;intermediary field_51733Lnet/minecraft/class_9744;field_51733:Lcom/mojang/serialization/MapCodec;official bLdat;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
class_9744
-
-
Method Details
-
method_60266
public void method_60266(ItemStack itemStack, ItemEnchantmentsComponent.Builder builder, Random random, World world, BlockPos blockPos) - Specified by:
method_60266in interfaceclass_9741- Mappings:
Namespace Name Mixin selector named method_60266Lnet/minecraft/class_9741;method_60266(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_60266Lnet/minecraft/class_9741;method_60266(Lnet/minecraft/class_1799;Lnet/minecraft/class_9304$class_9305;Lnet/minecraft/class_5819;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vofficial aLdaq;a(Lcua;Lczp$a;Laym;Ldcd;Lja;)V
-
method_60265
- Specified by:
method_60265in interfaceclass_9741- Mappings:
Namespace Name Mixin selector named method_60265Lnet/minecraft/class_9741;method_60265()Lcom/mojang/serialization/MapCodec;intermediary method_60265Lnet/minecraft/class_9741;method_60265()Lcom/mojang/serialization/MapCodec;official aLdaq;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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
enchantments
Returns the value of theenchantmentsrecord component.- Returns:
- the value of the
enchantmentsrecord component
-
minCost
public int minCost()Returns the value of theminCostrecord component.- Returns:
- the value of the
minCostrecord component
-
maxCostSpan
public int maxCostSpan()Returns the value of themaxCostSpanrecord component.- Returns:
- the value of the
maxCostSpanrecord component
-