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_9793intermediary net/minecraft/class_9793official cutnamed soundEventintermediary comp_2835official enamed descriptionintermediary comp_2836official fnamed lengthInSecondsintermediary comp_2837official gnamed comparatorOutputintermediary comp_2838official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecomparatorOutputrecord component.private final TextThe field for thedescriptionrecord 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 intprivate final floatThe field for thelengthInSecondsrecord component.private final RegistryEntry<SoundEvent> The field for thesoundEventrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_9793(RegistryEntry<SoundEvent> registryEntry, Text text, float float2, int int2) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecomparatorOutputrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thelengthInSecondsrecord component.intbooleanmethod_60751(long long2) static Optional<RegistryEntry<class_9793>> method_60753(RegistryWrapper.WrapperLookup wrapperLookup, ItemStack itemStack) Returns the value of thesoundEventrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
soundEvent
The field for thesoundEventrecord component. -
description
The field for thedescriptionrecord component. -
lengthInSeconds
private final float lengthInSecondsThe field for thelengthInSecondsrecord component. -
comparatorOutput
private final int comparatorOutputThe field for thecomparatorOutputrecord component. -
field_52027
- Mappings:
Namespace Name Mixin selector named field_52027Lnet/minecraft/class_9793;field_52027:Lcom/mojang/serialization/Codec;intermediary field_52027Lnet/minecraft/class_9793;field_52027:Lcom/mojang/serialization/Codec;official aLcut;a:Lcom/mojang/serialization/Codec;
-
field_52028
- Mappings:
Namespace Name Mixin selector named field_52028Lnet/minecraft/class_9793;field_52028:Lnet/minecraft/network/codec/PacketCodec;intermediary field_52028Lnet/minecraft/class_9793;field_52028:Lnet/minecraft/class_9139;official bLcut;b:Lyw;
-
field_52029
- Mappings:
Namespace Name Mixin selector named field_52029Lnet/minecraft/class_9793;field_52029:Lcom/mojang/serialization/Codec;intermediary field_52029Lnet/minecraft/class_9793;field_52029:Lcom/mojang/serialization/Codec;official cLcut;c:Lcom/mojang/serialization/Codec;
-
field_52030
- Mappings:
Namespace Name Mixin selector named field_52030Lnet/minecraft/class_9793;field_52030:Lnet/minecraft/network/codec/PacketCodec;intermediary field_52030Lnet/minecraft/class_9793;field_52030:Lnet/minecraft/class_9139;official dLcut;d:Lyw;
-
field_52031
private static final int field_52031- See Also:
- Mappings:
Namespace Name Mixin selector named field_52031Lnet/minecraft/class_9793;field_52031:Iintermediary field_52031Lnet/minecraft/class_9793;field_52031:Iofficial iLcut;i:I
-
-
Constructor Details
-
class_9793
-
-
Method Details
-
method_60750
public int method_60750()- Mappings:
Namespace Name Mixin selector named method_60750Lnet/minecraft/class_9793;method_60750()Iintermediary method_60750Lnet/minecraft/class_9793;method_60750()Iofficial aLcut;a()I
-
method_60751
public boolean method_60751(long long2) - Mappings:
Namespace Name Mixin selector named method_60751Lnet/minecraft/class_9793;method_60751(J)Zintermediary method_60751Lnet/minecraft/class_9793;method_60751(J)Zofficial aLcut;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_60753Lnet/minecraft/class_9793;method_60753(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Lnet/minecraft/item/ItemStack;)Ljava/util/Optional;intermediary method_60753Lnet/minecraft/class_9793;method_60753(Lnet/minecraft/class_7225$class_7874;Lnet/minecraft/class_1799;)Ljava/util/Optional;official aLcut;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 thesoundEventrecord component.- Returns:
- the value of the
soundEventrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
lengthInSeconds
public float lengthInSeconds()Returns the value of thelengthInSecondsrecord component.- Returns:
- the value of the
lengthInSecondsrecord component
-
comparatorOutput
public int comparatorOutput()Returns the value of thecomparatorOutputrecord component.- Returns:
- the value of the
comparatorOutputrecord component
-