mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-25 14:34:33 +00:00
More null annotations
This commit is contained in:
1 parent
16b955b443
commit
da8a833485
96 files changed
+573
-360
No files matched your search
@@ -39,15 +39,20 @@ import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.Biome;
|
||||
import net.minecraftforge.common.EnumPlantType;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.HashSet;
|
||||
import java.util.Random;
|
||||
import java.util.Set;
|
||||
|
||||
public class TileEntityFlower extends TileEntity implements IPollinatable, IButterflyNursery {
|
||||
@Nullable
|
||||
IFlower flower;
|
||||
@Nullable
|
||||
GameProfile owner;
|
||||
int section;
|
||||
@Nullable
|
||||
RenderInfo renderInfo;
|
||||
@Nullable
|
||||
IButterfly caterpillar;
|
||||
int matureTime;
|
||||
|
||||
@@ -147,6 +152,7 @@ public class TileEntityFlower extends TileEntity implements IPollinatable, IButt
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public IFlower getFlower() {
|
||||
if (this.getSection() <= 0) {
|
||||
return this.flower;
|
||||
|
||||
Reference in new issue
Block a user