Package net.minecraft.enchantment
Record Class Enchantment.class_9426
java.lang.Object
java.lang.Record
net.minecraft.enchantment.Enchantment.class_9426
- Record Components:
base
-perLevel
-
- Enclosing class:
Enchantment
- Mappings:
Namespace Name official cyg$a
intermediary net/minecraft/class_1887$class_9426
named net/minecraft/enchantment/Enchantment$class_9426
official a
intermediary comp_2504
named base
official b
intermediary comp_2505
named perLevel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
base()
Returns the value of thebase
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
method_58447
(int int2) int
perLevel()
Returns the value of theperLevel
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
class_9426
public class_9426(int int2, int int3)
-
-
Method Details
-
method_58447
public int method_58447(int int2) - Mappings:
Namespace Name Mixin selector official a
Lcyg$a;a(I)I
intermediary method_58447
Lnet/minecraft/class_1887$class_9426;method_58447(I)I
named method_58447
Lnet/minecraft/enchantment/Enchantment$class_9426;method_58447(I)I
-
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 with '=='. -
base
public int base()Returns the value of thebase
record component.- Returns:
- the value of the
base
record component
-
perLevel
public int perLevel()Returns the value of theperLevel
record component.- Returns:
- the value of the
perLevel
record component
-