Add docs and update changelog.
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
### 1.6.1
|
### 1.6.1
|
||||||
- Added fluid autocrafting (raoulvdberge)
|
- Added fluid autocrafting (raoulvdberge)
|
||||||
|
- Updated Russian translation (kellixon)
|
||||||
|
|
||||||
### 1.6
|
### 1.6
|
||||||
NOTE: Worlds that used Refined Storage 1.5.x are fully compatible with Refined Storage 1.6.x and are getting converted upon loading the world. It is however not possible to revert back to Refined Storage 1.5.x when a world has already been converted to Refined Storage 1.6.x.
|
NOTE: Worlds that used Refined Storage 1.5.x are fully compatible with Refined Storage 1.6.x and are getting converted upon loading the world. It is however not possible to revert back to Refined Storage 1.5.x when a world has already been converted to Refined Storage 1.6.x.
|
||||||
|
|||||||
@@ -62,8 +62,14 @@ public interface ICraftingPattern {
|
|||||||
*/
|
*/
|
||||||
NonNullList<ItemStack> getByproducts(NonNullList<ItemStack> took);
|
NonNullList<ItemStack> getByproducts(NonNullList<ItemStack> took);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the fluid inputs
|
||||||
|
*/
|
||||||
NonNullList<FluidStack> getFluidInputs();
|
NonNullList<FluidStack> getFluidInputs();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the fluid outputs
|
||||||
|
*/
|
||||||
NonNullList<FluidStack> getFluidOutputs();
|
NonNullList<FluidStack> getFluidOutputs();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -26,6 +26,9 @@ public interface ICraftingPatternContainer {
|
|||||||
@Nullable
|
@Nullable
|
||||||
IItemHandler getConnectedInventory();
|
IItemHandler getConnectedInventory();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the fluid inventory that this container is connected to, or null if no fluid inventory is present
|
||||||
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
IFluidHandler getConnectedFluidInventory();
|
IFluidHandler getConnectedFluidInventory();
|
||||||
|
|
||||||
|
|||||||
@@ -167,6 +167,13 @@ public interface INetwork {
|
|||||||
@Nullable
|
@Nullable
|
||||||
FluidStack insertFluid(@Nonnull FluidStack stack, int size, Action action);
|
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) {
|
default FluidStack insertFluidTracked(@Nonnull FluidStack stack, int size) {
|
||||||
FluidStack remainder = insertFluid(stack, size, Action.PERFORM);
|
FluidStack remainder = insertFluid(stack, size, Action.PERFORM);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user