Class GameRuleFactoryImpl

java.lang.Object
dev.architectury.registry.level.forge.GameRuleFactoryImpl

public class GameRuleFactoryImpl extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.level.GameRules.Type<net.minecraft.world.level.GameRules.BooleanValue>
    createBooleanRule(boolean defaultValue)
     
    static net.minecraft.world.level.GameRules.Type<net.minecraft.world.level.GameRules.BooleanValue>
    createBooleanRule(boolean defaultValue, BiConsumer<net.minecraft.server.MinecraftServer,net.minecraft.world.level.GameRules.BooleanValue> changedCallback)
     
    static net.minecraft.world.level.GameRules.Type<net.minecraft.world.level.GameRules.IntegerValue>
    createIntRule(int defaultValue)
     
    static net.minecraft.world.level.GameRules.Type<net.minecraft.world.level.GameRules.IntegerValue>
    createIntRule(int defaultValue, BiConsumer<net.minecraft.server.MinecraftServer,net.minecraft.world.level.GameRules.IntegerValue> changedCallback)
     

    Methods inherited from class java.lang.Object

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

    • createBooleanRule

      public static net.minecraft.world.level.GameRules.Type<net.minecraft.world.level.GameRules.BooleanValue> createBooleanRule(boolean defaultValue)
    • createBooleanRule

      public static net.minecraft.world.level.GameRules.Type<net.minecraft.world.level.GameRules.BooleanValue> createBooleanRule(boolean defaultValue, BiConsumer<net.minecraft.server.MinecraftServer,net.minecraft.world.level.GameRules.BooleanValue> changedCallback)
    • createIntRule

      public static net.minecraft.world.level.GameRules.Type<net.minecraft.world.level.GameRules.IntegerValue> createIntRule(int defaultValue)
    • createIntRule

      public static net.minecraft.world.level.GameRules.Type<net.minecraft.world.level.GameRules.IntegerValue> createIntRule(int defaultValue, BiConsumer<net.minecraft.server.MinecraftServer,net.minecraft.world.level.GameRules.IntegerValue> changedCallback)