diff options
author | boubou19 <miisterunknown@gmail.com> | 2024-08-26 23:47:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-26 23:47:39 +0200 |
commit | 672a5e4add8f17e38dc6274ffa6286d0ccebe508 (patch) | |
tree | 5b736dd7bae6d0929b8d5de2643150908201c7ee /src/main/java/gregtech/api | |
parent | ed756a88342a4a78fc98e111e5ee0a41129138db (diff) | |
parent | d3089a48dae23dbaec653355abeb2d0231347cd3 (diff) | |
download | GT5-Unofficial-672a5e4add8f17e38dc6274ffa6286d0ccebe508.tar.gz GT5-Unofficial-672a5e4add8f17e38dc6274ffa6286d0ccebe508.tar.bz2 GT5-Unofficial-672a5e4add8f17e38dc6274ffa6286d0ccebe508.zip |
Merge branch 'master' into mergeGTNEIORE
Diffstat (limited to 'src/main/java/gregtech/api')
-rw-r--r-- | src/main/java/gregtech/api/metatileentity/CoverableTileEntity.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/CoverableTileEntity.java b/src/main/java/gregtech/api/metatileentity/CoverableTileEntity.java index aa3d70e56b..429e0fc04c 100644 --- a/src/main/java/gregtech/api/metatileentity/CoverableTileEntity.java +++ b/src/main/java/gregtech/api/metatileentity/CoverableTileEntity.java @@ -609,6 +609,7 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov public static void addInstalledCoversInformation(NBTTagCompound aNBT, List<String> aList) { if (aNBT == null || aList == null) return; final NBTTagList tList = aNBT.getTagList(GT_Values.NBT.COVERS, 10); + for (byte i = 0; i < tList.tagCount(); i++) { final NBTTagCompound tNBT = tList.getCompoundTagAt(i); final CoverInfo coverInfo = new CoverInfo(null, tNBT); @@ -647,6 +648,22 @@ public abstract class CoverableTileEntity extends BaseTileEntity implements ICov } } } + + byte strongRedstone = aNBT.getByte("mStrongRedstone"); + + for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) { + if ((strongRedstone & dir.flag) != 0) { + aList.add(String.format("Emits a strong redstone signal on the %s side", switch (dir) { + case DOWN -> "bottom"; + case UP -> "top"; + case NORTH -> "north"; + case SOUTH -> "south"; + case WEST -> "west"; + case EAST -> "east"; + default -> "<unknown>"; + })); + } + } } protected ModularWindow createCoverWindow(EntityPlayer player, ForgeDirection side) { |