@Deprecated
public abstract class FluidContainerRegistry
extends java.lang.Object
IFluidContainerItem
instead.
Deprecated: We will eventually be moving this ALL away from a registry and instead EVERYTHING will use IFluidContainerItem.
We need to decide a way of swapping Items/Stacks.Modifier and Type | Class and Description |
---|---|
static class |
FluidContainerRegistry.FluidContainerData
Deprecated.
Wrapper class for the registry entries.
|
static class |
FluidContainerRegistry.FluidContainerRegisterEvent
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static int |
BUCKET_VOLUME
Deprecated.
|
static ItemStack |
EMPTY_BOTTLE
Deprecated.
|
static ItemStack |
EMPTY_BUCKET
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
containsFluid(ItemStack container,
FluidStack fluid)
Deprecated.
Determines if a container holds a specific fluid.
|
static ItemStack |
drainFluidContainer(ItemStack container)
Deprecated.
Attempts to empty a full container.
|
static ItemStack |
fillFluidContainer(FluidStack fluid,
ItemStack container)
Deprecated.
Attempts to fill an empty container with a fluid.
|
static int |
getContainerCapacity(FluidStack fluid,
ItemStack container)
Deprecated.
Determines the capacity of a container.
|
static int |
getContainerCapacity(ItemStack container)
Deprecated.
Determines the capacity of a full container.
|
static FluidStack |
getFluidForFilledItem(ItemStack container)
Deprecated.
Determines the fluid type and amount inside a container.
|
static FluidContainerRegistry.FluidContainerData[] |
getRegisteredFluidContainerData()
Deprecated.
|
static boolean |
isBucket(ItemStack container)
Deprecated.
|
static boolean |
isContainer(ItemStack container)
Deprecated.
|
static boolean |
isEmptyContainer(ItemStack container)
Deprecated.
|
static boolean |
isFilledContainer(ItemStack container)
Deprecated.
|
static boolean |
registerFluidContainer(FluidContainerRegistry.FluidContainerData data)
Deprecated.
Register a new fluid containing item.
|
static boolean |
registerFluidContainer(Fluid fluid,
ItemStack filledContainer)
Deprecated.
Register a new fluid containing item that does not have an empty container.
|
static boolean |
registerFluidContainer(Fluid fluid,
ItemStack filledContainer,
ItemStack emptyContainer)
Deprecated.
Register a new fluid containing item.
|
static boolean |
registerFluidContainer(FluidStack stack,
ItemStack filledContainer)
Deprecated.
Register a new fluid containing item that does not have an empty container.
|
static boolean |
registerFluidContainer(FluidStack stack,
ItemStack filledContainer,
ItemStack emptyContainer)
Deprecated.
Register a new fluid containing item.
|
public static final int BUCKET_VOLUME
public static final ItemStack EMPTY_BUCKET
public static final ItemStack EMPTY_BOTTLE
public static boolean registerFluidContainer(FluidStack stack, ItemStack filledContainer, ItemStack emptyContainer)
stack
- FluidStack containing the type and amount of the fluid stored in the item.filledContainer
- ItemStack representing the container when it is full.emptyContainer
- ItemStack representing the container when it is empty.public static boolean registerFluidContainer(Fluid fluid, ItemStack filledContainer, ItemStack emptyContainer)
fluid
- Fluid type that is stored in the item.filledContainer
- ItemStack representing the container when it is full.emptyContainer
- ItemStack representing the container when it is empty.public static boolean registerFluidContainer(FluidStack stack, ItemStack filledContainer)
stack
- FluidStack containing the type and amount of the fluid stored in the item.filledContainer
- ItemStack representing the container when it is full.public static boolean registerFluidContainer(Fluid fluid, ItemStack filledContainer)
fluid
- Fluid type that is stored in the item.filledContainer
- ItemStack representing the container when it is full.public static boolean registerFluidContainer(FluidContainerRegistry.FluidContainerData data)
data
- See FluidContainerRegistry.FluidContainerData
.public static FluidStack getFluidForFilledItem(ItemStack container)
container
- The fluid container.public static ItemStack fillFluidContainer(FluidStack fluid, ItemStack container)
fluid
- FluidStack containing the type and amount of fluid to fill.container
- ItemStack representing the empty container.public static ItemStack drainFluidContainer(ItemStack container)
container
- ItemStack representing the full container.public static int getContainerCapacity(ItemStack container)
container
- The full container.public static int getContainerCapacity(FluidStack fluid, ItemStack container)
fluid
- FluidStack containing the type of fluid the capacity should be
determined for (ignored for full containers).container
- The container (full or empty).public static boolean containsFluid(ItemStack container, FluidStack fluid)
public static boolean isBucket(ItemStack container)
public static boolean isContainer(ItemStack container)
public static boolean isEmptyContainer(ItemStack container)
public static boolean isFilledContainer(ItemStack container)
public static FluidContainerRegistry.FluidContainerData[] getRegisteredFluidContainerData()