Class CoFHCore.COFHVolumeModifier
java.lang.Object
me.desht.pneumaticcraft.common.thirdparty.cofhcore.CoFHCore.COFHVolumeModifier
- All Implemented Interfaces:
ItemVolumeModifier
- Enclosing class:
- CoFHCore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd 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.intgetNewVolume(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
-
Constructor Details
-
COFHVolumeModifier
public COFHVolumeModifier()
-
-
Method Details
-
getNewVolume
public int getNewVolume(net.minecraft.world.item.ItemStack stack, int oldVolume) Description copied from interface:ItemVolumeModifierGiven an item stack, which is a pneumatic item, and its current volume, return a new, modified volume- Specified by:
getNewVolumein interfaceItemVolumeModifier- Parameters:
stack- the itemoldVolume- 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:ItemVolumeModifierAdd 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:
addInfoin interfaceItemVolumeModifier- Parameters:
stack- the itemtext- information text to be appended to
-