Class GameRuleFactoryImpl
java.lang.Object
dev.architectury.registry.level.forge.GameRuleFactoryImpl
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
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)
-