Fix docs.

This commit is contained in:
raoulvdberge
2018-07-30 12:26:39 +02:00
parent 39858c1a10
commit 80e5ef4070
4 changed files with 4 additions and 9 deletions

View File

@@ -20,7 +20,7 @@ public interface ICraftingMonitorElementRegistry {
/** /**
* Returns a factory from the registry. * Returns a factory from the registry.
* *
* @param id the id, as specified in {@link ICraftingMonitorElement#getTaskId()} * @param id the id, as specified in {@link ICraftingMonitorElement#getId()}
* @return the factory, or null if no factory was found * @return the factory, or null if no factory was found
*/ */
@Nullable @Nullable

View File

@@ -7,7 +7,7 @@ import com.raoulvdberge.refinedstorage.api.autocrafting.preview.ICraftingPreview
* This {@link FunctionalInterface} is used to define a draw/render function. * This {@link FunctionalInterface} is used to define a draw/render function.
* This function use x and y coords and the element to draw. * This function use x and y coords and the element to draw.
* Usually packaged in a {@link IElementDrawers}. * Usually packaged in a {@link IElementDrawers}.
* Used in {@link ICraftingPreviewElement#draw(int, int, IElementDrawers)} and {@link ICraftingMonitorElement#draw(int, int, IElementDrawers)}. * Used in {@link ICraftingPreviewElement#draw(int, int, IElementDrawers)} and {@link ICraftingMonitorElement#draw(int, int, IElementDrawers, boolean)}.
* *
* @param <T> the element to draw, usually {@link String}, {@link net.minecraft.item.ItemStack} or {@link net.minecraftforge.fluids.FluidStack} * @param <T> the element to draw, usually {@link String}, {@link net.minecraft.item.ItemStack} or {@link net.minecraftforge.fluids.FluidStack}
*/ */

View File

@@ -25,7 +25,7 @@ public interface IStorageCache<T> {
* Adds a stack to the cache. * Adds a stack to the cache.
* <p> * <p>
* Note that this doesn't modify any of the connected storages, but just modifies the cache. * Note that this doesn't modify any of the connected storages, but just modifies the cache.
* Use {@link IStorage#insert(T, int, boolean)} to add a stack to an actual storage. * Use {@link IStorage#insert(T, int, com.raoulvdberge.refinedstorage.api.util.Action)} to add a stack to an actual storage.
* <p> * <p>
* Will merge it with another stack if it already exists. * Will merge it with another stack if it already exists.
* *
@@ -40,7 +40,7 @@ public interface IStorageCache<T> {
* Removes a stack from the cache. * Removes a stack from the cache.
* <p> * <p>
* Note that this doesn't modify any of the connected storages, but just modifies the cache. * Note that this doesn't modify any of the connected storages, but just modifies the cache.
* Use {@link IStorage#extract(T, int, int, boolean)} to remove a stack from an actual storage. * Use {@link IStorage#extract(T, int, int, com.raoulvdberge.refinedstorage.api.util.Action)} to remove a stack from an actual storage.
* *
* @param stack the stack to remove, do NOT modify * @param stack the stack to remove, do NOT modify
* @param size the size to remove * @param size the size to remove

View File

@@ -1,6 +1,5 @@
package com.raoulvdberge.refinedstorage.container; package com.raoulvdberge.refinedstorage.container;
import com.raoulvdberge.refinedstorage.apiimpl.network.node.NetworkNodeConstructor;
import com.raoulvdberge.refinedstorage.container.slot.filter.SlotFilter; import com.raoulvdberge.refinedstorage.container.slot.filter.SlotFilter;
import com.raoulvdberge.refinedstorage.container.slot.filter.SlotFilterFluid; import com.raoulvdberge.refinedstorage.container.slot.filter.SlotFilterFluid;
import com.raoulvdberge.refinedstorage.tile.TileConstructor; import com.raoulvdberge.refinedstorage.tile.TileConstructor;
@@ -9,13 +8,9 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.items.SlotItemHandler; import net.minecraftforge.items.SlotItemHandler;
public class ContainerConstructor extends ContainerBase { public class ContainerConstructor extends ContainerBase {
private NetworkNodeConstructor constructor;
public ContainerConstructor(TileConstructor constructor, EntityPlayer player) { public ContainerConstructor(TileConstructor constructor, EntityPlayer player) {
super(constructor, player); super(constructor, player);
this.constructor = constructor.getNode();
for (int i = 0; i < 4; ++i) { for (int i = 0; i < 4; ++i) {
addSlotToContainer(new SlotItemHandler(constructor.getNode().getUpgrades(), i, 187, 6 + (i * 18))); addSlotToContainer(new SlotItemHandler(constructor.getNode().getUpgrades(), i, 187, 6 + (i * 18)));
} }