Package net.minecraft
Record Class class_9886
java.lang.Object
java.lang.Record
net.minecraft.class_9886
- Record Components:
incorrectBlocksForDrops-durability-speed-attackDamageBonus-enchantmentValue-repairItems-
public record class_9886(TagKey<Block> incorrectBlocksForDrops, int durability, float speed, float attackDamageBonus, int enchantmentValue, TagKey<Item> repairItems)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_9886intermediary net/minecraft/class_9886official cxenamed incorrectBlocksForDropsintermediary comp_2930official gnamed durabilityintermediary comp_2931official hnamed speedintermediary comp_2932official inamed attackDamageBonusintermediary comp_2933official jnamed enchantmentValueintermediary comp_2934official knamed repairItemsintermediary comp_2935official l
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theattackDamageBonusrecord component.private final intThe field for thedurabilityrecord component.private final intThe field for theenchantmentValuerecord component.static final class_9886static final class_9886static final class_9886static final class_9886static final class_9886static final class_9886The field for theincorrectBlocksForDropsrecord component.The field for therepairItemsrecord component.private final floatThe field for thespeedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_9886(TagKey<Block> tagKey, int int2, float float2, float float3, int int3, TagKey<Item> tagKey2) -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theattackDamageBonusrecord component.intReturns the value of thedurabilityrecord component.intReturns the value of theenchantmentValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theincorrectBlocksForDropsrecord component.private AttributeModifiersComponentmethod_61660(float float2, float float3) private Item.Settingsmethod_61661(Item.Settings settings) method_61662(Item.Settings settings, float float2, float float3) method_61663(Item.Settings settings, TagKey<Block> tagKey, float float2, float float3) private AttributeModifiersComponentmethod_61664(float float2, float float3) Returns the value of therepairItemsrecord component.floatspeed()Returns the value of thespeedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
incorrectBlocksForDrops
The field for theincorrectBlocksForDropsrecord component. -
durability
private final int durabilityThe field for thedurabilityrecord component. -
speed
private final float speedThe field for thespeedrecord component. -
attackDamageBonus
private final float attackDamageBonusThe field for theattackDamageBonusrecord component. -
enchantmentValue
private final int enchantmentValueThe field for theenchantmentValuerecord component. -
repairItems
The field for therepairItemsrecord component. -
field_52585
- Mappings:
Namespace Name Mixin selector named field_52585Lnet/minecraft/class_9886;field_52585:Lnet/minecraft/class_9886;intermediary field_52585Lnet/minecraft/class_9886;field_52585:Lnet/minecraft/class_9886;official aLcxe;a:Lcxe;
-
field_52586
- Mappings:
Namespace Name Mixin selector named field_52586Lnet/minecraft/class_9886;field_52586:Lnet/minecraft/class_9886;intermediary field_52586Lnet/minecraft/class_9886;field_52586:Lnet/minecraft/class_9886;official bLcxe;b:Lcxe;
-
field_52587
- Mappings:
Namespace Name Mixin selector named field_52587Lnet/minecraft/class_9886;field_52587:Lnet/minecraft/class_9886;intermediary field_52587Lnet/minecraft/class_9886;field_52587:Lnet/minecraft/class_9886;official cLcxe;c:Lcxe;
-
field_52588
- Mappings:
Namespace Name Mixin selector named field_52588Lnet/minecraft/class_9886;field_52588:Lnet/minecraft/class_9886;intermediary field_52588Lnet/minecraft/class_9886;field_52588:Lnet/minecraft/class_9886;official dLcxe;d:Lcxe;
-
field_52589
- Mappings:
Namespace Name Mixin selector named field_52589Lnet/minecraft/class_9886;field_52589:Lnet/minecraft/class_9886;intermediary field_52589Lnet/minecraft/class_9886;field_52589:Lnet/minecraft/class_9886;official eLcxe;e:Lcxe;
-
field_52590
- Mappings:
Namespace Name Mixin selector named field_52590Lnet/minecraft/class_9886;field_52590:Lnet/minecraft/class_9886;intermediary field_52590Lnet/minecraft/class_9886;field_52590:Lnet/minecraft/class_9886;official fLcxe;f:Lcxe;
-
-
Constructor Details
-
class_9886
-
-
Method Details
-
method_61661
- Mappings:
Namespace Name Mixin selector named method_61661Lnet/minecraft/class_9886;method_61661(Lnet/minecraft/item/Item$Settings;)Lnet/minecraft/item/Item$Settings;intermediary method_61661Lnet/minecraft/class_9886;method_61661(Lnet/minecraft/class_1792$class_1793;)Lnet/minecraft/class_1792$class_1793;official aLcxe;a(Lcvg$a;)Lcvg$a;
-
method_61663
public Item.Settings method_61663(Item.Settings settings, TagKey<Block> tagKey, float float2, float float3) - Mappings:
Namespace Name Mixin selector named method_61663Lnet/minecraft/class_9886;method_61663(Lnet/minecraft/item/Item$Settings;Lnet/minecraft/registry/tag/TagKey;FF)Lnet/minecraft/item/Item$Settings;intermediary method_61663Lnet/minecraft/class_9886;method_61663(Lnet/minecraft/class_1792$class_1793;Lnet/minecraft/class_6862;FF)Lnet/minecraft/class_1792$class_1793;official aLcxe;a(Lcvg$a;Laxi;FF)Lcvg$a;
-
method_61660
- Mappings:
Namespace Name Mixin selector named method_61660Lnet/minecraft/class_9886;method_61660(FF)Lnet/minecraft/component/type/AttributeModifiersComponent;intermediary method_61660Lnet/minecraft/class_9886;method_61660(FF)Lnet/minecraft/class_9285;official aLcxe;a(FF)Lcyg;
-
method_61662
- Mappings:
Namespace Name Mixin selector named method_61662Lnet/minecraft/class_9886;method_61662(Lnet/minecraft/item/Item$Settings;FF)Lnet/minecraft/item/Item$Settings;intermediary method_61662Lnet/minecraft/class_9886;method_61662(Lnet/minecraft/class_1792$class_1793;FF)Lnet/minecraft/class_1792$class_1793;official aLcxe;a(Lcvg$a;FF)Lcvg$a;
-
method_61664
- Mappings:
Namespace Name Mixin selector named method_61664Lnet/minecraft/class_9886;method_61664(FF)Lnet/minecraft/component/type/AttributeModifiersComponent;intermediary method_61664Lnet/minecraft/class_9886;method_61664(FF)Lnet/minecraft/class_9285;official bLcxe;b(FF)Lcyg;
-
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 '=='. -
incorrectBlocksForDrops
Returns the value of theincorrectBlocksForDropsrecord component.- Returns:
- the value of the
incorrectBlocksForDropsrecord component
-
durability
public int durability()Returns the value of thedurabilityrecord component.- Returns:
- the value of the
durabilityrecord component
-
speed
public float speed()Returns the value of thespeedrecord component.- Returns:
- the value of the
speedrecord component
-
attackDamageBonus
public float attackDamageBonus()Returns the value of theattackDamageBonusrecord component.- Returns:
- the value of the
attackDamageBonusrecord component
-
enchantmentValue
public int enchantmentValue()Returns the value of theenchantmentValuerecord component.- Returns:
- the value of the
enchantmentValuerecord component
-
repairItems
Returns the value of therepairItemsrecord component.- Returns:
- the value of the
repairItemsrecord component
-