Class SWeatherCommandRegistry

java.lang.Object
net.lcc.sollib.api.common.weather.SWeatherCommandRegistry

public class SWeatherCommandRegistry extends Object
  • Field Details

  • Constructor Details

    • SWeatherCommandRegistry

      public SWeatherCommandRegistry()
  • 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 name
      action - A consumer taking the source and the duration (in ticks)
      Since:
      1.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
    • clear

      @Internal public void clear(net.minecraft.commands.CommandSourceStack source)