mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +00:00
Clean up more null/nonnull, refactor gui ledgers
This commit is contained in:
1 parent
b2d4e6eaba
commit
35f9b95f37
124 files changed
+827
-655
No files matched your search
@@ -187,9 +187,11 @@ public class BeeRoot extends SpeciesRoot implements IBeeRoot {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public IBee getMember(ItemStack stack) {
|
||||
Preconditions.checkArgument(isMember(stack), "ItemStack must be a bee.");
|
||||
Preconditions.checkArgument(stack.getTagCompound() != null, "ItemStack must have a tag compound.");
|
||||
if (!isMember(stack) || stack.getTagCompound() == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return new Bee(stack.getTagCompound());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user