Class SWeatherCommandRegistry

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

public class SWeatherCommandRegistry extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> builder)
    Internal method to inject all registered weather types into the builder
    void
    clear(net.minecraft.commands.CommandSourceStack source)
     
    void
    register(String name, BiConsumer<net.minecraft.commands.CommandSourceStack,Integer> action)
    Registers a new weather type to the /weather command

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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.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)