Record Class CheckExtensibleEnums
java.lang.Object
java.lang.Record
net.neoforged.neoforge.network.configuration.CheckExtensibleEnums
- All Implemented Interfaces:
net.minecraft.server.network.ConfigurationTask
@Internal
public record CheckExtensibleEnums(net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener listener)
extends Record
implements net.minecraft.server.network.ConfigurationTask
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
private static enum
Nested classes/interfaces inherited from interface net.minecraft.server.network.ConfigurationTask
net.minecraft.server.network.ConfigurationTask.Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Map
<String, CheckExtensibleEnums.EnumEntry> private final net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener
The field for thelistener
record component.private static final org.slf4j.Logger
private static final org.objectweb.asm.Type
static final net.minecraft.server.network.ConfigurationTask.Type
-
Constructor Summary
ConstructorsConstructorDescriptionCheckExtensibleEnums
(net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener listener) Creates an instance of aCheckExtensibleEnums
record class. -
Method Summary
Modifier and TypeMethodDescriptionprivate static Class
<?> classForName
(String name) final boolean
Indicates whether some other object is "equal to" this one.private static Map
<String, CheckExtensibleEnums.EnumEntry> private static net.neoforged.fml.common.asm.enumextension.ExtensionInfo
getEnumExtensionInfo
(Class<? extends Enum<?>> enumClass) static void
handleClientboundPayload
(ExtensibleEnumDataPayload payload, IPayloadContext context) static void
handleServerboundPayload
(ExtensibleEnumAcknowledgePayload payload, IPayloadContext context) static boolean
handleVanillaServerConnection
(net.minecraft.network.protocol.configuration.ClientConfigurationPacketListener listener) final int
hashCode()
Returns a hash code value for this object.net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener
listener()
Returns the value of thelistener
record component.void
final String
toString()
Returns a string representation of this record class.net.minecraft.server.network.ConfigurationTask.Type
type()
-
Field Details
-
listener
private final net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener listenerThe field for thelistener
record component. -
TYPE
public static final net.minecraft.server.network.ConfigurationTask.Type TYPE -
LOGGER
private static final org.slf4j.Logger LOGGER -
NETWORKED_ENUM
private static final org.objectweb.asm.Type NETWORKED_ENUM -
NETWORKED_EXTENSIBLE_ENUM_CLASSES
-
enumEntries
-
-
Constructor Details
-
CheckExtensibleEnums
public CheckExtensibleEnums(net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener listener) Creates an instance of aCheckExtensibleEnums
record class.- Parameters:
listener
- the value for thelistener
record component
-
-
Method Details
-
start
- Specified by:
start
in interfacenet.minecraft.server.network.ConfigurationTask
-
handleClientboundPayload
public static void handleClientboundPayload(ExtensibleEnumDataPayload payload, IPayloadContext context) -
handleServerboundPayload
public static void handleServerboundPayload(ExtensibleEnumAcknowledgePayload payload, IPayloadContext context) -
handleVanillaServerConnection
public static boolean handleVanillaServerConnection(net.minecraft.network.protocol.configuration.ClientConfigurationPacketListener listener) -
getEnumEntries
-
getEnumExtensionInfo
-
collectNetworkedEnumClasses
-
classForName
-
type
public net.minecraft.server.network.ConfigurationTask.Type type()- Specified by:
type
in 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 thelistener
record component.- Returns:
- the value of the
listener
record component
-