Record Class SyncMerchantTradesConfigurationTask
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.network.task.SyncMerchantTradesConfigurationTask
- All Implemented Interfaces:
net.minecraft.server.network.ConfigurationTask,net.neoforged.neoforge.network.configuration.ICustomConfigurationTask
public record SyncMerchantTradesConfigurationTask(net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener listener)
extends Record
implements net.neoforged.neoforge.network.configuration.ICustomConfigurationTask
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.network.ConfigurationTask
net.minecraft.server.network.ConfigurationTask.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.server.network.ConfigurationTask.Type -
Constructor Summary
ConstructorsConstructorDescriptionSyncMerchantTradesConfigurationTask(net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener listener) Creates an instance of aSyncMerchantTradesConfigurationTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.network.protocol.configuration.ServerConfigurationPacketListenerlistener()Returns the value of thelistenerrecord component.voidfinal StringtoString()Returns a string representation of this record class.net.minecraft.server.network.ConfigurationTask.Typetype()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.network.configuration.ICustomConfigurationTask
start
-
Field Details
-
TYPE
public static final net.minecraft.server.network.ConfigurationTask.Type TYPE
-
-
Constructor Details
-
SyncMerchantTradesConfigurationTask
public SyncMerchantTradesConfigurationTask(net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener listener) Creates an instance of aSyncMerchantTradesConfigurationTaskrecord class.- Parameters:
listener- the value for thelistenerrecord component
-
-
Method Details
-
run
- Specified by:
runin interfacenet.neoforged.neoforge.network.configuration.ICustomConfigurationTask
-
type
public net.minecraft.server.network.ConfigurationTask.Type type()- Specified by:
typein interfacenet.minecraft.server.network.ConfigurationTask
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
listener
public net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener listener()Returns the value of thelistenerrecord component.- Returns:
- the value of the
listenerrecord component
-