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_10124
intermediary net/minecraft/class_10124
official cyb
named consumeSeconds
intermediary comp_3085
official d
named animation
intermediary comp_3086
official e
named sound
intermediary comp_3087
official f
named hasConsumeParticles
intermediary comp_3088
official g
named onConsumeEffects
intermediary comp_3089
official h
  • Field Details

    • consumeSeconds

      private final float consumeSeconds
      The field for the consumeSeconds record component.
    • animation

      private final UseAction animation
      The field for the animation record component.
    • sound

      private final RegistryEntry<SoundEvent> sound
      The field for the sound record component.
    • hasConsumeParticles

      private final boolean hasConsumeParticles
      The field for the hasConsumeParticles record component.
    • onConsumeEffects

      private final List<class_10134> onConsumeEffects
      The field for the onConsumeEffects record component.
    • field_53769

      public static final float field_53769
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_53769 Lnet/minecraft/class_10124;field_53769:F
      intermediary field_53769 Lnet/minecraft/class_10124;field_53769:F
      official a Lcyb;a:F
    • field_53772

      private static final int field_53772
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_53772 Lnet/minecraft/class_10124;field_53772:I
      intermediary field_53772 Lnet/minecraft/class_10124;field_53772:I
      official i Lcyb;i:I
    • field_53773

      private static final float field_53773
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_53773 Lnet/minecraft/class_10124;field_53773:F
      intermediary field_53773 Lnet/minecraft/class_10124;field_53773:F
      official j Lcyb;j:F
    • field_53770

      public static final com.mojang.serialization.Codec<class_10124> field_53770
      Mappings:
      Namespace Name Mixin selector
      named field_53770 Lnet/minecraft/class_10124;field_53770:Lcom/mojang/serialization/Codec;
      intermediary field_53770 Lnet/minecraft/class_10124;field_53770:Lcom/mojang/serialization/Codec;
      official b Lcyb;b:Lcom/mojang/serialization/Codec;
    • field_53771

      public static final PacketCodec<RegistryByteBuf,class_10124> field_53771
      Mappings:
      Namespace Name Mixin selector
      named field_53771 Lnet/minecraft/class_10124;field_53771:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_53771 Lnet/minecraft/class_10124;field_53771:Lnet/minecraft/class_9139;
      official c Lcyb;c:Lzb;
  • Constructor Details

  • Method Details

    • method_62845

      public ActionResult method_62845(LivingEntity livingEntity, ItemStack itemStack, Hand hand)
      Mappings:
      Namespace Name Mixin selector
      named method_62845 Lnet/minecraft/class_10124;method_62845(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      intermediary method_62845 Lnet/minecraft/class_10124;method_62845(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      official a Lcyb;a(Lbuk;Lcvp;Lbro;)Lbrp;
    • method_62847

      public ItemStack method_62847(World world, LivingEntity livingEntity, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      named method_62847 Lnet/minecraft/class_10124;method_62847(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
      intermediary method_62847 Lnet/minecraft/class_10124;method_62847(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
      official a Lcyb;a(Ldeg;Lbuk;Lcvp;)Lcvp;
    • method_62844

      public boolean method_62844(LivingEntity livingEntity, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      named method_62844 Lnet/minecraft/class_10124;method_62844(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)Z
      intermediary method_62844 Lnet/minecraft/class_10124;method_62844(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)Z
      official a Lcyb;a(Lbuk;Lcvp;)Z
    • method_62841

      public int method_62841()
      Mappings:
      Namespace Name Mixin selector
      named method_62841 Lnet/minecraft/class_10124;method_62841()I
      intermediary method_62841 Lnet/minecraft/class_10124;method_62841()I
      official a Lcyb;a()I
    • method_62843

      public void method_62843(Random random, LivingEntity livingEntity, ItemStack itemStack, int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_62843 Lnet/minecraft/class_10124;method_62843(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;I)V
      intermediary method_62843 Lnet/minecraft/class_10124;method_62843(Lnet/minecraft/class_5819;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;I)V
      official a Lcyb;a(Lazl;Lbuk;Lcvp;I)V
    • method_62842

      public boolean method_62842(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_62842 Lnet/minecraft/class_10124;method_62842(I)Z
      intermediary method_62842 Lnet/minecraft/class_10124;method_62842(I)Z
      official a Lcyb;a(I)Z
    • method_62850

      public static class_10124.class_10125 method_62850()
      Mappings:
      Namespace Name Mixin selector
      named method_62850 Lnet/minecraft/class_10124;method_62850()Lnet/minecraft/class_10124$class_10125;
      intermediary method_62850 Lnet/minecraft/class_10124;method_62850()Lnet/minecraft/class_10124$class_10125;
      official b Lcyb;b()Lcyb$a;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • consumeSeconds

      public float consumeSeconds()
      Returns the value of the consumeSeconds record component.
      Returns:
      the value of the consumeSeconds record component
    • animation

      public UseAction animation()
      Returns the value of the animation record component.
      Returns:
      the value of the animation record component
    • sound

      public RegistryEntry<SoundEvent> sound()
      Returns the value of the sound record component.
      Returns:
      the value of the sound record component
    • hasConsumeParticles

      public boolean hasConsumeParticles()
      Returns the value of the hasConsumeParticles record component.
      Returns:
      the value of the hasConsumeParticles record component
    • onConsumeEffects

      public List<class_10134> onConsumeEffects()
      Returns the value of the onConsumeEffects record component.
      Returns:
      the value of the onConsumeEffects record component