mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 12:42:50 +00:00
Get rid of all the nullable-nonnull stuff, warning huge diff
This commit is contained in:
344 files changed
+1603
-582
No files matched your search
@@ -20,6 +20,8 @@ import net.minecraft.network.datasync.EntityDataManager;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.common.Botania;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public class EntitySignalFlare extends Entity {
|
||||
|
||||
private static final String COLOR_TAG = "color";
|
||||
@@ -64,12 +66,12 @@ public class EntitySignalFlare extends Entity {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void readEntityFromNBT(NBTTagCompound nbttagcompound) {
|
||||
protected void readEntityFromNBT(@Nonnull NBTTagCompound nbttagcompound) {
|
||||
setColor(nbttagcompound.getInteger(COLOR_TAG));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void writeEntityToNBT(NBTTagCompound nbttagcompound) {
|
||||
protected void writeEntityToNBT(@Nonnull NBTTagCompound nbttagcompound) {
|
||||
nbttagcompound.setInteger(COLOR_TAG, getColor());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user