Package net.minecraft

Record Class class_9793

java.lang.Object
java.lang.Record
net.minecraft.class_9793
Record Components:
soundEvent -
description -
lengthInSeconds -
comparatorOutput -

public record class_9793(RegistryEntry<SoundEvent> soundEvent, Text description, float lengthInSeconds, int comparatorOutput) extends Record
Mappings:
Namespace Name
named net/minecraft/class_9793
intermediary net/minecraft/class_9793
official cut
named soundEvent
intermediary comp_2835
official e
named description
intermediary comp_2836
official f
named lengthInSeconds
intermediary comp_2837
official g
named comparatorOutput
intermediary comp_2838
official h
  • Field Details

    • soundEvent

      private final RegistryEntry<SoundEvent> soundEvent
      The field for the soundEvent record component.
    • description

      private final Text description
      The field for the description record component.
    • lengthInSeconds

      private final float lengthInSeconds
      The field for the lengthInSeconds record component.
    • comparatorOutput

      private final int comparatorOutput
      The field for the comparatorOutput record component.
    • field_52027

      public static final com.mojang.serialization.Codec<class_9793> field_52027
      Mappings:
      Namespace Name Mixin selector
      named field_52027 Lnet/minecraft/class_9793;field_52027:Lcom/mojang/serialization/Codec;
      intermediary field_52027 Lnet/minecraft/class_9793;field_52027:Lcom/mojang/serialization/Codec;
      official a Lcut;a:Lcom/mojang/serialization/Codec;
    • field_52028

      public static final PacketCodec<RegistryByteBuf,class_9793> field_52028
      Mappings:
      Namespace Name Mixin selector
      named field_52028 Lnet/minecraft/class_9793;field_52028:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_52028 Lnet/minecraft/class_9793;field_52028:Lnet/minecraft/class_9139;
      official b Lcut;b:Lyw;
    • field_52029

      public static final com.mojang.serialization.Codec<RegistryEntry<class_9793>> field_52029
      Mappings:
      Namespace Name Mixin selector
      named field_52029 Lnet/minecraft/class_9793;field_52029:Lcom/mojang/serialization/Codec;
      intermediary field_52029 Lnet/minecraft/class_9793;field_52029:Lcom/mojang/serialization/Codec;
      official c Lcut;c:Lcom/mojang/serialization/Codec;
    • field_52030

      public static final PacketCodec<RegistryByteBuf,RegistryEntry<class_9793>> field_52030
      Mappings:
      Namespace Name Mixin selector
      named field_52030 Lnet/minecraft/class_9793;field_52030:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_52030 Lnet/minecraft/class_9793;field_52030:Lnet/minecraft/class_9139;
      official d Lcut;d:Lyw;
    • field_52031

      private static final int field_52031
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52031 Lnet/minecraft/class_9793;field_52031:I
      intermediary field_52031 Lnet/minecraft/class_9793;field_52031:I
      official i Lcut;i:I
  • Constructor Details

  • Method Details

    • method_60750

      public int method_60750()
      Mappings:
      Namespace Name Mixin selector
      named method_60750 Lnet/minecraft/class_9793;method_60750()I
      intermediary method_60750 Lnet/minecraft/class_9793;method_60750()I
      official a Lcut;a()I
    • method_60751

      public boolean method_60751(long long2)
      Mappings:
      Namespace Name Mixin selector
      named method_60751 Lnet/minecraft/class_9793;method_60751(J)Z
      intermediary method_60751 Lnet/minecraft/class_9793;method_60751(J)Z
      official a Lcut;a(J)Z
    • method_60753

      public static Optional<RegistryEntry<class_9793>> method_60753(RegistryWrapper.WrapperLookup wrapperLookup, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      named method_60753 Lnet/minecraft/class_9793;method_60753(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Lnet/minecraft/item/ItemStack;)Ljava/util/Optional;
      intermediary method_60753 Lnet/minecraft/class_9793;method_60753(Lnet/minecraft/class_7225$class_7874;Lnet/minecraft/class_1799;)Ljava/util/Optional;
      official a Lcut;a(Ljo$a;Lcuo;)Ljava/util/Optional;
    • 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.
    • soundEvent

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

      public Text description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • lengthInSeconds

      public float lengthInSeconds()
      Returns the value of the lengthInSeconds record component.
      Returns:
      the value of the lengthInSeconds record component
    • comparatorOutput

      public int comparatorOutput()
      Returns the value of the comparatorOutput record component.
      Returns:
      the value of the comparatorOutput record component