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 Summary
Modifier and TypeFieldDescriptionprivate final int
The field for thecomparatorOutput
record component.private final Text
The field for thedescription
record component.static final com.mojang.serialization.Codec
<class_9793> static final PacketCodec
<RegistryByteBuf, class_9793> static final com.mojang.serialization.Codec
<RegistryEntry<class_9793>> static final PacketCodec
<RegistryByteBuf, RegistryEntry<class_9793>> private static final int
private final float
The field for thelengthInSeconds
record component.private final RegistryEntry
<SoundEvent> The field for thesoundEvent
record component. -
Constructor Summary
ConstructorDescriptionclass_9793
(RegistryEntry<SoundEvent> registryEntry, Text text, float float2, int int2) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thecomparatorOutput
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.float
Returns the value of thelengthInSeconds
record component.int
boolean
method_60751
(long long2) static Optional
<RegistryEntry<class_9793>> method_60753
(RegistryWrapper.WrapperLookup wrapperLookup, ItemStack itemStack) Returns the value of thesoundEvent
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
soundEvent
The field for thesoundEvent
record component. -
description
The field for thedescription
record component. -
lengthInSeconds
private final float lengthInSecondsThe field for thelengthInSeconds
record component. -
comparatorOutput
private final int comparatorOutputThe field for thecomparatorOutput
record component. -
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
- 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
- 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
- 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
-
class_9793
-
-
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
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 '=='. -
soundEvent
Returns the value of thesoundEvent
record component.- Returns:
- the value of the
soundEvent
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
lengthInSeconds
public float lengthInSeconds()Returns the value of thelengthInSeconds
record component.- Returns:
- the value of the
lengthInSeconds
record component
-
comparatorOutput
public int comparatorOutput()Returns the value of thecomparatorOutput
record component.- Returns:
- the value of the
comparatorOutput
record component
-