Improved readability of variables
Hopefully improved semantics of variables Fixed typos Added hyphenations
This commit is contained in:
@@ -83,7 +83,7 @@ public class PartFormationPlane extends PartUpgradeable implements ICellContaine
|
||||
if ( Platform.isClient() )
|
||||
return true;
|
||||
|
||||
Platform.openGUI( player, getHost().getTile(), side, GuiBridge.GUI_FPLANE );
|
||||
Platform.openGUI( player, getHost().getTile(), side, GuiBridge.GUI_FORMATION_PLANE );
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ public class PartFormationPlane extends PartUpgradeable implements ICellContaine
|
||||
}
|
||||
|
||||
@MENetworkEventSubscribe
|
||||
public void updateChannels(MENetworkChannelsChanged chann)
|
||||
public void updateChannels(MENetworkChannelsChanged changedChannels)
|
||||
{
|
||||
boolean currentActive = proxy.isActive();
|
||||
if ( wasActive != currentActive )
|
||||
|
||||
@@ -270,7 +270,7 @@ public class PartLevelEmitter extends PartUpgradeable implements IEnergyWatcherH
|
||||
if ( Platform.isClient() )
|
||||
return true;
|
||||
|
||||
Platform.openGUI( player, getHost().getTile(), side, GuiBridge.GUI_LEVELEMITTER );
|
||||
Platform.openGUI( player, getHost().getTile(), side, GuiBridge.GUI_LEVEL_EMITTER );
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -363,17 +363,17 @@ public class PartLevelEmitter extends PartUpgradeable implements IEnergyWatcherH
|
||||
// rh.renderInventoryBox( renderer );
|
||||
}
|
||||
|
||||
double cenx;
|
||||
double ceny;
|
||||
double cenz;
|
||||
double centerX;
|
||||
double centerY;
|
||||
double centerZ;
|
||||
|
||||
public void addVertexWithUV(double x, double y, double z, double u, double v)
|
||||
{
|
||||
Tessellator var12 = Tessellator.instance;
|
||||
|
||||
x -= cenx;
|
||||
y -= ceny;
|
||||
z -= cenz;
|
||||
x -= centerX;
|
||||
y -= centerY;
|
||||
z -= centerZ;
|
||||
|
||||
if ( side == ForgeDirection.DOWN )
|
||||
{
|
||||
@@ -411,9 +411,9 @@ public class PartLevelEmitter extends PartUpgradeable implements IEnergyWatcherH
|
||||
y = m;
|
||||
}
|
||||
|
||||
x += cenx;// + orientation.offsetX * 0.4;
|
||||
y += ceny;// + orientation.offsetY * 0.4;
|
||||
z += cenz;// + orientation.offsetZ * 0.4;
|
||||
x += centerX;// + orientation.offsetX * 0.4;
|
||||
y += centerY;// + orientation.offsetY * 0.4;
|
||||
z += centerZ;// + orientation.offsetZ * 0.4;
|
||||
|
||||
var12.addVertexWithUV( x, y, z, u, v );
|
||||
}
|
||||
@@ -439,9 +439,9 @@ public class PartLevelEmitter extends PartUpgradeable implements IEnergyWatcherH
|
||||
IIcon offTexture = is.getIconIndex();
|
||||
IIcon IIcon = (isOn ? CableBusTextures.LevelEmitterTorchOn.getIcon() : offTexture);
|
||||
//
|
||||
cenx = baseX + 0.5;
|
||||
ceny = baseY + 0.5;
|
||||
cenz = baseZ + 0.5;
|
||||
centerX = baseX + 0.5;
|
||||
centerY = baseY + 0.5;
|
||||
centerZ = baseZ + 0.5;
|
||||
|
||||
baseY += 7.0 / 16.0;
|
||||
;
|
||||
|
||||
@@ -16,7 +16,7 @@ import appeng.util.Platform;
|
||||
public class UpgradeInventory extends AppEngInternalInventory implements IAEAppEngInventory
|
||||
{
|
||||
|
||||
private final Object itemorblock;
|
||||
private final Object itemOrBlock;
|
||||
private final IAEAppEngInventory parent;
|
||||
|
||||
private boolean cached = false;
|
||||
@@ -31,7 +31,7 @@ public class UpgradeInventory extends AppEngInternalInventory implements IAEAppE
|
||||
super( null, s );
|
||||
te = this;
|
||||
parent = _te;
|
||||
itemorblock = itemOrBlock;
|
||||
this.itemOrBlock = itemOrBlock;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -68,17 +68,17 @@ public class UpgradeInventory extends AppEngInternalInventory implements IAEAppE
|
||||
Integer max = null;
|
||||
for (ItemStack is : u.getSupported().keySet())
|
||||
{
|
||||
if ( is.getItem() == itemorblock )
|
||||
if ( is.getItem() == itemOrBlock )
|
||||
{
|
||||
max = u.getSupported().get( is );
|
||||
break;
|
||||
}
|
||||
else if ( is.getItem() instanceof ItemBlock && Block.getBlockFromItem( is.getItem() ) == itemorblock )
|
||||
else if ( is.getItem() instanceof ItemBlock && Block.getBlockFromItem( is.getItem() ) == itemOrBlock )
|
||||
{
|
||||
max = u.getSupported().get( is );
|
||||
break;
|
||||
}
|
||||
else if ( itemorblock instanceof ItemStack && Platform.isSameItem( (ItemStack) itemorblock, is ) )
|
||||
else if ( itemOrBlock instanceof ItemStack && Platform.isSameItem( (ItemStack) itemOrBlock, is ) )
|
||||
{
|
||||
max = u.getSupported().get( is );
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user