This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
Submodule AntimatterAPI
updated
3 files
+1 −1 | common/gradle.properties | |
+1 −1 | fabric/gradle.properties | |
+1 −1 | forge/gradle.properties |
15 changes: 15 additions & 0 deletions
15
common/src/main/java/muramasa/gregtech/cover/redstone/CoverActivityDetectorPossible.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package muramasa.gregtech.cover.redstone; | ||
|
||
import muramasa.antimatter.capability.ICoverHandler; | ||
import muramasa.antimatter.cover.CoverFactory; | ||
import muramasa.antimatter.machine.Tier; | ||
import muramasa.gregtech.cover.base.CoverBasicRedstoneOutput; | ||
import net.minecraft.core.Direction; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class CoverActivityDetectorPossible extends CoverBasicRedstoneOutput { | ||
public CoverActivityDetectorPossible(@NotNull ICoverHandler<?> source, @Nullable Tier tier, Direction side, CoverFactory factory) { | ||
super(source, tier, side, factory); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
common/src/main/java/muramasa/gregtech/cover/redstone/CoverActivityDetectorProcessing.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package muramasa.gregtech.cover.redstone; | ||
|
||
import muramasa.antimatter.blockentity.BlockEntityMachine; | ||
import muramasa.antimatter.capability.ICoverHandler; | ||
import muramasa.antimatter.cover.CoverFactory; | ||
import muramasa.antimatter.machine.MachineFlag; | ||
import muramasa.antimatter.machine.MachineState; | ||
import muramasa.antimatter.machine.Tier; | ||
import muramasa.gregtech.cover.base.CoverBasicRedstoneOutput; | ||
import net.minecraft.core.Direction; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class CoverActivityDetectorProcessing extends CoverBasicRedstoneOutput { | ||
public CoverActivityDetectorProcessing(@NotNull ICoverHandler<?> source, @Nullable Tier tier, Direction side, CoverFactory factory) { | ||
super(source, tier, side, factory); | ||
} | ||
|
||
@Override | ||
public void onUpdate() { | ||
if (source().getTile() instanceof BlockEntityMachine<?> machine && machine.has(MachineFlag.RECIPE) && machine.isServerSide()){ | ||
if (machine.getMachineState() == MachineState.ACTIVE){ | ||
setOutputRedstone(inverted ? 0 : 15); | ||
} else { | ||
setOutputRedstone(inverted ? 15 : 0); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+303 Bytes
...c/main/resources/assets/gti/textures/block/cover/activity_detector_possible.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+300 Bytes
...main/resources/assets/gti/textures/block/cover/activity_detector_processing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+302 Bytes
...main/resources/assets/gti/textures/block/cover/activity_detector_successful.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+273 Bytes
...rc/main/resources/assets/gti/textures/item/basic/activity_detector_possible.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+260 Bytes
.../main/resources/assets/gti/textures/item/basic/activity_detector_processing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+272 Bytes
...src/main/resources/assets/gti/textures/item/basic/activity_detector_success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.