Fix comments

This commit is contained in:
Raoul Van den Berge
2016-06-20 13:21:45 +02:00
parent 336921d589
commit 6464166ac5
4 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ package com.jaquadro.minecraft.storagedrawers.api.registry;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
/** /**
* Ingredient handlers are used to getOrLoad ItemStacks from ingredients in custom IRecipe implementations. If you have * Ingredient handlers are used to get ItemStacks from ingredients in custom IRecipe implementations. If you have
* registered an IRecipeHandler that returns lists of objects that aren't ItemStacks, then you will need to * registered an IRecipeHandler that returns lists of objects that aren't ItemStacks, then you will need to
* implement an ingredient handler for those objects. * implement an ingredient handler for those objects.
*/ */

View File

@@ -12,7 +12,7 @@ public interface IRecipeHandler {
/** /**
* Get the recipe ingredient list as an array of objects (usually used for shaped recipes). * Get the recipe ingredient list as an array of objects (usually used for shaped recipes).
* If your array does not contain ItemStack objects, you will need to register an {@link IIngredientHandler} to * If your array does not contain ItemStack objects, you will need to register an {@link IIngredientHandler} to
* getOrLoad an ItemStack from them. * get an ItemStack from them.
* <p> * <p>
* If you would prefer to return a List, return null in this method and implement {@link #getInputAsList}. * If you would prefer to return a List, return null in this method and implement {@link #getInputAsList}.
* *
@@ -24,7 +24,7 @@ public interface IRecipeHandler {
/** /**
* Get the recipe ingredient list as a list of objects (usually used for shapeless recipes). * Get the recipe ingredient list as a list of objects (usually used for shapeless recipes).
* If your list does not contain ItemStack objects, you will need to register an {@link IIngredientHandler} to * If your list does not contain ItemStack objects, you will need to register an {@link IIngredientHandler} to
* getOrLoad an ItemStack from them. * get an ItemStack from them.
* <p> * <p>
* If you would prefer to return an array, return null in this method and implement {@link #getInputAsArray}. * If you would prefer to return an array, return null in this method and implement {@link #getInputAsArray}.
* *

View File

@@ -6,7 +6,7 @@ import net.minecraft.world.World;
/** /**
* Represents a slave or machine in the storage network. * Represents a slave or machine in the storage network.
* *
* Make sure you implement {@link Object#hashCode()} or the slave will not getOrLoad properly removed or added by the storage master. * Make sure you implement {@link Object#hashCode()} or the slave will not get properly removed or added by the storage master.
* Typically the hash code from {@link INetworkSlave#getPosition()} is used. * Typically the hash code from {@link INetworkSlave#getPosition()} is used.
*/ */
public interface INetworkSlave { public interface INetworkSlave {
@@ -65,7 +65,7 @@ public interface INetworkSlave {
boolean isConnected(); boolean isConnected();
/** /**
* @return If {@link INetworkSlave#canUpdate()} can getOrLoad called. Typically checks for connection and redstone mode. * @return If {@link INetworkSlave#canUpdate()} can get called. Typically checks for connection and redstone mode.
*/ */
boolean canUpdate(); boolean canUpdate();

View File

@@ -450,7 +450,7 @@ public class NetworkMaster {
if (RefinedStorageUtils.compareStackNoQuantity(stack, otherStack)) { if (RefinedStorageUtils.compareStackNoQuantity(stack, otherStack)) {
// We copy here so we don't modify the quantity of the ItemStack IStorage uses. // We copy here so we don't modify the quantity of the ItemStack IStorage uses.
// We re-getOrLoad the ItemStack because the stack may change from a previous iteration in this loop // We re-get the ItemStack because the stack may change from a previous iteration in this loop
ItemStack newStack = items.get(i).copy(); ItemStack newStack = items.get(i).copy();
newStack.stackSize += otherStack.stackSize; newStack.stackSize += otherStack.stackSize;
items.set(i, newStack); items.set(i, newStack);