本文整理汇总了Java中micdoodle8.mods.galacticraft.core.util.GCCoreUtil.translate方法的典型用法代码示例。如果您正苦于以下问题:Java GCCoreUtil.translate方法的具体用法?Java GCCoreUtil.translate怎么用?Java GCCoreUtil.translate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类micdoodle8.mods.galacticraft.core.util.GCCoreUtil
的用法示例。
在下文中一共展示了GCCoreUtil.translate方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getThermalStatus
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
private String getThermalStatus()
{
Block blockAbove = this.sealer.getWorldObj().getBlock(this.sealer.xCoord, this.sealer.yCoord + 1, this.sealer.zCoord);
int metadata = this.sealer.getWorldObj().getBlockMetadata(this.sealer.xCoord, this.sealer.yCoord + 1, this.sealer.zCoord);
if (blockAbove == GCBlocks.breatheableAir || blockAbove == GCBlocks.brightBreatheableAir)
{
if (metadata == 1)
{
return EnumColor.DARK_GREEN + GCCoreUtil.translate("gui.status.on.name");
}
}
if (this.sealer.thermalControlEnabled())
{
return EnumColor.DARK_RED + GCCoreUtil.translate("gui.status.notAvailable.name");
}
return EnumColor.DARK_RED + GCCoreUtil.translate("gui.status.off.name");
}
示例2: getShiftDescription
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@Override
public String getShiftDescription(int meta)
{
int tier = (meta >= 8 ? 2 : 1);
switch (meta & 4)
{
case ELECTRIC_FURNACE_METADATA:
return GCCoreUtil.translate("tile.electricFurnaceTier" + tier + ".description");
case STORAGE_MODULE_METADATA:
return GCCoreUtil.translate("tile.energyStorageModuleTier" + tier + ".description");
}
return "";
}
示例3: getShiftDescription
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@Override
public String getShiftDescription(int meta)
{
switch (meta)
{
case ELECTROLYZER:
return GCCoreUtil.translate("tile.electrolyzer.description");
case GAS_LIQUEFIER:
return GCCoreUtil.translate("tile.gasLiquefier.description");
case METHANE_SYNTHESIZER:
return GCCoreUtil.translate("tile.methaneSynthesizer.description");
}
return "";
}
示例4: initGui
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@Override
public void initGui()
{
super.initGui();
final int var5 = (this.width - this.xSize) / 2;
final int var6 = (this.height - this.ySize) / 2;
List<String> batterySlotDesc = new ArrayList<String>();
batterySlotDesc.add(GCCoreUtil.translate("gui.batterySlot.desc.0"));
batterySlotDesc.add(GCCoreUtil.translate("gui.batterySlot.desc.1"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 46, (this.height - this.ySize) / 2 + 26, 18, 18, batterySlotDesc, this.width, this.height, this));
List<String> oxygenSlotDesc = new ArrayList<String>();
oxygenSlotDesc.add(GCCoreUtil.translate("gui.oxygenSlot.desc.0"));
oxygenSlotDesc.add(GCCoreUtil.translate("gui.oxygenSlot.desc.1"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 16, (this.height - this.ySize) / 2 + 26, 18, 18, oxygenSlotDesc, this.width, this.height, this));
List<String> oxygenDesc = new ArrayList<String>();
oxygenDesc.add(GCCoreUtil.translate("gui.oxygenStorage.desc.0"));
oxygenDesc.add(EnumColor.YELLOW + GCCoreUtil.translate("gui.oxygenStorage.desc.1") + ": " + ((int) Math.floor(this.distributor.storedOxygen) + " / " + (int) Math.floor(this.distributor.maxOxygen)));
this.oxygenInfoRegion.tooltipStrings = oxygenDesc;
this.oxygenInfoRegion.xPosition = (this.width - this.xSize) / 2 + 112;
this.oxygenInfoRegion.yPosition = (this.height - this.ySize) / 2 + 24;
this.oxygenInfoRegion.parentWidth = this.width;
this.oxygenInfoRegion.parentHeight = this.height;
this.infoRegions.add(this.oxygenInfoRegion);
List<String> electricityDesc = new ArrayList<String>();
electricityDesc.add(GCCoreUtil.translate("gui.energyStorage.desc.0"));
electricityDesc.add(EnumColor.YELLOW + GCCoreUtil.translate("gui.energyStorage.desc.1") + ((int) Math.floor(this.distributor.getEnergyStoredGC()) + " / " + (int) Math.floor(this.distributor.getMaxEnergyStoredGC())));
this.electricInfoRegion.tooltipStrings = electricityDesc;
this.electricInfoRegion.xPosition = (this.width - this.xSize) / 2 + 112;
this.electricInfoRegion.yPosition = (this.height - this.ySize) / 2 + 37;
this.electricInfoRegion.parentWidth = this.width;
this.electricInfoRegion.parentHeight = this.height;
this.infoRegions.add(this.electricInfoRegion);
this.checkboxRenderBubble = new GuiElementCheckbox(0, this, var5 + 85, var6 + 87, GCCoreUtil.translate("gui.message.bubbleVisible.name"));
this.buttonList.add(this.checkboxRenderBubble);
}
示例5: getShiftDescription
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@Override
public String getShiftDescription(int meta)
{
switch (meta)
{
case 0:
return GCCoreUtil.translate("tile.aluminumWire.description");
case 1:
return GCCoreUtil.translate("tile.aluminumWireHeavy.description");
}
return "";
}
示例6: getSendingStatus
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public String getSendingStatus()
{
if (!this.addressValid)
{
return EnumColor.RED + GCCoreUtil.translate("gui.message.invalidTargetAddress.name");
}
if (this.targetAddressResult == TileEntityShortRangeTelepad.EnumTelepadSearchResult.TOO_FAR)
{
return EnumColor.RED + GCCoreUtil.translateWithFormat("gui.message.telepadTooFar.name", TELEPORTER_RANGE);
}
if (this.targetAddressResult == TileEntityShortRangeTelepad.EnumTelepadSearchResult.WRONG_DIM)
{
return EnumColor.RED + GCCoreUtil.translate("gui.message.telepadWrongDim.name");
}
if (this.targetAddressResult == TileEntityShortRangeTelepad.EnumTelepadSearchResult.NOT_FOUND)
{
return EnumColor.RED + GCCoreUtil.translate("gui.message.telepadNotFound.name");
}
if (this.getEnergyStoredGC() <= 0.0F)
{
return EnumColor.RED + GCCoreUtil.translate("gui.message.noEnergy.name");
}
if (this.getEnergyStoredGC() <= ENERGY_USE_ON_TELEPORT)
{
return EnumColor.RED + GCCoreUtil.translate("gui.message.notEnoughEnergy.name");
}
if (this.getDisabled(0))
{
return EnumColor.ORANGE + GCCoreUtil.translate("gui.status.disabled.name");
}
return EnumColor.BRIGHT_GREEN + GCCoreUtil.translate("gui.message.sendingActive.name");
}
示例7: getInventoryName
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@Override
public String getInventoryName()
{
return GCCoreUtil.translate("container.fuelloader.name");
}
示例8: getInventoryName
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@Override
public String getInventoryName()
{
return GCCoreUtil.translate("tile.machine2.6.name");
}
示例9: getShiftDescription
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@Override
public String getShiftDescription(int meta)
{
return GCCoreUtil.translate(this.getUnlocalizedName() + ".description");
}
示例10: getInventoryName
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@Override
public String getInventoryName()
{
return GCCoreUtil.translate("container.tileTerraformer.name");
}
示例11: initGui
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public void initGui()
{
super.initGui();
this.buttonList.clear();
final int var5 = (this.width - this.xSize) / 2;
final int var6 = (this.height - this.ySize) / 2;
this.enableControllerButton = new GuiButton(0, var5 + 70 + 124 - 72, var6 + 16, 48, 20, GCCoreUtil.translate("gui.button.enable.name"));
this.enablePadRemovalButton = new GuiElementCheckbox(1, this, this.width / 2 - 78, var6 + 59, GCCoreUtil.translate("gui.message.removePad.name"));
this.launchWhenCheckbox = new GuiElementCheckbox(2, this, this.width / 2 - 78, var6 + 77, GCCoreUtil.translate("gui.message.launchWhen.name") + ": ");
this.dropdownTest = new GuiElementDropdown(3, this, var5 + 95, var6 + 77, EnumAutoLaunch.CARGO_IS_UNLOADED.getTitle(), EnumAutoLaunch.CARGO_IS_FULL.getTitle(), EnumAutoLaunch.ROCKET_IS_FUELED.getTitle(), EnumAutoLaunch.INSTANT.getTitle(), EnumAutoLaunch.TIME_10_SECONDS.getTitle(), EnumAutoLaunch.TIME_30_SECONDS.getTitle(), EnumAutoLaunch.TIME_1_MINUTE.getTitle(), EnumAutoLaunch.REDSTONE_SIGNAL.getTitle());
this.frequency = new GuiElementTextBox(4, this, var5 + 66, var6 + 16, 48, 20, "", true, 6, false);
this.destinationFrequency = new GuiElementTextBox(5, this, var5 + 45, var6 + 16 + 22, 48, 20, "", true, 6, false);
this.hideDestinationFrequency = new GuiButton(6, var5 + 95, var6 + 16 + 22, 39, 20, GCCoreUtil.translate("gui.button.hideDest.name"));
this.buttonList.add(this.enableControllerButton);
this.buttonList.add(this.enablePadRemovalButton);
this.buttonList.add(this.launchWhenCheckbox);
this.buttonList.add(this.dropdownTest);
this.buttonList.add(this.frequency);
this.buttonList.add(this.destinationFrequency);
this.buttonList.add(this.hideDestinationFrequency);
this.electricInfoRegion.tooltipStrings = new ArrayList<String>();
this.electricInfoRegion.xPosition = (this.width - this.xSize) / 2 + 98;
this.electricInfoRegion.yPosition = (this.height - this.ySize) / 2 + 113;
this.electricInfoRegion.parentWidth = this.width;
this.electricInfoRegion.parentHeight = this.height;
this.infoRegions.add(this.electricInfoRegion);
List<String> batterySlotDesc = new ArrayList<String>();
batterySlotDesc.add(GCCoreUtil.translate("gui.batterySlot.desc.0"));
batterySlotDesc.add(GCCoreUtil.translate("gui.batterySlot.desc.1"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 151, (this.height - this.ySize) / 2 + 104, 18, 18, batterySlotDesc, this.width, this.height, this));
batterySlotDesc = new ArrayList<String>();
batterySlotDesc.addAll(GCCoreUtil.translateWithSplit("gui.launchController.desc.0"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 5, (this.height - this.ySize) / 2 + 20, 109, 13, batterySlotDesc, this.width, this.height, this));
batterySlotDesc = new ArrayList<String>();
batterySlotDesc.addAll(GCCoreUtil.translateWithSplit("gui.launchController.desc.1"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 5, (this.height - this.ySize) / 2 + 42, 88, 13, batterySlotDesc, this.width, this.height, this));
batterySlotDesc = new ArrayList<String>();
batterySlotDesc.addAll(GCCoreUtil.translateWithSplit("gui.launchController.desc.2"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 10, (this.height - this.ySize) / 2 + 59, 78, 13, batterySlotDesc, this.width, this.height, this));
batterySlotDesc = new ArrayList<String>();
batterySlotDesc.addAll(GCCoreUtil.translateWithSplit("gui.launchController.desc.3"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 10, (this.height - this.ySize) / 2 + 77, 82, 13, batterySlotDesc, this.width, this.height, this));
batterySlotDesc = new ArrayList<String>();
batterySlotDesc.addAll(GCCoreUtil.translateWithSplit("gui.launchController.desc.4"));
this.infoRegions.add(new GuiElementInfoRegion((this.width - this.xSize) / 2 + 95, (this.height - this.ySize) / 2 + 38, 38, 20, batterySlotDesc, this.width, this.height, this));
}
示例12: getInventoryName
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@Override
public String getInventoryName()
{
return GCCoreUtil.translate("container.refinery.name");
}
示例13: getInventoryName
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@Override
public String getInventoryName()
{
return GCCoreUtil.translate("container.oxygencompressor.name");
}
示例14: getInventoryName
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@Override
public String getInventoryName()
{
return GCCoreUtil.translate("container.lander.name");
}
示例15: getRecipeName
import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; //导入方法依赖的package包/类
@Override
public String getRecipeName()
{
return GCCoreUtil.translate("tile.rocketWorkbench.name");
}