Add docs and update changelog.
This commit is contained in:
@@ -62,8 +62,14 @@ public interface ICraftingPattern {
|
||||
*/
|
||||
NonNullList<ItemStack> getByproducts(NonNullList<ItemStack> took);
|
||||
|
||||
/**
|
||||
* @return the fluid inputs
|
||||
*/
|
||||
NonNullList<FluidStack> getFluidInputs();
|
||||
|
||||
/**
|
||||
* @return the fluid outputs
|
||||
*/
|
||||
NonNullList<FluidStack> getFluidOutputs();
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,6 +26,9 @@ public interface ICraftingPatternContainer {
|
||||
@Nullable
|
||||
IItemHandler getConnectedInventory();
|
||||
|
||||
/**
|
||||
* @return the fluid inventory that this container is connected to, or null if no fluid inventory is present
|
||||
*/
|
||||
@Nullable
|
||||
IFluidHandler getConnectedFluidInventory();
|
||||
|
||||
|
||||
@@ -167,6 +167,13 @@ public interface INetwork {
|
||||
@Nullable
|
||||
FluidStack insertFluid(@Nonnull FluidStack stack, int size, Action action);
|
||||
|
||||
/**
|
||||
* Inserts a fluid and notifies the crafting manager of the incoming fluid.
|
||||
*
|
||||
* @param stack the stack prototype to insert, do NOT modify
|
||||
* @param size the amount of that prototype that has to be inserted
|
||||
* @return null if the insert was successful, or a stack with the remainder
|
||||
*/
|
||||
default FluidStack insertFluidTracked(@Nonnull FluidStack stack, int size) {
|
||||
FluidStack remainder = insertFluid(stack, size, Action.PERFORM);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user