Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
reobf committed Feb 18, 2024
1 parent 42a1d44 commit 4b8c275
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ public BufferedDualInputHatch(int id, String name, String nameRegional, int tier
+ "L"
+ (mMultiFluid ? " x4 types of fluid" : ""),
Math.min(16, (1 + tier) * (tier + 1)) + "Slots",
"Slot maximum stacksize:" + (int) (64 * Math.pow(2, Math.max(tier - 3, 0)))),
"Slot maximum stacksize:" + (int) (64 * Math.pow(2, Math.max(tier - 3, 0))),
StatCollector.translateToLocal("programmable_hatches.addedby")
),
ArrayExt.of(
"多方块机器的物品/流体输入",
"总是与其它输入仓/输入总线隔离",
Expand All @@ -227,7 +229,8 @@ public BufferedDualInputHatch(int id, String name, String nameRegional, int tier
+ "L"
+ (mMultiFluid ? " x4种流体" : ""),
Math.min(16, (1 + tier) * (tier + 1)) + "格",
"每格堆叠限制:" + (int) (64 * Math.pow(2, Math.max(tier - 3, 0)))
"每格堆叠限制:" + (int) (64 * Math.pow(2, Math.max(tier - 3, 0))),
StatCollector.translateToLocal("programmable_hatches.addedby")

))));
this.bufferNum = bufferNum;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.StatCollector;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fluids.FluidTank;
Expand Down Expand Up @@ -89,15 +90,17 @@ public DualInputHatch(int id, String name, String nameRegional, int tier, int sl
"Capacity: " + format.format((int) (4000 * Math.pow(2, tier)) / (mMultiFluid ? 4 : 1))
+ "L"
+ (mMultiFluid ? " x4 types of fluid" : ""),
Math.min(16, (1 + tier) * (tier + 1)) + "Slots"),
Math.min(16, (1 + tier) * (tier + 1)) + "Slots",
StatCollector.translateToLocal("programmable_hatches.addedby")),
ArrayExt.of(
"多方块机器的物品/流体输入",
"总是与其它输入仓/输入总线隔离",
"自带编程覆盖板功能",
"容量: " + format.format((int) (4000 * Math.pow(2, tier) / (mMultiFluid ? 4 : 1)))
+ "L"
+ (mMultiFluid ? " x4种流体" : ""),
Math.min(16, (1 + tier) * (tier + 1)) + "格"))));
Math.min(16, (1 + tier) * (tier + 1)) + "格",
StatCollector.translateToLocal("programmable_hatches.addedby")))));
this.disableSort = true;
Registration.items.add(new ItemStack(GregTech_API.sBlockMachines, 1, id));
this.mMultiFluid = mMultiFluid;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;

Expand Down Expand Up @@ -54,9 +55,10 @@ public DualInputHatchSlave(int aID, String aName, String aNameRegional) {
"Slave for Dual Input Hatch",
"Link with Crafting Input Buffer using Data Stick to share inventory",
"Left click on the Dual Input Hatch, then right click on this block to link them"

,StatCollector.translateToLocal("programmable_hatches.addedby")
),
ArrayExt.of("二合一输入仓的镜像端", "将所绑定的样板输入总成的内容物共享过来", "闪存左键点击二合一输入仓,然后右键点击输入镜像完成链接绑定"))
ArrayExt.of("二合一输入仓的镜像端", "将所绑定的样板输入总成的内容物共享过来", "闪存左键点击二合一输入仓,然后右键点击输入镜像完成链接绑定",
StatCollector.translateToLocal("programmable_hatches.addedby")))

