Fix translation of covers
This commit is contained in:
parent
9209d0843f
commit
3caab8d4ff
19 changed files with 101 additions and 101 deletions
|
@ -216,7 +216,7 @@ public abstract class GT_CoverBehavior {
|
|||
aTileEntity.setCoverIDAtSide(aSide, GT_Utility.stackToInt(aCover));
|
||||
}
|
||||
|
||||
public String trans(String aNr){
|
||||
return GT_LanguageManager.addStringLocalization("Interaction_DESCRIPTION_Index_"+aNr, "", false);
|
||||
public String trans(String aNr, String aEnglish){
|
||||
return GT_LanguageManager.addStringLocalization("Interaction_DESCRIPTION_Index_"+aNr, aEnglish, false);
|
||||
}
|
||||
}
|
|
@ -39,7 +39,7 @@ public class GT_Cover_Arm
|
|||
} else {
|
||||
aCoverVariable -= 16;
|
||||
}
|
||||
GT_Utility.sendChatToPlayer(aPlayer, (aCoverVariable > 0 ? trans("001") : trans("002")) + (Math.abs(aCoverVariable) - 1));
|
||||
GT_Utility.sendChatToPlayer(aPlayer, (aCoverVariable > 0 ? trans("001","Puts out into adjacent Slot #") : trans("002","Grabs in for own Slot #")) + (Math.abs(aCoverVariable) - 1));
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ public class GT_Cover_Arm
|
|||
} else {
|
||||
aCoverVariable--;
|
||||
}
|
||||
GT_Utility.sendChatToPlayer(aPlayer, (aCoverVariable > 0 ? trans("001") : trans("002")) + (Math.abs(aCoverVariable) - 1));
|
||||
GT_Utility.sendChatToPlayer(aPlayer, (aCoverVariable > 0 ? trans("001","Puts out into adjacent Slot #") : trans("002","Grabs in for own Slot #")) + (Math.abs(aCoverVariable) - 1));
|
||||
aTileEntity.setCoverDataAtSide(aSide, aCoverVariable);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -56,13 +56,13 @@ public class GT_Cover_ControlsWork
|
|||
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 3;
|
||||
if(aCoverVariable <0){aCoverVariable = 2;}
|
||||
if (aCoverVariable == 0) {
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("003"));
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("003", "Normal"));
|
||||
}
|
||||
if (aCoverVariable == 1) {
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("004"));
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("004", "Inverted"));
|
||||
}
|
||||
if (aCoverVariable == 2) {
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("005"));
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("005", "No Work at all"));
|
||||
}
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
|
|
@ -38,18 +38,18 @@ public class GT_Cover_Conveyor
|
|||
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 12;
|
||||
if(aCoverVariable <0){aCoverVariable = 11;}
|
||||
switch(aCoverVariable) {
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("006")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("007")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("008")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("009")); break;
|
||||
case 4: GT_Utility.sendChatToPlayer(aPlayer, trans("010")); break;
|
||||
case 5: GT_Utility.sendChatToPlayer(aPlayer, trans("011")); break;
|
||||
case 6: GT_Utility.sendChatToPlayer(aPlayer, trans("012")); break;
|
||||
case 7: GT_Utility.sendChatToPlayer(aPlayer, trans("013")); break;
|
||||
case 8: GT_Utility.sendChatToPlayer(aPlayer, trans("014")); break;
|
||||
case 9: GT_Utility.sendChatToPlayer(aPlayer, trans("015")); break;
|
||||
case 10: GT_Utility.sendChatToPlayer(aPlayer, trans("016")); break;
|
||||
case 11: GT_Utility.sendChatToPlayer(aPlayer, trans("017")); break;
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("006", "Export")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("007", "Import")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("008", "Export (conditional)")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("009", "Import (conditional)")); break;
|
||||
case 4: GT_Utility.sendChatToPlayer(aPlayer, trans("010", "Export (invert cond)")); break;
|
||||
case 5: GT_Utility.sendChatToPlayer(aPlayer, trans("011", "Import (invert cond)")); break;
|
||||
case 6: GT_Utility.sendChatToPlayer(aPlayer, trans("012", "Export allow Input")); break;
|
||||
case 7: GT_Utility.sendChatToPlayer(aPlayer, trans("013", "Import allow Output")); break;
|
||||
case 8: GT_Utility.sendChatToPlayer(aPlayer, trans("014", "Export allow Input (conditional)")); break;
|
||||
case 9: GT_Utility.sendChatToPlayer(aPlayer, trans("015", "Import allow Output (conditional)")); break;
|
||||
case 10: GT_Utility.sendChatToPlayer(aPlayer, trans("016", "Export allow Input (invert cond)")); break;
|
||||
case 11: GT_Utility.sendChatToPlayer(aPlayer, trans("017", "Import allow Output (invert cond)")); break;
|
||||
}
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
|
|
@ -31,10 +31,10 @@ public class GT_Cover_DoesWork
|
|||
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 4;
|
||||
if(aCoverVariable <0){aCoverVariable = 3;}
|
||||
switch(aCoverVariable) {
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("018")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("019")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("020")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("021")); break;
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("018", "Normal")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("019", "Inverted")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("020", "Ready to work")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("021", "Not ready to work")); break;
|
||||
}
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
|
|
@ -61,12 +61,12 @@ public class GT_Cover_Drain
|
|||
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 6;
|
||||
if(aCoverVariable <0){aCoverVariable = 5;}
|
||||
switch(aCoverVariable) {
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("022")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("023")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("024")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("025")); break;
|
||||
case 4: GT_Utility.sendChatToPlayer(aPlayer, trans("026")); break;
|
||||
case 5: GT_Utility.sendChatToPlayer(aPlayer, trans("027")); break;
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("022", "Import")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("023", "Import (conditional)")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("024", "Import (invert cond)")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("025", "Keep Liquids Away")); break;
|
||||
case 4: GT_Utility.sendChatToPlayer(aPlayer, trans("026", "Keep Liquids Away (conditional)")); break;
|
||||
case 5: GT_Utility.sendChatToPlayer(aPlayer, trans("027", "Keep Liquids Away (invert cond)")); break;
|
||||
}
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
|
|
@ -94,18 +94,18 @@ public class GT_Cover_EUMeter
|
|||
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 12;
|
||||
if(aCoverVariable <0){aCoverVariable = 11;}
|
||||
switch(aCoverVariable) {
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("031")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("032")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("033")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("034")); break;
|
||||
case 4: GT_Utility.sendChatToPlayer(aPlayer, trans("035")); break;
|
||||
case 5: GT_Utility.sendChatToPlayer(aPlayer, trans("036")); break;
|
||||
case 6: GT_Utility.sendChatToPlayer(aPlayer, trans("037")); break;
|
||||
case 7: GT_Utility.sendChatToPlayer(aPlayer, trans("038")); break;
|
||||
case 8: GT_Utility.sendChatToPlayer(aPlayer, trans("039")); break;
|
||||
case 9: GT_Utility.sendChatToPlayer(aPlayer, trans("040")); break;
|
||||
case 10: GT_Utility.sendChatToPlayer(aPlayer, trans("041")); break;
|
||||
case 11: GT_Utility.sendChatToPlayer(aPlayer, trans("042")); break;
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("031", "Normal Universal Storage")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("032", "Inverted Universal Storage")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("033", "Normal Electricity Storage")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("034", "Inverted Electricity Storage")); break;
|
||||
case 4: GT_Utility.sendChatToPlayer(aPlayer, trans("035", "Normal Steam Storage")); break;
|
||||
case 5: GT_Utility.sendChatToPlayer(aPlayer, trans("036", "Inverted Steam Storage")); break;
|
||||
case 6: GT_Utility.sendChatToPlayer(aPlayer, trans("037", "Normal Average Electric Input")); break;
|
||||
case 7: GT_Utility.sendChatToPlayer(aPlayer, trans("038", "Inverted Average Electric Input")); break;
|
||||
case 8: GT_Utility.sendChatToPlayer(aPlayer, trans("039", "Normal Average Electric Output")); break;
|
||||
case 9: GT_Utility.sendChatToPlayer(aPlayer, trans("040", "Inverted Average Electric Output")); break;
|
||||
case 10: GT_Utility.sendChatToPlayer(aPlayer, trans("041", "Normal Electricity Storage(Including Batteries)")); break;
|
||||
case 11: GT_Utility.sendChatToPlayer(aPlayer, trans("042", "Inverted Electricity Storage(Including Batteries)")); break;
|
||||
}
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@ public class GT_Cover_EnergyOnly
|
|||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||
aCoverVariable = (aCoverVariable + 1) % 3;
|
||||
switch(aCoverVariable) {
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("028")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("029")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("030")); break;
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("028", "Allow")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("029", "Allow (conditional)")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("030", "Disallow (conditional)")); break;
|
||||
}
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ public class GT_Cover_FluidRegulator extends GT_CoverBehavior {
|
|||
aCoverVariable = (0 - mTransferRate);
|
||||
}
|
||||
GT_Utility.sendChatToPlayer(aPlayer,
|
||||
trans("048") + aCoverVariable + trans("049") + aCoverVariable * 20 + trans("050"));
|
||||
trans("048", "Pump speed: ") + aCoverVariable + trans("049", "L/tick ") + aCoverVariable * 20 + trans("050", "L/sec"));
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ public class GT_Cover_FluidRegulator extends GT_CoverBehavior {
|
|||
aCoverVariable = (0 - mTransferRate);
|
||||
}
|
||||
GT_Utility.sendChatToPlayer(aPlayer,
|
||||
trans("048") + aCoverVariable + trans("049") + aCoverVariable * 20 + trans("050"));
|
||||
trans("048", "Pump speed: ") + aCoverVariable + trans("049", "L/tick ") + aCoverVariable * 20 + trans("050", "L/sec"));
|
||||
aTileEntity.setCoverDataAtSide(aSide, aCoverVariable);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -33,10 +33,10 @@ public class GT_Cover_Fluidfilter
|
|||
aFilterMode = (aFilterMode + (aPlayer.isSneaking()? -1 : 1)) % 4;
|
||||
if(aFilterMode < 0){aFilterMode = 3;}
|
||||
switch(aFilterMode) {
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("043")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("044")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("045")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("046")); break;
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("043", "Allow input, no output")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("044", "Deny input, no output")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("045", "Allow input, permit any output")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("046", "Deny input, permit any output")); break;
|
||||
}
|
||||
aCoverVariable|=aFilterMode;
|
||||
return aCoverVariable;
|
||||
|
@ -54,7 +54,7 @@ public class GT_Cover_Fluidfilter
|
|||
aCoverVariable = (aCoverVariable & 7) | (aFluid << 3);
|
||||
aTileEntity.setCoverDataAtSide(aSide, aCoverVariable);
|
||||
FluidStack sFluid = new FluidStack(FluidRegistry.getFluid(aFluid),1000);
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("047") + sFluid.getLocalizedName());
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("047", "Filter Fluid: ") + sFluid.getLocalizedName());
|
||||
}else if(tStack.getItem() instanceof IFluidContainerItem){
|
||||
IFluidContainerItem tContainer = (IFluidContainerItem)tStack.getItem();
|
||||
if(tContainer.getFluid(tStack) != null) {
|
||||
|
@ -62,7 +62,7 @@ public class GT_Cover_Fluidfilter
|
|||
aCoverVariable = (aCoverVariable & 7) | (aFluid << 3);
|
||||
aTileEntity.setCoverDataAtSide(aSide, aCoverVariable);
|
||||
FluidStack sFluid = new FluidStack(FluidRegistry.getFluid(aFluid),1000);
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("047") + sFluid.getLocalizedName());
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("047", "Filter Fluid: ") + sFluid.getLocalizedName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,9 +38,9 @@ public class GT_Cover_ItemMeter
|
|||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % (1 + aTileEntity.getSizeInventory());
|
||||
switch(aCoverVariable) {
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("051")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("052")); break;
|
||||
default: GT_Utility.sendChatToPlayer(aPlayer, trans("053") + (aCoverVariable - 2)); break;
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("051", "Normal")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("052", "Inverted")); break;
|
||||
default: GT_Utility.sendChatToPlayer(aPlayer, trans("053", "Slot: ") + (aCoverVariable - 2)); break;
|
||||
}
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
|
|
@ -42,9 +42,9 @@ public class GT_Cover_LiquidMeter
|
|||
|
||||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||
if (aCoverVariable == 0) {
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("054"));
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("054", "Inverted"));
|
||||
} else {
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("055"));
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("055", "Normal"));
|
||||
}
|
||||
return aCoverVariable == 0 ? 1 : 0;
|
||||
}
|
||||
|
|
|
@ -64,18 +64,18 @@ public class GT_Cover_NeedMaintainance extends GT_CoverBehavior {
|
|||
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 12;
|
||||
if(aCoverVariable <0){aCoverVariable = 11;}
|
||||
switch(aCoverVariable) {
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("056")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("057")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("058")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("059")); break;
|
||||
case 4: GT_Utility.sendChatToPlayer(aPlayer, trans("060")); break;
|
||||
case 5: GT_Utility.sendChatToPlayer(aPlayer, trans("061")); break;
|
||||
case 6: GT_Utility.sendChatToPlayer(aPlayer, trans("062")); break;
|
||||
case 7: GT_Utility.sendChatToPlayer(aPlayer, trans("063")); break;
|
||||
case 8: GT_Utility.sendChatToPlayer(aPlayer, trans("064")); break;
|
||||
case 9: GT_Utility.sendChatToPlayer(aPlayer, trans("065")); break;
|
||||
case 10: GT_Utility.sendChatToPlayer(aPlayer, trans("066")); break;
|
||||
case 11: GT_Utility.sendChatToPlayer(aPlayer, trans("067")); break;
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("056", "Emit if 1 Maintenance Needed")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("057", "Emit if 1 Maintenance Needed(inverted)")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("058", "Emit if 2 Maintenance Needed")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("059", "Emit if 2 Maintenance Needed(inverted)")); break;
|
||||
case 4: GT_Utility.sendChatToPlayer(aPlayer, trans("060", "Emit if 3 Maintenance Needed")); break;
|
||||
case 5: GT_Utility.sendChatToPlayer(aPlayer, trans("061", "Emit if 3 Maintenance Needed(inverted)")); break;
|
||||
case 6: GT_Utility.sendChatToPlayer(aPlayer, trans("062", "Emit if 4 Maintenance Needed")); break;
|
||||
case 7: GT_Utility.sendChatToPlayer(aPlayer, trans("063", "Emit if 4 Maintenance Needed(inverted)")); break;
|
||||
case 8: GT_Utility.sendChatToPlayer(aPlayer, trans("064", "Emit if 5 Maintenance Needed")); break;
|
||||
case 9: GT_Utility.sendChatToPlayer(aPlayer, trans("065", "Emit if 5 Maintenance Needed(inverted)")); break;
|
||||
case 10: GT_Utility.sendChatToPlayer(aPlayer, trans("066", "Emit if rotor needs maintainance")); break;
|
||||
case 11: GT_Utility.sendChatToPlayer(aPlayer, trans("067", "Emit if rotor needs maintainance(inverted)")); break;
|
||||
}
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
|
|
@ -56,9 +56,9 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior {
|
|||
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 3;
|
||||
if(aCoverVariable <0){aCoverVariable = 2;}
|
||||
switch(aCoverVariable) {
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("068")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("069")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("070")); break;
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("068", "Emit if any Player is close")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("069", "Emit if other Player is close")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("070", "Emit if you are close")); break;
|
||||
}
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
|
|
@ -71,18 +71,18 @@ public class GT_Cover_Pump
|
|||
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 12;
|
||||
if(aCoverVariable <0){aCoverVariable = 11;}
|
||||
switch(aCoverVariable) {
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("006")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("007")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("008")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("009")); break;
|
||||
case 4: GT_Utility.sendChatToPlayer(aPlayer, trans("010")); break;
|
||||
case 5: GT_Utility.sendChatToPlayer(aPlayer, trans("011")); break;
|
||||
case 6: GT_Utility.sendChatToPlayer(aPlayer, trans("012")); break;
|
||||
case 7: GT_Utility.sendChatToPlayer(aPlayer, trans("013")); break;
|
||||
case 8: GT_Utility.sendChatToPlayer(aPlayer, trans("014")); break;
|
||||
case 9: GT_Utility.sendChatToPlayer(aPlayer, trans("015")); break;
|
||||
case 10: GT_Utility.sendChatToPlayer(aPlayer, trans("016")); break;
|
||||
case 11: GT_Utility.sendChatToPlayer(aPlayer, trans("017")); break;
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("006", "Export")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("007", "Import")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("008", "Export (conditional)")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("009", "Import (conditional)")); break;
|
||||
case 4: GT_Utility.sendChatToPlayer(aPlayer, trans("010", "Export (invert cond)")); break;
|
||||
case 5: GT_Utility.sendChatToPlayer(aPlayer, trans("011", "Import (invert cond)")); break;
|
||||
case 6: GT_Utility.sendChatToPlayer(aPlayer, trans("012", "Export allow Input")); break;
|
||||
case 7: GT_Utility.sendChatToPlayer(aPlayer, trans("013", "Import allow Output")); break;
|
||||
case 8: GT_Utility.sendChatToPlayer(aPlayer, trans("014", "Export allow Input (conditional)")); break;
|
||||
case 9: GT_Utility.sendChatToPlayer(aPlayer, trans("015", "Import allow Output (conditional)")); break;
|
||||
case 10: GT_Utility.sendChatToPlayer(aPlayer, trans("016", "Export allow Input (invert cond)")); break;
|
||||
case 11: GT_Utility.sendChatToPlayer(aPlayer, trans("017", "Import allow Output (invert cond)")); break;
|
||||
}
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
|
|
@ -21,13 +21,13 @@ public class GT_Cover_RedstoneConductor
|
|||
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 7;
|
||||
if(aCoverVariable <0){aCoverVariable = 6;}
|
||||
switch (aCoverVariable) {
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("071")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("072")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("073")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("074")); break;
|
||||
case 4: GT_Utility.sendChatToPlayer(aPlayer, trans("075")); break;
|
||||
case 5: GT_Utility.sendChatToPlayer(aPlayer, trans("076")); break;
|
||||
case 6: GT_Utility.sendChatToPlayer(aPlayer, trans("077")); break;
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("071", "Conducts strongest Input")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("072", "Conducts from bottom Input")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("073", "Conducts from top Input")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("074", "Conducts from north Input")); break;
|
||||
case 4: GT_Utility.sendChatToPlayer(aPlayer, trans("075", "Conducts from south Input")); break;
|
||||
case 5: GT_Utility.sendChatToPlayer(aPlayer, trans("076", "Conducts from west Input")); break;
|
||||
case 6: GT_Utility.sendChatToPlayer(aPlayer, trans("077", "Conducts from east Input")); break;
|
||||
}
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@ public class GT_Cover_RedstoneSignalizer
|
|||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||
aCoverVariable = (aCoverVariable + 1) % 48;
|
||||
switch(aCoverVariable / 16) {
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("078") + (aCoverVariable & 0xF)); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("079") + (aCoverVariable & 0xF)); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("080") + (aCoverVariable & 0xF)); break;
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("078", "Signal = ") + (aCoverVariable & 0xF)); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("079", "Conditional Signal = ") + (aCoverVariable & 0xF)); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("080", "Inverted Conditional Signal = ") + (aCoverVariable & 0xF)); break;
|
||||
}
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ public abstract class GT_Cover_RedstoneWirelessBase
|
|||
GregTech_API.sWirelessRedstone.put(Integer.valueOf(aCoverVariable), Byte.valueOf((byte) 0));
|
||||
aCoverVariable = GT_Utility.stackToInt(aPlayer.inventory.getCurrentItem());
|
||||
aTileEntity.setCoverDataAtSide(aSide, aCoverVariable);
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("081") + aCoverVariable);
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("081", "Frequency: ") + aCoverVariable);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -43,7 +43,7 @@ public abstract class GT_Cover_RedstoneWirelessBase
|
|||
aCoverVariable += 1024;
|
||||
}
|
||||
}
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("081") + aCoverVariable);
|
||||
GT_Utility.sendChatToPlayer(aPlayer, trans("081", "Frequency: ") + aCoverVariable);
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ public abstract class GT_Cover_RedstoneWirelessBase
|
|||
}
|
||||
|
||||
public String getDescription(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) {
|
||||
return "Frequency: " + aCoverVariable;
|
||||
return trans("081", "Frequency: ") + aCoverVariable;
|
||||
}
|
||||
|
||||
public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) {
|
||||
|
|
|
@ -17,10 +17,10 @@ public class GT_Cover_Shutter
|
|||
aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % 4;
|
||||
if(aCoverVariable <0){aCoverVariable = 3;}
|
||||
switch(aCoverVariable) {
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("082")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("083")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("084")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("085")); break;
|
||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, trans("082", "Open if work enabled")); break;
|
||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, trans("083", "Open if work disabled")); break;
|
||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, trans("084", "Only Output allowed")); break;
|
||||
case 3: GT_Utility.sendChatToPlayer(aPlayer, trans("085", "Only Intput allowed")); break;
|
||||
}
|
||||
return aCoverVariable;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue