Package net.minecraft
Record Class class_9284
java.lang.Object
java.lang.Record
net.minecraft.class_9284
- Record Components:
flightDuration-explosions-
- All Implemented Interfaces:
class_9299
public record class_9284(int flightDuration, List<class_9283> explosions)
extends Record
implements class_9299
- Mappings:
Namespace Name official ctyintermediary net/minecraft/class_9284named net/minecraft/class_9284official cintermediary comp_2391named flightDurationofficial dintermediary comp_2392named explosions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<class_9283> The field for theexplosionsrecord component.static final com.mojang.serialization.Codec<class_9284> static final PacketCodec<ByteBuf, class_9284> private static final intprivate final intThe field for theflightDurationrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexplosionsrecord component.intReturns the value of theflightDurationrecord component.final inthashCode()Returns a hash code value for this object.voidmethod_57409(Consumer<Text> consumer, TooltipContext tooltipContext) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
flightDuration
private final int flightDurationThe field for theflightDurationrecord component. -
explosions
The field for theexplosionsrecord component. -
field_49325
private static final int field_49325- See Also:
- Mappings:
Namespace Name Mixin selector official eLcty;e:Iintermediary field_49325Lnet/minecraft/class_9284;field_49325:Inamed field_49325Lnet/minecraft/class_9284;field_49325:I
-
field_49323
- Mappings:
Namespace Name Mixin selector official aLcty;a:Lcom/mojang/serialization/Codec;intermediary field_49323Lnet/minecraft/class_9284;field_49323:Lcom/mojang/serialization/Codec;named field_49323Lnet/minecraft/class_9284;field_49323:Lcom/mojang/serialization/Codec;
-
field_49324
- Mappings:
Namespace Name Mixin selector official bLcty;b:Lye;intermediary field_49324Lnet/minecraft/class_9284;field_49324:Lnet/minecraft/class_9139;named field_49324Lnet/minecraft/class_9284;field_49324:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
class_9284
-
-
Method Details
-
method_57409
- Specified by:
method_57409in interfaceclass_9299- Mappings:
Namespace Name Mixin selector official aLcuj;a(Ljava/util/function/Consumer;Lcsz;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Ljava/util/function/Consumer;Lnet/minecraft/class_1836;)Vnamed method_57409Lnet/minecraft/class_9299;method_57409(Ljava/util/function/Consumer;Lnet/minecraft/client/item/TooltipContext;)V
-
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 '=='. -
flightDuration
public int flightDuration()Returns the value of theflightDurationrecord component.- Returns:
- the value of the
flightDurationrecord component
-
explosions
Returns the value of theexplosionsrecord component.- Returns:
- the value of the
explosionsrecord component
-