Typo montiorable

This commit is contained in:
thatsIch
2014-09-21 01:06:22 +02:00
parent 51b7bede7f
commit b534b0ed85
6 changed files with 31 additions and 31 deletions
@@ -39,9 +39,9 @@ public class ContainerCraftingTerm extends ContainerMEMonitorable implements IAE
outputSlot.putStack( CraftingManager.getInstance().findMatchingRecipe( ic, getPlayerInv().player.worldObj ) ); outputSlot.putStack( CraftingManager.getInstance().findMatchingRecipe( ic, getPlayerInv().player.worldObj ) );
} }
public ContainerCraftingTerm(InventoryPlayer ip, ITerminalHost montiorable) { public ContainerCraftingTerm(InventoryPlayer ip, ITerminalHost monitorable) {
super( ip, montiorable, false ); super( ip, monitorable, false );
ct = (PartCraftingTerminal) montiorable; ct = (PartCraftingTerminal) monitorable;
IInventory crafting = ct.getInventoryByName( "crafting" ); IInventory crafting = ct.getInventoryByName( "crafting" );
@@ -49,7 +49,7 @@ public class ContainerCraftingTerm extends ContainerMEMonitorable implements IAE
for (int x = 0; x < 3; x++) for (int x = 0; x < 3; x++)
addSlotToContainer( craftingSlots[x + y * 3] = new SlotCraftingMatrix( this, crafting, x + y * 3, 37 + x * 18, -72 + y * 18 ) ); addSlotToContainer( craftingSlots[x + y * 3] = new SlotCraftingMatrix( this, crafting, x + y * 3, 37 + x * 18, -72 + y * 18 ) );
addSlotToContainer( outputSlot = new SlotCraftingTerm( getPlayerInv().player, mySrc, powerSrc, montiorable, crafting, crafting, output, 131, -72 + 18, this ) ); addSlotToContainer( outputSlot = new SlotCraftingTerm( getPlayerInv().player, mySrc, powerSrc, monitorable, crafting, crafting, output, 131, -72 + 18, this ) );
bindPlayerInventory( ip, 0, 0 ); bindPlayerInventory( ip, 0, 0 );
@@ -73,8 +73,8 @@ public class ContainerMEMonitorable extends AEBaseContainer implements IConfigMa
return networkNode; return networkNode;
} }
protected ContainerMEMonitorable(InventoryPlayer ip, ITerminalHost montiorable, boolean bindInventory) { protected ContainerMEMonitorable(InventoryPlayer ip, ITerminalHost monitorable, boolean bindInventory) {
super( ip, montiorable instanceof TileEntity ? (TileEntity) montiorable : null, montiorable instanceof IPart ? (IPart) montiorable : null ); super( ip, monitorable instanceof TileEntity ? (TileEntity) monitorable : null, monitorable instanceof IPart ? (IPart) monitorable : null );
clientCM = new ConfigManager( this ); clientCM = new ConfigManager( this );
@@ -84,22 +84,22 @@ public class ContainerMEMonitorable extends AEBaseContainer implements IConfigMa
if ( Platform.isServer() ) if ( Platform.isServer() )
{ {
serverCM = montiorable.getConfigManager(); serverCM = monitorable.getConfigManager();
monitor = montiorable.getItemInventory(); monitor = monitorable.getItemInventory();
if ( monitor != null ) if ( monitor != null )
{ {
monitor.addListener( this, null ); monitor.addListener( this, null );
cellInv = monitor; cellInv = monitor;
if ( montiorable instanceof IPortableCell ) if ( monitorable instanceof IPortableCell )
powerSrc = (IPortableCell) montiorable; powerSrc = (IPortableCell) monitorable;
else if ( montiorable instanceof IMEChest ) else if ( monitorable instanceof IMEChest )
powerSrc = (IMEChest) montiorable; powerSrc = (IMEChest) monitorable;
else if ( montiorable instanceof IGridHost ) else if ( monitorable instanceof IGridHost )
{ {
IGridNode node = ((IGridHost) montiorable).getGridNode( ForgeDirection.UNKNOWN ); IGridNode node = ((IGridHost) monitorable).getGridNode( ForgeDirection.UNKNOWN );
if ( node != null ) if ( node != null )
{ {
networkNode = node; networkNode = node;
@@ -116,11 +116,11 @@ public class ContainerMEMonitorable extends AEBaseContainer implements IConfigMa
monitor = null; monitor = null;
canAccessViewCells = false; canAccessViewCells = false;
if ( montiorable instanceof IViewCellStorage ) if ( monitorable instanceof IViewCellStorage )
{ {
for (int y = 0; y < 5; y++) for (int y = 0; y < 5; y++)
{ {
cellView[y] = new SlotRestrictedInput( PlaceableItemType.VIEWCELL, ((IViewCellStorage) montiorable).getViewCellStorage(), y, 206, y * 18 + 8, cellView[y] = new SlotRestrictedInput( PlaceableItemType.VIEWCELL, ((IViewCellStorage) monitorable).getViewCellStorage(), y, 206, y * 18 + 8,
invPlayer ); invPlayer );
cellView[y].allowEdit = canAccessViewCells; cellView[y].allowEdit = canAccessViewCells;
addSlotToContainer( cellView[y] ); addSlotToContainer( cellView[y] );
@@ -131,8 +131,8 @@ public class ContainerMEMonitorable extends AEBaseContainer implements IConfigMa
bindPlayerInventory( ip, 0, 0 ); bindPlayerInventory( ip, 0, 0 );
} }
public ContainerMEMonitorable(InventoryPlayer ip, ITerminalHost montiorable) { public ContainerMEMonitorable(InventoryPlayer ip, ITerminalHost monitorable) {
this( ip, montiorable, true ); this( ip, monitorable, true );
} }
@Override @Override
@@ -14,10 +14,10 @@ public class ContainerMEPortableCell extends ContainerMEMonitorable
double powerMultiplier = 0.5; double powerMultiplier = 0.5;
IPortableCell civ; IPortableCell civ;
public ContainerMEPortableCell(InventoryPlayer ip, IPortableCell montiorable) { public ContainerMEPortableCell(InventoryPlayer ip, IPortableCell monitorable) {
super( ip, (ITerminalHost) montiorable, false ); super( ip, (ITerminalHost) monitorable, false );
lockPlayerInventorySlot( ip.currentItem ); lockPlayerInventorySlot( ip.currentItem );
civ = montiorable; civ = monitorable;
bindPlayerInventory( ip, 0, 0 ); bindPlayerInventory( ip, 0, 0 );
} }
@@ -62,10 +62,10 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
public PartPatternTerminal ct; public PartPatternTerminal ct;
public ContainerPatternTerm(InventoryPlayer ip, ITerminalHost montiorable) public ContainerPatternTerm(InventoryPlayer ip, ITerminalHost monitorable)
{ {
super( ip, montiorable, false ); super( ip, monitorable, false );
ct = (PartPatternTerminal) montiorable; ct = (PartPatternTerminal) monitorable;
IInventory patternInv = ct.getInventoryByName( "pattern" ); IInventory patternInv = ct.getInventoryByName( "pattern" );
IInventory output = ct.getInventoryByName( "output" ); IInventory output = ct.getInventoryByName( "output" );
@@ -75,7 +75,7 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
for (int x = 0; x < 3; x++) for (int x = 0; x < 3; x++)
addSlotToContainer( craftingSlots[x + y * 3] = new SlotFakeCraftingMatrix( crafting, x + y * 3, 18 + x * 18, -76 + y * 18 ) ); addSlotToContainer( craftingSlots[x + y * 3] = new SlotFakeCraftingMatrix( crafting, x + y * 3, 18 + x * 18, -76 + y * 18 ) );
addSlotToContainer( craftSlot = new SlotPatternTerm( ip.player, mySrc, powerSrc, montiorable, crafting, patternInv, cOut, 110, -76 + 18, this, 2, this ) ); addSlotToContainer( craftSlot = new SlotPatternTerm( ip.player, mySrc, powerSrc, monitorable, crafting, patternInv, cOut, 110, -76 + 18, this, 2, this ) );
craftSlot.IIcon = -1; craftSlot.IIcon = -1;
for (int y = 0; y < 3; y++) for (int y = 0; y < 3; y++)
@@ -33,10 +33,10 @@ public class ContainerSecurity extends ContainerMEMonitorable implements IAEAppE
TileSecurity securityBox; TileSecurity securityBox;
public ContainerSecurity(InventoryPlayer ip, ITerminalHost montiorable) { public ContainerSecurity(InventoryPlayer ip, ITerminalHost monitorable) {
super( ip, montiorable, false ); super( ip, monitorable, false );
securityBox = (TileSecurity) montiorable; securityBox = (TileSecurity) monitorable;
addSlotToContainer( configSlot = new SlotRestrictedInput( PlaceableItemType.BIOMETRIC_CARD, securityBox.configSlot, 0, 37, -33, ip ) ); addSlotToContainer( configSlot = new SlotRestrictedInput( PlaceableItemType.BIOMETRIC_CARD, securityBox.configSlot, 0, 37, -33, ip ) );
@@ -11,9 +11,9 @@ public class ContainerWirelessTerm extends ContainerMEPortableCell
WirelessTerminalGuiObject wtgo; WirelessTerminalGuiObject wtgo;
public ContainerWirelessTerm(InventoryPlayer ip, WirelessTerminalGuiObject montiorable) { public ContainerWirelessTerm(InventoryPlayer ip, WirelessTerminalGuiObject monitorable) {
super( ip, montiorable ); super( ip, monitorable );
wtgo = montiorable; wtgo = monitorable;
} }
@Override @Override