Add missing annotations

This commit is contained in:
Raoul Van den Berge
2016-09-25 15:24:21 +02:00
parent 8018c8d559
commit 6dec24edc9
5 changed files with 25 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ import refinedstorage.block.EnumFluidStorageType;
import refinedstorage.item.ItemBlockFluidStorage; import refinedstorage.item.ItemBlockFluidStorage;
import refinedstorage.item.ItemProcessor; import refinedstorage.item.ItemProcessor;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class SoldererRecipeFluidStorage implements ISoldererRecipe { public class SoldererRecipeFluidStorage implements ISoldererRecipe {
private EnumFluidStorageType type; private EnumFluidStorageType type;
private ItemStack[] rows; private ItemStack[] rows;
@@ -22,11 +25,13 @@ public class SoldererRecipeFluidStorage implements ISoldererRecipe {
} }
@Override @Override
@Nullable
public ItemStack getRow(int row) { public ItemStack getRow(int row) {
return rows[row]; return rows[row];
} }
@Override @Override
@Nonnull
public ItemStack getResult() { public ItemStack getResult() {
return ItemBlockFluidStorage.initNBT(new ItemStack(RefinedStorageBlocks.FLUID_STORAGE, 1, type.getId())); return ItemBlockFluidStorage.initNBT(new ItemStack(RefinedStorageBlocks.FLUID_STORAGE, 1, type.getId()));
} }

View File

@@ -6,6 +6,9 @@ import refinedstorage.RefinedStorageItems;
import refinedstorage.api.solderer.ISoldererRecipe; import refinedstorage.api.solderer.ISoldererRecipe;
import refinedstorage.item.ItemProcessor; import refinedstorage.item.ItemProcessor;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class SoldererRecipePrintedProcessor implements ISoldererRecipe { public class SoldererRecipePrintedProcessor implements ISoldererRecipe {
private int type; private int type;
private ItemStack requirement; private ItemStack requirement;
@@ -32,6 +35,7 @@ public class SoldererRecipePrintedProcessor implements ISoldererRecipe {
} }
@Override @Override
@Nullable
public ItemStack getRow(int row) { public ItemStack getRow(int row) {
if (row == 1) { if (row == 1) {
return requirement; return requirement;
@@ -41,6 +45,7 @@ public class SoldererRecipePrintedProcessor implements ISoldererRecipe {
} }
@Override @Override
@Nonnull
public ItemStack getResult() { public ItemStack getResult() {
return result; return result;
} }

View File

@@ -6,6 +6,9 @@ import refinedstorage.RefinedStorageItems;
import refinedstorage.api.solderer.ISoldererRecipe; import refinedstorage.api.solderer.ISoldererRecipe;
import refinedstorage.item.ItemProcessor; import refinedstorage.item.ItemProcessor;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class SoldererRecipeProcessor implements ISoldererRecipe { public class SoldererRecipeProcessor implements ISoldererRecipe {
private int type; private int type;
private ItemStack[] rows; private ItemStack[] rows;
@@ -37,11 +40,13 @@ public class SoldererRecipeProcessor implements ISoldererRecipe {
} }
@Override @Override
@Nullable
public ItemStack getRow(int row) { public ItemStack getRow(int row) {
return rows[row]; return rows[row];
} }
@Override @Override
@Nonnull
public ItemStack getResult() { public ItemStack getResult() {
return result; return result;
} }

View File

@@ -8,6 +8,9 @@ import refinedstorage.block.EnumItemStorageType;
import refinedstorage.item.ItemBlockStorage; import refinedstorage.item.ItemBlockStorage;
import refinedstorage.item.ItemProcessor; import refinedstorage.item.ItemProcessor;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class SoldererRecipeStorage implements ISoldererRecipe { public class SoldererRecipeStorage implements ISoldererRecipe {
private EnumItemStorageType type; private EnumItemStorageType type;
private ItemStack[] rows; private ItemStack[] rows;
@@ -22,11 +25,13 @@ public class SoldererRecipeStorage implements ISoldererRecipe {
} }
@Override @Override
@Nullable
public ItemStack getRow(int row) { public ItemStack getRow(int row) {
return rows[row]; return rows[row];
} }
@Override @Override
@Nonnull
public ItemStack getResult() { public ItemStack getResult() {
return ItemBlockStorage.initNBT(new ItemStack(RefinedStorageBlocks.STORAGE, 1, type.getId())); return ItemBlockStorage.initNBT(new ItemStack(RefinedStorageBlocks.STORAGE, 1, type.getId()));
} }

View File

@@ -6,6 +6,9 @@ import refinedstorage.RefinedStorageItems;
import refinedstorage.api.solderer.ISoldererRecipe; import refinedstorage.api.solderer.ISoldererRecipe;
import refinedstorage.item.ItemUpgrade; import refinedstorage.item.ItemUpgrade;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class SoldererRecipeUpgrade implements ISoldererRecipe { public class SoldererRecipeUpgrade implements ISoldererRecipe {
private ItemStack[] rows; private ItemStack[] rows;
private ItemStack result; private ItemStack result;
@@ -20,11 +23,13 @@ public class SoldererRecipeUpgrade implements ISoldererRecipe {
} }
@Override @Override
@Nullable
public ItemStack getRow(int row) { public ItemStack getRow(int row) {
return rows[row]; return rows[row];
} }
@Override @Override
@Nonnull
public ItemStack getResult() { public ItemStack getResult() {
return result; return result;
} }