Class SimpleConfigurationTask
java.lang.Object
net.minecraftforge.network.config.SimpleConfigurationTask
- All Implemented Interfaces:
ConfigurationTask
- Direct Known Subclasses:
SyncConfigTask
A simple ConfigurationTask that will run a block of code and then mark itself as finished.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.network.ConfigurationTask
ConfigurationTask.Type
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Consumer<ConfigurationTaskContext>
private final ConfigurationTask.Type
-
Constructor Summary
-
Method Summary
-
Field Details
-
type
-
task
-
-
Constructor Details
-
SimpleConfigurationTask
public SimpleConfigurationTask(ConfigurationTask.Type type, Consumer<ConfigurationTaskContext> task) -
SimpleConfigurationTask
-
-
Method Details
-
start
- Specified by:
start
in interfaceConfigurationTask
-
start
- Specified by:
start
in interfaceConfigurationTask
-
type
- Specified by:
type
in interfaceConfigurationTask
-