Class SWeatherCommandRegistry
java.lang.Object
net.lcc.sollib.api.common.weather.SWeatherCommandRegistry
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> builder) Internal method to inject all registered weather types into the buildervoidclear(net.minecraft.commands.CommandSourceStack source) voidregister(String name, BiConsumer<net.minecraft.commands.CommandSourceStack, Integer> action) Registers a new weather type to the /weather command
-
Field Details
-
INSTANCE
-
-
Method Details
-
register
public void register(String name, BiConsumer<net.minecraft.commands.CommandSourceStack, Integer> action) Registers a new weather type to the /weather command- Parameters:
name- The subcommand nameaction- A consumer taking the source and the duration (in ticks)- Since:
- 1.0.0
-
apply
@Internal public void apply(com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> builder) Internal method to inject all registered weather types into the builder- Since:
- 1.0.0
-
clear
@Internal public void clear(net.minecraft.commands.CommandSourceStack source)
-