More null annotations

This commit is contained in:
mezz committed 2017-02-06 01:34:48 -08:00
1 parent 16b955b443
commit da8a833485
96 files changed
+573 -360

No files matched your search

@@ -23,6 +23,7 @@ import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import javax.annotation.Nullable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@@ -50,7 +51,7 @@ public class BlockCeramic extends Block implements IColoredBlock, IItemModelRegi
}
@Override
public boolean removedByPlayer(IBlockState state, World world, BlockPos pos, EntityPlayer player, boolean willHarvest) {
public boolean removedByPlayer(IBlockState state, World world, BlockPos pos, @Nullable EntityPlayer player, boolean willHarvest) {
List<ItemStack> drops = new ArrayList<>();
TileCeramic ceramic = TileUtil.getTile(world, pos, TileCeramic.class);
if (ceramic != null) {