Interface BooleanValueMixins
public interface BooleanValueMixins
A mixin into the
GameRules.BooleanValue
class which provides access to some of its internal methods.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic net.minecraft.world.level.GameRules.Type<net.minecraft.world.level.GameRules.BooleanValue>invokeCreate(boolean initialValue, BiConsumer<net.minecraft.server.MinecraftServer, net.minecraft.world.level.GameRules.BooleanValue> changeListener) Invoke thecreatemethod of theGameRules.BooleanValueclass.
-
Method Details
-
invokeCreate
static net.minecraft.world.level.GameRules.Type<net.minecraft.world.level.GameRules.BooleanValue> invokeCreate(boolean initialValue, BiConsumer<net.minecraft.server.MinecraftServer, net.minecraft.world.level.GameRules.BooleanValue> changeListener) Invoke thecreatemethod of theGameRules.BooleanValueclass.- Parameters:
initialValue- The initial value to create the new gamerule with.changeListener- The callback to trigger when the gamerule changes.- Returns:
- The newly created gamerule.
-