Package net.minecraft
Record Class class_9577
java.lang.Object
java.lang.Record
net.minecraft.class_9577
- Record Components:
damageBoost-
- All Implemented Interfaces:
TooltipAppender
- Mappings:
Namespace Name official drkintermediary net/minecraft/class_9577named net/minecraft/class_9577official cintermediary comp_2589named damageBoost
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thedamageBoostrecord component.static final com.mojang.serialization.Codec<class_9577> static final PacketCodec<ByteBuf, class_9577> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(Consumer<Text> textConsumer, TooltipContext context) floatReturns the value of thedamageBoostrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static floatmethod_59194(ItemStack itemStack, Entity entity) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
damageBoost
private final float damageBoostThe field for thedamageBoostrecord component. -
field_50959
- Mappings:
Namespace Name Mixin selector official aLdrk;a:Lcom/mojang/serialization/Codec;intermediary field_50959Lnet/minecraft/class_9577;field_50959:Lcom/mojang/serialization/Codec;named field_50959Lnet/minecraft/class_9577;field_50959:Lcom/mojang/serialization/Codec;
-
field_50960
- Mappings:
Namespace Name Mixin selector official bLdrk;b:Lzc;intermediary field_50960Lnet/minecraft/class_9577;field_50960:Lnet/minecraft/class_9139;named field_50960Lnet/minecraft/class_9577;field_50960:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
class_9577
public class_9577(float float2)
-
-
Method Details
-
appendTooltip
- Specified by:
appendTooltipin interfaceTooltipAppender- Mappings:
Namespace Name Mixin selector official aLcxx;a(Ljava/util/function/Consumer;Lcwi;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Ljava/util/function/Consumer;Lnet/minecraft/class_1836;)Vnamed appendTooltipLnet/minecraft/item/TooltipAppender;appendTooltip(Ljava/util/function/Consumer;Lnet/minecraft/client/item/TooltipContext;)V
-
method_59194
- Mappings:
Namespace Name Mixin selector official aLdrk;a(Lcuh;Lbrv;)Fintermediary method_59194Lnet/minecraft/class_9577;method_59194(Lnet/minecraft/class_1799;Lnet/minecraft/class_1297;)Fnamed method_59194Lnet/minecraft/class_9577;method_59194(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;)F
-
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 '=='. -
damageBoost
public float damageBoost()Returns the value of thedamageBoostrecord component.- Returns:
- the value of the
damageBoostrecord component
-