Interface GameRuleRegister

All Superinterfaces:
Iterable<LazyEntry<net.minecraft.world.level.GameRules.Key<?>>>
All Known Implementing Classes:
CommonGameRuleRegister, FabricGameRuleRegister

public interface GameRuleRegister extends Iterable<LazyEntry<net.minecraft.world.level.GameRules.Key<?>>>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default Iterable<net.minecraft.world.level.GameRules.Key<?>>
     
    Collection<LazyEntry<net.minecraft.world.level.GameRules.Key<?>>>
     
    default Iterator<LazyEntry<net.minecraft.world.level.GameRules.Key<?>>>
     
    void
     
    default <T extends net.minecraft.world.level.GameRules.Value<T>>
    LazyEntry<net.minecraft.world.level.GameRules.Key<T>>
    register(String modid, String name, net.minecraft.world.level.GameRules.Category category, Supplier<? extends net.minecraft.world.level.GameRules.Type<T>> type)
     
    <T extends net.minecraft.world.level.GameRules.Value<T>>
    LazyEntry<net.minecraft.world.level.GameRules.Key<T>>
    register(String name, net.minecraft.world.level.GameRules.Category category, Supplier<? extends net.minecraft.world.level.GameRules.Type<T>> type)
     

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Method Details

    • create

      static GameRuleRegister create()
    • register

      default <T extends net.minecraft.world.level.GameRules.Value<T>> LazyEntry<net.minecraft.world.level.GameRules.Key<T>> register(String modid, String name, net.minecraft.world.level.GameRules.Category category, Supplier<? extends net.minecraft.world.level.GameRules.Type<T>> type)
    • register

      <T extends net.minecraft.world.level.GameRules.Value<T>> LazyEntry<net.minecraft.world.level.GameRules.Key<T>> register(String name, net.minecraft.world.level.GameRules.Category category, Supplier<? extends net.minecraft.world.level.GameRules.Type<T>> type)
    • register

      void register()
    • getEntries

      Collection<LazyEntry<net.minecraft.world.level.GameRules.Key<?>>> getEntries()
    • iterator

      default Iterator<LazyEntry<net.minecraft.world.level.GameRules.Key<?>>> iterator()
      Specified by:
      iterator in interface Iterable<LazyEntry<net.minecraft.world.level.GameRules.Key<?>>>
    • entryIterable

      default Iterable<net.minecraft.world.level.GameRules.Key<?>> entryIterable()