1.9.4 Update.

Major things to note:
Class renames: https://gist.github.com/LexManos/44dd211f90f498ad4015279b103dff86
Tile Entities are now packed in the ChunkData packet.
Forge intends to work around this to better support large moded worlds, but for the time being modders should implement the new function carefully and only send what data they need to!
Minecraft's codebase now has annotations, these are directly from Mojang and should be adheared to!
Added support for package-info.java's containing @Nullable information for all MC code base.
This commit is contained in:
LexManos committed 2016-05-18 03:29:10 -07:00
1 parent 5d5c005aae
commit b9ac73b0f1
257 files changed
+2398 -1919

No files matched your search

@@ -45,7 +45,7 @@ public class BlockSnapshot implements Serializable
if (te != null)
{
nbt = new NBTTagCompound();
te.writeToNBT(getNbt());
te.func_189515_b(getNbt());
}
else nbt = null;
if (DEBUG)
@@ -139,7 +139,7 @@ public class BlockSnapshot implements Serializable
public TileEntity getTileEntity()
{
if (getNbt() != null)
return TileEntity.createTileEntity(getWorld().getMinecraftServer(), getNbt());
return TileEntity.func_189514_c(getNbt());
else return null;
}
@@ -1,10 +1,10 @@
package net.minecraftforge.common.util;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.world.ChunkCoordIntPair;
import net.minecraft.util.math.ChunkPos;
// Sorter to load nearby chunks first
public class ChunkCoordComparator implements java.util.Comparator<ChunkCoordIntPair>
public class ChunkCoordComparator implements java.util.Comparator<ChunkPos>
{
private int x;
private int z;
@@ -15,7 +15,7 @@ public class ChunkCoordComparator implements java.util.Comparator<ChunkCoordIntP
z = (int) entityplayer.posZ >> 4;
}
public int compare(ChunkCoordIntPair a, ChunkCoordIntPair b)
public int compare(ChunkPos a, ChunkPos b)
{
if (a.equals(b))
{
@@ -13,7 +13,7 @@ import net.minecraft.enchantment.EnumEnchantmentType;
import net.minecraft.entity.EnumCreatureAttribute;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.entity.item.EntityPainting.EnumArt;
import net.minecraft.entity.player.EntityPlayer.EnumStatus;
import net.minecraft.entity.player.EntityPlayer.SleepResult;
import net.minecraft.item.EnumAction;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item.ToolMaterial;
@@ -47,7 +47,7 @@ public class EnumHelper
{Sensitivity.class},
{RayTraceResult.Type.class},
{EnumSkyBlock.class, int.class},
{EnumStatus.class},
{SleepResult.class},
{ToolMaterial.class, int.class, int.class, float.class, float.class, int.class},
{EnumRarity.class, TextFormatting.class, String.class}
};
@@ -92,9 +92,9 @@ public class EnumHelper
{
return addEnum(EnumSkyBlock.class, name, lightValue);
}
public static EnumStatus addStatus(String name)
public static SleepResult addStatus(String name)
{
return addEnum(EnumStatus.class, name);
return addEnum(SleepResult.class, name);
}
public static ToolMaterial addToolMaterial(String name, int harvestLevel, int maxUses, float efficiency, float damage, int enchantability)
{