YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraftforge.liquids.LiquidContainerRegistry Class Reference

Static Public Member Functions

static void registerLiquid (LiquidContainerData data)
 
static LiquidStack getLiquidForFilledItem (ItemStack filledContainer)
 
static ItemStack fillLiquidContainer (LiquidStack liquid, ItemStack emptyContainer)
 
static boolean containsLiquid (ItemStack filledContainer, LiquidStack liquid)
 
static boolean isBucket (ItemStack container)
 
static boolean isContainer (ItemStack container)
 
static boolean isEmptyContainer (ItemStack emptyContainer)
 
static boolean isFilledContainer (ItemStack filledContainer)
 
static boolean isLiquid (ItemStack item)
 
static LiquidContainerData[] getRegisteredLiquidContainerData ()
 

Static Public Attributes

static final int BUCKET_VOLUME = 1000
 
static final ItemStack EMPTY_BUCKET = new ItemStack(Item.bucketEmpty)
 

Member Function Documentation

static boolean net.minecraftforge.liquids.LiquidContainerRegistry.containsLiquid ( ItemStack  filledContainer,
LiquidStack  liquid 
)
static
static ItemStack net.minecraftforge.liquids.LiquidContainerRegistry.fillLiquidContainer ( LiquidStack  liquid,
ItemStack  emptyContainer 
)
static
static LiquidStack net.minecraftforge.liquids.LiquidContainerRegistry.getLiquidForFilledItem ( ItemStack  filledContainer)
static
static LiquidContainerData [] net.minecraftforge.liquids.LiquidContainerRegistry.getRegisteredLiquidContainerData ( )
static
static boolean net.minecraftforge.liquids.LiquidContainerRegistry.isBucket ( ItemStack  container)
static
static boolean net.minecraftforge.liquids.LiquidContainerRegistry.isContainer ( ItemStack  container)
static
static boolean net.minecraftforge.liquids.LiquidContainerRegistry.isEmptyContainer ( ItemStack  emptyContainer)
static
static boolean net.minecraftforge.liquids.LiquidContainerRegistry.isFilledContainer ( ItemStack  filledContainer)
static
static boolean net.minecraftforge.liquids.LiquidContainerRegistry.isLiquid ( ItemStack  item)
static
static void net.minecraftforge.liquids.LiquidContainerRegistry.registerLiquid ( LiquidContainerData  data)
static

To register a container with a non-bucket size, the LiquidContainerData entry simply needs to use a size other than LiquidManager.BUCKET_VOLUME

Member Data Documentation

final int net.minecraftforge.liquids.LiquidContainerRegistry.BUCKET_VOLUME = 1000
static
final ItemStack net.minecraftforge.liquids.LiquidContainerRegistry.EMPTY_BUCKET = new ItemStack(Item.bucketEmpty)
static

The documentation for this class was generated from the following file: