Record Class CheckFeatureFlags
java.lang.Object
java.lang.Record
net.neoforged.neoforge.network.configuration.CheckFeatureFlags
- All Implemented Interfaces:
net.minecraft.server.network.ConfigurationTask
@Internal
public record CheckFeatureFlags(net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener listener)
extends Record
implements net.minecraft.server.network.ConfigurationTask
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.network.ConfigurationTask
net.minecraft.server.network.ConfigurationTask.Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener
The field for thelistener
record component.private static final org.slf4j.Logger
private static Set
<net.minecraft.resources.ResourceLocation> static final net.minecraft.server.network.ConfigurationTask.Type
-
Constructor Summary
ConstructorsConstructorDescriptionCheckFeatureFlags
(net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener listener) Creates an instance of aCheckFeatureFlags
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.private static Set
<net.minecraft.resources.ResourceLocation> static void
handleClientboundPayload
(FeatureFlagDataPayload payload, IPayloadContext context) static void
handleServerboundPayload
(FeatureFlagAcknowledgePayload 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 -
moddedFlags
-
-
Constructor Details
-
CheckFeatureFlags
public CheckFeatureFlags(net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener listener) Creates an instance of aCheckFeatureFlags
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(FeatureFlagDataPayload payload, IPayloadContext context) -
handleServerboundPayload
public static void handleServerboundPayload(FeatureFlagAcknowledgePayload payload, IPayloadContext context) -
handleVanillaServerConnection
public static boolean handleVanillaServerConnection(net.minecraft.network.protocol.configuration.ClientConfigurationPacketListener listener) -
getModdedFeatureFlags
-
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
-