Renamed constants

This commit is contained in:
thatsIch
2015-01-01 22:13:10 +01:00
parent e0175bac98
commit 52c512635d
118 changed files with 511 additions and 508 deletions
@@ -53,7 +53,7 @@ import appeng.core.sync.packets.PacketValueConfig;
public class AppEngPacketHandlerBase
{
public static final Map<Class, PacketTypes> reverseLookup = new HashMap<Class, AppEngPacketHandlerBase.PacketTypes>();
public static final Map<Class, PacketTypes> REVERSE_LOOKUP = new HashMap<Class, AppEngPacketHandlerBase.PacketTypes>();
public enum PacketTypes
{
@@ -124,7 +124,7 @@ public class AppEngPacketHandlerBase
}
this.con = x;
AppEngPacketHandlerBase.reverseLookup.put( this.pc, this );
AppEngPacketHandlerBase.REVERSE_LOOKUP.put( this.pc, this );
if ( this.con == null )
throw new RuntimeException( "Invalid Packet Class, must be constructable on DataInputStream" );
@@ -142,7 +142,7 @@ public class AppEngPacketHandlerBase
public static PacketTypes getID(Class<? extends AppEngPacket> c)
{
return AppEngPacketHandlerBase.reverseLookup.get( c );
return AppEngPacketHandlerBase.REVERSE_LOOKUP.get( c );
}
}
@@ -49,7 +49,7 @@ public class PacketCompassResponse extends AppEngPacket
@Override
public void clientPacketData(INetworkInfo network, AppEngPacket packet, EntityPlayer player)
{
CompassManager.instance.postResult( this.attunement, this.cx << 4, this.cdy << 5, this.cz << 4, this.cr );
CompassManager.INSTANCE.postResult( this.attunement, this.cx << 4, this.cdy << 5, this.cz << 4, this.cr );
}
// api
@@ -48,7 +48,7 @@ public class PacketPaintedEntity extends AppEngPacket
public void clientPacketData(INetworkInfo network, AppEngPacket packet, EntityPlayer player)
{
PlayerColor pc = new PlayerColor( this.entityId, this.myColor, this.ticks );
TickHandler.instance.getPlayerColors().put( this.entityId, pc );
TickHandler.INSTANCE.getPlayerColors().put( this.entityId, pc );
}
// api