mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Initial annotations/nullability changes (#3392)
This commit is contained in:
1 parent
1fa0c0c548
commit
9cf74914e7
37 files changed
+172
-104
No files matched your search
@@ -84,13 +84,14 @@ public class UniversalBucket extends Item
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasContainerItem(ItemStack stack)
|
||||
public boolean hasContainerItem(@Nonnull ItemStack stack)
|
||||
{
|
||||
return !getEmpty().func_190926_b();
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public ItemStack getContainerItem(ItemStack itemStack)
|
||||
public ItemStack getContainerItem(@Nonnull ItemStack itemStack)
|
||||
{
|
||||
if (!getEmpty().func_190926_b())
|
||||
{
|
||||
@@ -122,7 +123,7 @@ public class UniversalBucket extends Item
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getItemStackDisplayName(ItemStack stack)
|
||||
public String getItemStackDisplayName(@Nonnull ItemStack stack)
|
||||
{
|
||||
FluidStack fluidStack = getFluid(stack);
|
||||
if (fluidStack == null)
|
||||
@@ -272,7 +273,7 @@ public class UniversalBucket extends Item
|
||||
return bucket;
|
||||
}
|
||||
|
||||
public FluidStack getFluid(ItemStack container)
|
||||
public FluidStack getFluid(@Nonnull ItemStack container)
|
||||
{
|
||||
return FluidStack.loadFluidStackFromNBT(container.getTagCompound());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user