Package net.minecraft
Record Class class_10124
java.lang.Object
java.lang.Record
net.minecraft.class_10124
- Record Components:
consumeSeconds-animation-sound-hasConsumeParticles-onConsumeEffects-
public record class_10124(float consumeSeconds, UseAction animation, RegistryEntry<SoundEvent> sound, boolean hasConsumeParticles, List<class_10134> onConsumeEffects)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_10124intermediary net/minecraft/class_10124official cybnamed consumeSecondsintermediary comp_3085official dnamed animationintermediary comp_3086official enamed soundintermediary comp_3087official fnamed hasConsumeParticlesintermediary comp_3088official gnamed onConsumeEffectsintermediary comp_3089official h
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UseActionThe field for theanimationrecord component.private final floatThe field for theconsumeSecondsrecord component.static final floatstatic final com.mojang.serialization.Codec<class_10124> static final PacketCodec<RegistryByteBuf, class_10124> private static final intprivate static final floatprivate final booleanThe field for thehasConsumeParticlesrecord component.private final List<class_10134> The field for theonConsumeEffectsrecord component.private final RegistryEntry<SoundEvent> The field for thesoundrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_10124(float float2, UseAction useAction, RegistryEntry<SoundEvent> registryEntry, boolean bool, List<class_10134> list) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanimationrecord component.floatReturns the value of theconsumeSecondsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasConsumeParticlesrecord component.final inthashCode()Returns a hash code value for this object.intbooleanmethod_62842(int int2) voidmethod_62843(Random random, LivingEntity livingEntity, ItemStack itemStack, int int2) booleanmethod_62844(LivingEntity livingEntity, ItemStack itemStack) method_62845(LivingEntity livingEntity, ItemStack itemStack, Hand hand) method_62847(World world, LivingEntity livingEntity, ItemStack itemStack) static class_10124.class_10125Returns the value of theonConsumeEffectsrecord component.sound()Returns the value of thesoundrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
consumeSeconds
private final float consumeSecondsThe field for theconsumeSecondsrecord component. -
animation
The field for theanimationrecord component. -
sound
The field for thesoundrecord component. -
hasConsumeParticles
private final boolean hasConsumeParticlesThe field for thehasConsumeParticlesrecord component. -
onConsumeEffects
The field for theonConsumeEffectsrecord component. -
field_53769
public static final float field_53769- See Also:
- Mappings:
Namespace Name Mixin selector named field_53769Lnet/minecraft/class_10124;field_53769:Fintermediary field_53769Lnet/minecraft/class_10124;field_53769:Fofficial aLcyb;a:F
-
field_53772
private static final int field_53772- See Also:
- Mappings:
Namespace Name Mixin selector named field_53772Lnet/minecraft/class_10124;field_53772:Iintermediary field_53772Lnet/minecraft/class_10124;field_53772:Iofficial iLcyb;i:I
-
field_53773
private static final float field_53773- See Also:
- Mappings:
Namespace Name Mixin selector named field_53773Lnet/minecraft/class_10124;field_53773:Fintermediary field_53773Lnet/minecraft/class_10124;field_53773:Fofficial jLcyb;j:F
-
field_53770
- Mappings:
Namespace Name Mixin selector named field_53770Lnet/minecraft/class_10124;field_53770:Lcom/mojang/serialization/Codec;intermediary field_53770Lnet/minecraft/class_10124;field_53770:Lcom/mojang/serialization/Codec;official bLcyb;b:Lcom/mojang/serialization/Codec;
-
field_53771
- Mappings:
Namespace Name Mixin selector named field_53771Lnet/minecraft/class_10124;field_53771:Lnet/minecraft/network/codec/PacketCodec;intermediary field_53771Lnet/minecraft/class_10124;field_53771:Lnet/minecraft/class_9139;official cLcyb;c:Lzb;
-
-
Constructor Details
-
class_10124
public class_10124(float float2, UseAction useAction, RegistryEntry<SoundEvent> registryEntry, boolean bool, List<class_10134> list)
-
-
Method Details
-
method_62845
- Mappings:
Namespace Name Mixin selector named method_62845Lnet/minecraft/class_10124;method_62845(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_62845Lnet/minecraft/class_10124;method_62845(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official aLcyb;a(Lbuk;Lcvp;Lbro;)Lbrp;
-
method_62847
- Mappings:
Namespace Name Mixin selector named method_62847Lnet/minecraft/class_10124;method_62847(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;intermediary method_62847Lnet/minecraft/class_10124;method_62847(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;official aLcyb;a(Ldeg;Lbuk;Lcvp;)Lcvp;
-
method_62844
- Mappings:
Namespace Name Mixin selector named method_62844Lnet/minecraft/class_10124;method_62844(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)Zintermediary method_62844Lnet/minecraft/class_10124;method_62844(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)Zofficial aLcyb;a(Lbuk;Lcvp;)Z
-
method_62841
public int method_62841()- Mappings:
Namespace Name Mixin selector named method_62841Lnet/minecraft/class_10124;method_62841()Iintermediary method_62841Lnet/minecraft/class_10124;method_62841()Iofficial aLcyb;a()I
-
method_62843
- Mappings:
Namespace Name Mixin selector named method_62843Lnet/minecraft/class_10124;method_62843(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;I)Vintermediary method_62843Lnet/minecraft/class_10124;method_62843(Lnet/minecraft/class_5819;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;I)Vofficial aLcyb;a(Lazl;Lbuk;Lcvp;I)V
-
method_62842
public boolean method_62842(int int2) - Mappings:
Namespace Name Mixin selector named method_62842Lnet/minecraft/class_10124;method_62842(I)Zintermediary method_62842Lnet/minecraft/class_10124;method_62842(I)Zofficial aLcyb;a(I)Z
-
method_62850
- Mappings:
Namespace Name Mixin selector named method_62850Lnet/minecraft/class_10124;method_62850()Lnet/minecraft/class_10124$class_10125;intermediary method_62850Lnet/minecraft/class_10124;method_62850()Lnet/minecraft/class_10124$class_10125;official bLcyb;b()Lcyb$a;
-
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 '=='. -
consumeSeconds
public float consumeSeconds()Returns the value of theconsumeSecondsrecord component.- Returns:
- the value of the
consumeSecondsrecord component
-
animation
Returns the value of theanimationrecord component.- Returns:
- the value of the
animationrecord component
-
sound
Returns the value of thesoundrecord component.- Returns:
- the value of the
soundrecord component
-
hasConsumeParticles
public boolean hasConsumeParticles()Returns the value of thehasConsumeParticlesrecord component.- Returns:
- the value of the
hasConsumeParticlesrecord component
-
onConsumeEffects
Returns the value of theonConsumeEffectsrecord component.- Returns:
- the value of the
onConsumeEffectsrecord component
-