Add docs and update changelog.

This commit is contained in:
raoulvdberge
2018-07-22 17:11:58 +02:00
parent 8c93d13da1
commit 7374ae49a8
4 changed files with 17 additions and 0 deletions

View File

@@ -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();
/**

View File

@@ -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();

View File

@@ -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);