Interface BooleanValueMixins


public interface BooleanValueMixins
A mixin into the GameRules.BooleanValue class which provides access to some of its internal methods.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    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 the create method of the GameRules.BooleanValue class.
  • 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 the create method of the GameRules.BooleanValue class.
      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.