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.ItemProcessor;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class SoldererRecipeFluidStorage implements ISoldererRecipe {
private EnumFluidStorageType type;
private ItemStack[] rows;
@@ -22,11 +25,13 @@ public class SoldererRecipeFluidStorage implements ISoldererRecipe {
}
@Override
@Nullable
public ItemStack getRow(int row) {
return rows[row];
}
@Override
@Nonnull
public ItemStack getResult() {
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.item.ItemProcessor;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class SoldererRecipePrintedProcessor implements ISoldererRecipe {
private int type;
private ItemStack requirement;
@@ -32,6 +35,7 @@ public class SoldererRecipePrintedProcessor implements ISoldererRecipe {
}
@Override
@Nullable
public ItemStack getRow(int row) {
if (row == 1) {
return requirement;
@@ -41,6 +45,7 @@ public class SoldererRecipePrintedProcessor implements ISoldererRecipe {
}
@Override
@Nonnull
public ItemStack getResult() {
return result;
}

View File

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

View File

@@ -8,6 +8,9 @@ import refinedstorage.block.EnumItemStorageType;
import refinedstorage.item.ItemBlockStorage;
import refinedstorage.item.ItemProcessor;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class SoldererRecipeStorage implements ISoldererRecipe {
private EnumItemStorageType type;
private ItemStack[] rows;
@@ -22,11 +25,13 @@ public class SoldererRecipeStorage implements ISoldererRecipe {
}
@Override
@Nullable
public ItemStack getRow(int row) {
return rows[row];
}
@Override
@Nonnull
public ItemStack getResult() {
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.item.ItemUpgrade;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class SoldererRecipeUpgrade implements ISoldererRecipe {
private ItemStack[] rows;
private ItemStack result;
@@ -20,11 +23,13 @@ public class SoldererRecipeUpgrade implements ISoldererRecipe {
}
@Override
@Nullable
public ItemStack getRow(int row) {
return rows[row];
}
@Override
@Nonnull
public ItemStack getResult() {
return result;
}