Record Class CheckFeatureFlags
java.lang.Object
java.lang.Record
net.neoforged.neoforge.network.configuration.CheckFeatureFlags
- All Implemented Interfaces:
ConfigurationTask
@Internal
public record CheckFeatureFlags(ServerConfigurationPacketListener listener)
extends Record
implements ConfigurationTask
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.network.ConfigurationTask
ConfigurationTask.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerConfigurationPacketListenerThe field for thelistenerrecord component.private static final org.slf4j.Loggerprivate static Set<ResourceLocation> static final ConfigurationTask.Type -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aCheckFeatureFlagsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.private static Set<ResourceLocation> static voidhandleClientboundPayload(FeatureFlagDataPayload payload, IPayloadContext context) static voidhandleServerboundPayload(FeatureFlagAcknowledgePayload payload, IPayloadContext context) static booleanfinal inthashCode()Returns a hash code value for this object.listener()Returns the value of thelistenerrecord component.voidfinal StringtoString()Returns a string representation of this record class.type()
-
Field Details
-
listener
The field for thelistenerrecord component. -
TYPE
-
LOGGER
private static final org.slf4j.Logger LOGGER -
moddedFlags
-
-
Constructor Details
-
CheckFeatureFlags
Creates an instance of aCheckFeatureFlagsrecord class.- Parameters:
listener- the value for thelistenerrecord component
-
-
Method Details
-
start
- Specified by:
startin interfaceConfigurationTask
-
handleClientboundPayload
public static void handleClientboundPayload(FeatureFlagDataPayload payload, IPayloadContext context) -
handleServerboundPayload
public static void handleServerboundPayload(FeatureFlagAcknowledgePayload payload, IPayloadContext context) -
handleVanillaServerConnection
-
getModdedFeatureFlags
-
type
- Specified by:
typein interfaceConfigurationTask
-
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
Returns the value of thelistenerrecord component.- Returns:
- the value of the
listenerrecord component
-