/*
* new String[] { "Slave for (Buffered) Dual Input Hatch",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.network.PacketBuffer;
import net.minecraft.util.StatCollector;
import gregtech.api.GregTech_API;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
Expand Down Expand Up @@ -55,14 +56,16 @@ public FilterOutputBus(int aID, String aName, String aNameRegional, int tier, bo
keepone ? "Preserve the last stack of item when moving stacks out."
: "Remain a phantom item instead of clearing it when moving stacks out.",
"Use void protection to restrict recipe indirectly.",
Math.min(16, (1 + tier) * (tier + 1)) + "Slots"
Math.min(16, (1 + tier) * (tier + 1)) + "Slots",
StatCollector.translateToLocal("programmable_hatches.addedby")

),
ArrayExt.of(
"多方块机器的物品输出",
keepone ? "自动输出时每格总是会保留一个物品" : "自动输出时留下一个虚拟物品",
"配合溢出保护功能间接限制配方",
Math.min(16, (1 + tier) * (tier + 1)) + "格"
Math.min(16, (1 + tier) * (tier + 1)) + "格",
StatCollector.translateToLocal("programmable_hatches.addedby")

)));
this.keepone = keepone;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ public PatternDualInputHatch(int id, String name, String nameRegional, int tier,
+ "L"
+ (mMultiFluid ? " x4 types of fluid" : ""),
Math.min(16, (1 + tier) * (tier + 1)) + "Slots",
"Slot maximum stacksize:" + (int) (64 * Math.pow(2, Math.max(tier - 3, 0)))),
"Slot maximum stacksize:" + (int) (64 * Math.pow(2, Math.max(tier - 3, 0))),
StatCollector.translateToLocal("programmable_hatches.addedby")),
ArrayExt.of("多方块机器的物品/流体输入", "总是与其它输入仓/输入总线隔离"

,
Expand All @@ -112,7 +113,8 @@ public PatternDualInputHatch(int id, String name, String nameRegional, int tier,
+ "L"
+ (mMultiFluid ? " x4种流体" : ""),
Math.min(16, (1 + tier) * (tier + 1)) + "格",
"每格堆叠限制:" + (int) (64 * Math.pow(2, Math.max(tier - 3, 0)))
"每格堆叠限制:" + (int) (64 * Math.pow(2, Math.max(tier - 3, 0))),
StatCollector.translateToLocal("programmable_hatches.addedby")

))));
this.supportFluids = fluid;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;

Expand Down Expand Up @@ -77,14 +78,15 @@ public ProgrammingCircuitProvider(int aID, String aName, String aNameRegional, i
"Put programmed circuit into inventory to specify the type of the programming circuit",
"Lens and moulds are acceptable as well",
"No, you cannot mark target item via NEI bookmark, you have to use REAL item"

,StatCollector.translateToLocal("programmable_hatches.addedby")
),
ArrayExt.of(
"连入AE网络以提供编程器芯片合成",
"消耗10AE以生成一个物品",
"放入编程电路以指定生成的编程器芯片类型",
"你也可以放入编程电路以外的物品",
"并不能从nei书签标记物品,你需要把目标物品留在提供器内")));
"并不能从nei书签标记物品,你需要把目标物品留在提供器内",
StatCollector.translateToLocal("programmable_hatches.addedby"))));
Registration.items.add(new ItemStack(GregTech_API.sBlockMachines, 1, aID));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ public RemoteInputBus(int id, String name, String nameRegional, int tier) {
"LMB click this block with a tricorder with target coord to link.",
"Items not extractable by pipes will not be accessible, with an exception of virtual circuits.",
"Cannot work across dimension. Will not load target chunk. Will not work if target chunk is unloaded."

,StatCollector.translateToLocal("programmable_hatches.addedby")
),
ArrayExt.of(
"像RemoteIO一样远程访问某个容器中的物品 作为多方块机器的输入",
"三录仪记录目标坐标后,左键此方块设定坐标",
"无法被管道抽出的物品(除了虚拟电路板,如果目标有)也不能被访问",
"不能跨维度链接 不会触发目标区块加载,且目标区块未加载时不工作"

,StatCollector.translateToLocal("programmable_hatches.addedby")
)));
Registration.items.add(new ItemStack(GregTech_API.sBlockMachines, 1, id));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,14 @@ public RemoteInputHatch(int id, String name, String nameRegional, int tier) {
"LMB click this block with a tricorder with target coord to link.",
"Fluid not extractable by pipes will not be accessible.",
"Cannot work across dimension. Will not load target chunk. Will not work if target chunk is unloaded."

,StatCollector.translateToLocal("programmable_hatches.addedby")
),
ArrayExt.of(
"像RemoteIO一样远程访问某个容器中的流体 作为多方块机器的输入",
"三录仪记录目标坐标后,左键此方块设定坐标",
"无法被管道抽出的流体也不能被访问",
"不能跨维度链接 不会触发目标区块加载,且目标区块未加载时不工作"

,StatCollector.translateToLocal("programmable_hatches.addedby")
)));
Registration.items.add(new ItemStack(GregTech_API.sBlockMachines, 1, id));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.ArrayList;

import net.minecraft.util.StatCollector;
import net.minecraftforge.fluids.FluidTank;

import gregtech.api.interfaces.ITexture;
Expand Down Expand Up @@ -51,7 +52,8 @@ public SuperfluidHatch(int id, String name, String nameRegional, int tier, boole
"For each buffer:",
"Capacity: 10,000,000L x24 types of fluid",
"16 Slots",
"Slot maximum stacksize:64"),
"Slot maximum stacksize:64",
StatCollector.translateToLocal("programmable_hatches.addedby")),
ArrayExt.of(
"致力于解决超多种流体输入",
"多方块机器的物品/流体输入",
Expand All @@ -61,7 +63,7 @@ public SuperfluidHatch(int id, String name, String nameRegional, int tier, boole
"缓冲容量: 10,000,000L x24种流体",
"16 格",
"每格堆叠限制:64"

,StatCollector.translateToLocal("programmable_hatches.addedby")
))

);
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/proghatches/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,5 @@ tile.proghatches.peripheral_station.tooltip.4=Range:16 with no inter-dimension s
tile.proghatches.peripheral_station.tooltip.5=Require no component channel.
tile.proghatches.peripheral_station.tooltip=6
programmable_hatches.gt.updateEveryTick=This mode is intended to force the check every tick when the hatch fails to work properly. Do not enable when unnecessary, for better server performance.
programmable_hatches.addedby=Added by §1ProgrammableHatches§r

2 changes: 1 addition & 1 deletion src/main/resources/assets/proghatches/lang/zh_CN.lang
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@ tile.proghatches.peripheral_station.tooltip.3=距离:16格 无法跨维度
tile.proghatches.peripheral_station.tooltip.4=不占用组件数量
tile.proghatches.peripheral_station.tooltip=5
programmable_hatches.gt.updateEveryTick=此模式用于每tick强制触发仓室的转移,以防(由于bug或某些corner case)转移过程未能正确触发 如果仓室工作正常,应该关闭此功能以优化服务器负载

programmable_hatches.addedby=Added by §1ProgrammableHatches§r

0 comments on commit 4b8c275

Please sign in to comment.