shift + screwdriver for all covers
This commit is contained in:
parent
6b48991bc6
commit
6b2e08b2ca
11 changed files with 21 additions and 10 deletions
|
@ -206,6 +206,7 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM
|
||||||
if (aSide == getBaseMetaTileEntity().getBackFacing()) {
|
if (aSide == getBaseMetaTileEntity().getBackFacing()) {
|
||||||
|
|
||||||
mTargetStackSize = (byte) ((mTargetStackSize + (aPlayer.isSneaking()? -1 : 1)) % 65);
|
mTargetStackSize = (byte) ((mTargetStackSize + (aPlayer.isSneaking()? -1 : 1)) % 65);
|
||||||
|
if(mTargetStackSize <0){mTargetStackSize = 64;}
|
||||||
if (mTargetStackSize == 0) {
|
if (mTargetStackSize == 0) {
|
||||||
GT_Utility.sendChatToPlayer(aPlayer, "Do not regulate Item Stack Size");
|
GT_Utility.sendChatToPlayer(aPlayer, "Do not regulate Item Stack Size");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -53,7 +53,8 @@ public class GT_Cover_ControlsWork
|
||||||
}
|
}
|
||||||
|
|
||||||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||||
aCoverVariable = (aCoverVariable + 1) % 3;
|
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 3;
|
||||||
|
if(aCoverVariable <0){aCoverVariable = 2;}
|
||||||
if (aCoverVariable == 0) {
|
if (aCoverVariable == 0) {
|
||||||
GT_Utility.sendChatToPlayer(aPlayer, "Normal");
|
GT_Utility.sendChatToPlayer(aPlayer, "Normal");
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,8 @@ public class GT_Cover_Conveyor
|
||||||
}
|
}
|
||||||
|
|
||||||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||||
aCoverVariable = (aCoverVariable + 1) % 12;
|
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 12;
|
||||||
|
if(aCoverVariable <0){aCoverVariable = 11;}
|
||||||
switch(aCoverVariable) {
|
switch(aCoverVariable) {
|
||||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Export"); break;
|
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Export"); break;
|
||||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Import"); break;
|
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Import"); break;
|
||||||
|
|
|
@ -28,7 +28,8 @@ public class GT_Cover_DoesWork
|
||||||
}
|
}
|
||||||
|
|
||||||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||||
aCoverVariable = (aCoverVariable + 1) % 4;
|
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 4;
|
||||||
|
if(aCoverVariable <0){aCoverVariable = 3;}
|
||||||
switch(aCoverVariable) {
|
switch(aCoverVariable) {
|
||||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Normal"); break;
|
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Normal"); break;
|
||||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Inverted"); break;
|
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Inverted"); break;
|
||||||
|
|
|
@ -58,7 +58,8 @@ public class GT_Cover_Drain
|
||||||
}
|
}
|
||||||
|
|
||||||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||||
aCoverVariable = (aCoverVariable + 1) % 6;
|
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 6;
|
||||||
|
if(aCoverVariable <0){aCoverVariable = 5;}
|
||||||
switch(aCoverVariable) {
|
switch(aCoverVariable) {
|
||||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Import"); break;
|
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Import"); break;
|
||||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Import (conditional)"); break;
|
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Import (conditional)"); break;
|
||||||
|
|
|
@ -91,7 +91,8 @@ public class GT_Cover_EUMeter
|
||||||
}
|
}
|
||||||
|
|
||||||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||||
aCoverVariable = (aCoverVariable + 1) % 12;
|
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 12;
|
||||||
|
if(aCoverVariable <0){aCoverVariable = 11;}
|
||||||
switch(aCoverVariable) {
|
switch(aCoverVariable) {
|
||||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Normal Universal Storage"); break;
|
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Normal Universal Storage"); break;
|
||||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Inverted Universal Storage"); break;
|
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Inverted Universal Storage"); break;
|
||||||
|
|
|
@ -44,7 +44,8 @@ public class GT_Cover_NeedMaintainance extends GT_CoverBehavior {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||||
aCoverVariable = (aCoverVariable + 1) % 10;
|
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 10;
|
||||||
|
if(aCoverVariable <0){aCoverVariable = 9;}
|
||||||
switch(aCoverVariable) {
|
switch(aCoverVariable) {
|
||||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Emit if 1 Maintenance Needed"); break;
|
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Emit if 1 Maintenance Needed"); break;
|
||||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Emit if 1 Maintenance Needed(inverted)"); break;
|
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Emit if 1 Maintenance Needed(inverted)"); break;
|
||||||
|
|
|
@ -53,7 +53,8 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||||
aCoverVariable = (aCoverVariable + 1) % 3;
|
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 3;
|
||||||
|
if(aCoverVariable <0){aCoverVariable = 2;}
|
||||||
switch(aCoverVariable) {
|
switch(aCoverVariable) {
|
||||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Emit if any Player is close"); break;
|
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Emit if any Player is close"); break;
|
||||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Emit if you are close"); break;
|
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Emit if you are close"); break;
|
||||||
|
|
|
@ -68,7 +68,8 @@ public class GT_Cover_Pump
|
||||||
}
|
}
|
||||||
|
|
||||||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||||
aCoverVariable = (aCoverVariable + 1) % 12;
|
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 12;
|
||||||
|
if(aCoverVariable <0){aCoverVariable = 11;}
|
||||||
switch(aCoverVariable) {
|
switch(aCoverVariable) {
|
||||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Export"); break;
|
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Export"); break;
|
||||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Import"); break;
|
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Import"); break;
|
||||||
|
|
|
@ -18,7 +18,8 @@ public class GT_Cover_RedstoneConductor
|
||||||
}
|
}
|
||||||
|
|
||||||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||||
aCoverVariable = (aCoverVariable + 1) % 7;
|
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 7;
|
||||||
|
if(aCoverVariable <0){aCoverVariable = 6;}
|
||||||
switch (aCoverVariable) {
|
switch (aCoverVariable) {
|
||||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Conducts strongest Input"); break;
|
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Conducts strongest Input"); break;
|
||||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Conducts from bottom Input"); break;
|
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Conducts from bottom Input"); break;
|
||||||
|
|
|
@ -14,7 +14,8 @@ public class GT_Cover_Shutter
|
||||||
}
|
}
|
||||||
|
|
||||||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||||
aCoverVariable = (aCoverVariable + 1) % 4;
|
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 4;
|
||||||
|
if(aCoverVariable <0){aCoverVariable = 3;}
|
||||||
switch(aCoverVariable) {
|
switch(aCoverVariable) {
|
||||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Open if work enabled"); break;
|
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Open if work enabled"); break;
|
||||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Open if work disabled"); break;
|
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Open if work disabled"); break;
|
||||||
|
|
Loading…
Reference in a new issue