@@ -43,7 +43,7 @@ public class IMCHandler {
4343 • [String Property Key] - String : Key is nameable to a property key, and the string value attached to it is value to property.
4444 */
4545
46- public void handleMessage (FMLInterModComms .IMCEvent event ) {
46+ public static void handleMessage (FMLInterModComms .IMCEvent event ) {
4747 for (FMLInterModComms .IMCMessage message : event .getMessages ()) {
4848 if (message .isNBTMessage ()) {
4949 NBTTagCompound imcCompound = message .getNBTValue ();
@@ -59,18 +59,7 @@ public void handleMessage(FMLInterModComms.IMCEvent event) {
5959 }
6060 }
6161
62- private void deserializeBlockstatesFromTagList (NBTTagList list , ImmutableBiMap .Builder <IBlockState , Integer > builder ) {
63- for (int blockAt = 0 ; blockAt < list .tagCount (); blockAt ++) {
64- NBTTagCompound main = list .getCompoundTagAt (blockAt );
65- IBlockState key = NBTUtil .readBlockState (main );
66-
67- if (key .getBlock () != Blocks .AIR ) {
68- builder .put (key , main .getInteger ("" ));
69- }
70- }
71- }
72-
73- private void deserializeBlockstatesFromTagList (NBTTagList list , ImmutableMultimap .Builder <IBlockState , IBlockState > builder ) {
62+ private static void deserializeBlockstatesFromTagList (NBTTagList list , ImmutableMultimap .Builder <IBlockState , IBlockState > builder ) {
7463 for (int blockAt = 0 ; blockAt < list .tagCount (); blockAt ++) {
7564 NBTTagCompound main = list .getCompoundTagAt (blockAt );
7665 IBlockState key = NBTUtil .readBlockState (main );
@@ -87,7 +76,7 @@ private void deserializeBlockstatesFromTagList(NBTTagList list, ImmutableMultima
8776 }
8877 }
8978
90- private void deserializeBlockstatesFromTagList (NBTTagList list , ImmutableCollection .Builder <IBlockState > builder ) {
79+ private static void deserializeBlockstatesFromTagList (NBTTagList list , ImmutableCollection .Builder <IBlockState > builder ) {
9180 for (int blockAt = 0 ; blockAt < list .tagCount (); blockAt ++) {
9281 IBlockState state = NBTUtil .readBlockState (list .getCompoundTagAt (blockAt ));
9382
0 commit comments