Class CoFHCore.COFHVolumeModifier

java.lang.Object
me.desht.pneumaticcraft.common.thirdparty.cofhcore.CoFHCore.COFHVolumeModifier
All Implemented Interfaces:
ItemVolumeModifier
Enclosing class:
CoFHCore

public static class CoFHCore.COFHVolumeModifier extends Object implements ItemVolumeModifier
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addInfo(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> text)
    Add some information regarding this volume modifier for GUI display purposes; this information will be displayed in the Charging Station upgrade screen for the item in the Charging Station.
    int
    getNewVolume(net.minecraft.world.item.ItemStack stack, int oldVolume)
    Given an item stack, which is a pneumatic item, and its current volume, return a new, modified volume

    Methods inherited from class java.lang.Object

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

    • COFHVolumeModifier

      public COFHVolumeModifier()
  • Method Details

    • getNewVolume

      public int getNewVolume(net.minecraft.world.item.ItemStack stack, int oldVolume)
      Description copied from interface: ItemVolumeModifier
      Given an item stack, which is a pneumatic item, and its current volume, return a new, modified volume
      Specified by:
      getNewVolume in interface ItemVolumeModifier
      Parameters:
      stack - the item
      oldVolume - the initial volume
      Returns:
      the modified volume
    • addInfo

      public void addInfo(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> text)
      Description copied from interface: ItemVolumeModifier
      Add some information regarding this volume modifier for GUI display purposes; this information will be displayed in the Charging Station upgrade screen for the item in the Charging Station.
      Specified by:
      addInfo in interface ItemVolumeModifier
      Parameters:
      stack - the item
      text - information text to be appended to