Class CloudGameRuleRegistry

java.lang.Object
org.cloudburstmc.server.registry.CloudGameRuleRegistry
All Implemented Interfaces:
org.cloudburstmc.api.registry.GameRuleRegistry, org.cloudburstmc.api.registry.Registry

public class CloudGameRuleRegistry extends Object implements org.cloudburstmc.api.registry.GameRuleRegistry, org.cloudburstmc.api.registry.Registry
  • Method Details

    • get

      public static CloudGameRuleRegistry get()
    • register

      public <T extends Comparable<T>> void register(org.cloudburstmc.api.level.gamerule.GameRule<T> gameRule)
      Specified by:
      register in interface org.cloudburstmc.api.registry.GameRuleRegistry
    • fromString

      @Nullable public org.cloudburstmc.api.level.gamerule.GameRule<? extends Comparable<?>> fromString(String name)
      Specified by:
      fromString in interface org.cloudburstmc.api.registry.GameRuleRegistry
    • getDefaultRules

      @Nonnull public org.cloudburstmc.api.level.gamerule.GameRuleMap getDefaultRules()
    • getRules

      @Nonnull public List<org.cloudburstmc.api.level.gamerule.GameRule<?>> getRules()
      Specified by:
      getRules in interface org.cloudburstmc.api.registry.GameRuleRegistry
    • getRuleNames

      @Nonnull public Set<String> getRuleNames()
      Specified by:
      getRuleNames in interface org.cloudburstmc.api.registry.GameRuleRegistry
    • close

      public void close()
      Specified by:
      close in interface org.cloudburstmc.api.registry.Registry