|
20 | 20 | import com.gregtechceu.gtceu.api.recipe.GTRecipe; |
21 | 21 | import com.gregtechceu.gtceu.api.recipe.ingredient.FluidIngredient; |
22 | 22 | import com.gregtechceu.gtceu.common.data.GTMaterials; |
23 | | - |
24 | 23 | import com.gregtechceu.gtceu.utils.GTTransferUtils; |
| 24 | + |
25 | 25 | import com.lowdragmc.lowdraglib.gui.modular.ModularUI; |
26 | 26 | import com.lowdragmc.lowdraglib.gui.widget.LabelWidget; |
27 | 27 | import com.lowdragmc.lowdraglib.gui.widget.WidgetGroup; |
28 | | - |
29 | 28 | import com.lowdragmc.lowdraglib.syncdata.ISubscription; |
30 | | -import com.lowdragmc.lowdraglib.syncdata.annotation.Persisted; |
| 29 | + |
31 | 30 | import net.minecraft.core.BlockPos; |
32 | 31 | import net.minecraft.core.Direction; |
33 | 32 | import net.minecraft.world.entity.player.Player; |
34 | | - |
35 | 33 | import net.minecraft.world.level.block.Block; |
| 34 | + |
36 | 35 | import org.jetbrains.annotations.MustBeInvokedByOverriders; |
37 | 36 | import org.jetbrains.annotations.NotNull; |
38 | 37 | import org.jetbrains.annotations.Nullable; |
|
42 | 41 |
|
43 | 42 | public class SterilizationHatchPartMachine extends TieredIOPartMachine |
44 | 43 | implements ICleanroomProvider, IRecipeHandler, IUIMachine { |
45 | | - @Nullable |
| 44 | + |
| 45 | + @Nullable |
46 | 46 | protected TickableSubscription autoIOSubs; |
47 | 47 | @Nullable |
48 | 48 | protected ISubscription tankSubs; |
@@ -104,6 +104,7 @@ public double getTotalContentAmount() { |
104 | 104 | public RecipeCapability<FluidIngredient> getCapability() { |
105 | 105 | return FluidRecipeCapability.CAP; |
106 | 106 | } |
| 107 | + |
107 | 108 | @Override |
108 | 109 | public void onNeighborChanged(Block block, BlockPos fromPos, boolean isMoving) { |
109 | 110 | super.onNeighborChanged(block, fromPos, isMoving); |
@@ -145,6 +146,7 @@ protected void autoIO() { |
145 | 146 | updateTankSubscription(); |
146 | 147 | } |
147 | 148 | } |
| 149 | + |
148 | 150 | // GUI |
149 | 151 | @Override |
150 | 152 | public ModularUI createUI(Player entityPlayer) { |
|
0 commit comments