|
6 | 6 | import com.buuz135.industrial.proxy.client.infopiece.LaserBaseInfoPiece;
|
7 | 7 | import com.buuz135.industrial.tile.CustomColoredItemHandler;
|
8 | 8 | import com.buuz135.industrial.tile.CustomSidedTileEntity;
|
9 |
| -import com.buuz135.industrial.tile.block.LaserBaseBlock; |
10 | 9 | import com.buuz135.industrial.utils.ItemStackWeightedItem;
|
11 | 10 | import net.minecraft.item.EnumDyeColor;
|
12 | 11 | import net.minecraft.item.ItemStack;
|
@@ -57,13 +56,13 @@ public boolean canExtractItem(int slot) {
|
57 | 56 | });
|
58 | 57 | this.addInventoryToStorage(lensItems, "lensItems");
|
59 | 58 |
|
60 |
| - outItems = new ItemStackHandler(3 * 5) { |
| 59 | + outItems = new ItemStackHandler(3 * 6) { |
61 | 60 | @Override
|
62 | 61 | protected void onContentsChanged(int slot) {
|
63 | 62 | LaserBaseTile.this.markDirty();
|
64 | 63 | }
|
65 | 64 | };
|
66 |
| - this.addInventory(new CustomColoredItemHandler(outItems, EnumDyeColor.ORANGE, "Output items", 18 * 4 + 6, 25, 5, 3) { |
| 65 | + this.addInventory(new CustomColoredItemHandler(outItems, EnumDyeColor.ORANGE, "Output items", 18 * 4 + 6, 25, 6, 3) { |
67 | 66 | @Override
|
68 | 67 | public boolean canInsertItem(int slot, ItemStack stack) {
|
69 | 68 | return false;
|
@@ -127,16 +126,26 @@ public int getCurrentWork() {
|
127 | 126 | }
|
128 | 127 |
|
129 | 128 | public int getMaxWork() {
|
130 |
| - return ((LaserBaseBlock) this.getBlockType()).getWorkNeeded(); |
| 129 | + return BlockRegistry.laserBaseBlock.getWorkNeeded(); |
131 | 130 | }
|
132 | 131 |
|
133 | 132 | public void increaseWork() {
|
134 |
| - partialSync(NBT_CURRENT, true); |
135 | 133 | ++currentWork;
|
| 134 | + partialSync(NBT_CURRENT, true); |
136 | 135 | }
|
137 | 136 |
|
138 | 137 | @Override
|
139 | 138 | protected boolean getShowPauseDrawerPiece() {
|
140 | 139 | return false;
|
141 | 140 | }
|
| 141 | + |
| 142 | + @Override |
| 143 | + protected boolean getShowRedstoneControlPiece() { |
| 144 | + return false; |
| 145 | + } |
| 146 | + |
| 147 | + @Override |
| 148 | + protected boolean supportsAddons() { |
| 149 | + return false; |
| 150 | + } |
142 | 151 | }
|
0 commit comments