Begin adding stricter null annotations to prepare for 1.11

This commit is contained in:
mezz committed 2017-02-05 23:47:40 -08:00
1 parent 4140ba7d7f
commit 16b955b443
330 files changed
+2302 -921

No files matched your search

@@ -10,11 +10,13 @@ import net.minecraft.world.World;
import net.minecraftforge.common.ForgeHooks;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
public class CeramicTileRecipe implements IRecipe {
ItemStack cached;
@Nullable
private ItemStack cached;
@Override
public boolean matches(final InventoryCrafting inv, final World world) {
@@ -68,9 +70,8 @@ public class CeramicTileRecipe implements IRecipe {
return this.cached;
}
@Nonnull
@Override
public ItemStack[] getRemainingItems(@Nonnull InventoryCrafting inv) {
public ItemStack[] getRemainingItems(InventoryCrafting inv) {
return ForgeHooks.defaultRecipeGetRemainingItems(inv);
}
}