Interface IntegerValueMixins


public interface IntegerValueMixins
A mixin into the GameRules.IntegerValue 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.IntegerValue>
    invokeCreate(int initialValue, BiConsumer<net.minecraft.server.MinecraftServer,net.minecraft.world.level.GameRules.IntegerValue> changeListener)
    Invoke the create method of the GameRules.IntegerValue class.
  • Method Details

    • invokeCreate

      static net.minecraft.world.level.GameRules.Type<net.minecraft.world.level.GameRules.IntegerValue> invokeCreate(int initialValue, BiConsumer<net.minecraft.server.MinecraftServer,net.minecraft.world.level.GameRules.IntegerValue> changeListener)
      Invoke the create method of the GameRules.IntegerValue 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.