Class ValueNotifierHelpers

java.lang.Object
org.cyclops.cyclopscore.helper.ValueNotifierHelpers

public class ValueNotifierHelpers extends Object
Helper methods for IValueNotifiable and IValueNotifier.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    getValueBoolean(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId)
    get the boolean value
    static int
    getValueInt(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId)
    get the int value
    static net.minecraft.nbt.Tag
    getValueNbt(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId)
    get the NBT value
    static String
    getValueString(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId)
    Get the string value
    static net.minecraft.network.chat.MutableComponent
    getValueTextComponent(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId)
    Get the MutableComponent value
    static List<net.minecraft.network.chat.MutableComponent>
    getValueTextComponentList(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId)
    Get the MutableComponent list value
    static void
    setValue(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId, boolean value)
    Set the boolean value
    static void
    setValue(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId, int value)
    Set the int value
    static void
    setValue(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId, String value)
    Set the string value
    static void
    setValue(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId, List<net.minecraft.network.chat.MutableComponent> values)
    Set the MutableComponent list value
    static void
    setValue(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId, net.minecraft.nbt.Tag value)
    Set the NBT value
    static void
    setValue(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId, net.minecraft.network.chat.MutableComponent value)
    Set the MutableComponent value

    Methods inherited from class java.lang.Object

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

    • KEY

      public static String KEY
  • Constructor Details

    • ValueNotifierHelpers

      public ValueNotifierHelpers()
  • Method Details

    • setValue

      public static void setValue(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId, net.minecraft.nbt.Tag value)
      Set the NBT value
      Parameters:
      notifier - The notifier instance
      valueId - The value id
      value - The value
    • setValue

      public static void setValue(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId, int value)
      Set the int value
      Parameters:
      notifier - The notifier instance
      valueId - The value id
      value - The value
    • setValue

      public static void setValue(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId, boolean value)
      Set the boolean value
      Parameters:
      notifier - The notifier instance
      valueId - The value id
      value - The value
    • setValue

      public static void setValue(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId, String value)
      Set the string value
      Parameters:
      notifier - The notifier instance
      valueId - The value id
      value - The value
    • setValue

      public static void setValue(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId, net.minecraft.network.chat.MutableComponent value)
      Set the MutableComponent value
      Parameters:
      notifier - The notifier instance
      valueId - The value id
      value - The value
    • setValue

      public static void setValue(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId, List<net.minecraft.network.chat.MutableComponent> values)
      Set the MutableComponent list value
      Parameters:
      notifier - The notifier instance
      valueId - The value id
      values - The values
    • getValueNbt

      @Nullable public static net.minecraft.nbt.Tag getValueNbt(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId)
      get the NBT value
      Parameters:
      notifier - The notifier instance
      valueId - The value id
      Returns:
      The value
    • getValueInt

      public static int getValueInt(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId)
      get the int value
      Parameters:
      notifier - The notifier instance
      valueId - The value id
      Returns:
      The value
    • getValueBoolean

      public static boolean getValueBoolean(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId)
      get the boolean value
      Parameters:
      notifier - The notifier instance
      valueId - The value id
      Returns:
      The value
    • getValueString

      @Nullable public static String getValueString(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId)
      Get the string value
      Parameters:
      notifier - The notifier instance
      valueId - The value id
      Returns:
      The value
    • getValueTextComponent

      @Nullable public static net.minecraft.network.chat.MutableComponent getValueTextComponent(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId)
      Get the MutableComponent value
      Parameters:
      notifier - The notifier instance
      valueId - The value id
      Returns:
      The value
    • getValueTextComponentList

      @Nullable public static List<net.minecraft.network.chat.MutableComponent> getValueTextComponentList(org.cyclops.cyclopscore.inventory.IValueNotifier notifier, int valueId)
      Get the MutableComponent list value
      Parameters:
      notifier - The notifier instance
      valueId - The value id
      Returns:
      The value