-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
put output texture on side of watermill
- Loading branch information
Showing
5 changed files
with
24 additions
and
39 deletions.
There are no files selected for viewing
32 changes: 0 additions & 32 deletions
32
common/src/main/java/trinsdar/gt4r/blockentity/single/BlockEntityCoveredGenerator.java
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
common/src/main/java/trinsdar/gt4r/blockentity/single/BlockEntityWatermill.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,23 @@ | ||
package trinsdar.gt4r.blockentity.single; | ||
|
||
import muramasa.antimatter.capability.machine.MachineEnergyHandler; | ||
import muramasa.antimatter.machine.types.Machine; | ||
import muramasa.antimatter.blockentity.single.BlockEntityGenerator; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.core.Direction; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
|
||
import static muramasa.antimatter.machine.MachineFlag.GENERATOR; | ||
|
||
public class BlockEntityWatermill extends BlockEntityGenerator<BlockEntityWatermill> { | ||
public BlockEntityWatermill(Machine<?> type, BlockPos pos, BlockState state) { | ||
super(type, pos, state); | ||
energyHandler.set(() -> new MachineEnergyHandler<>(this, type.amps(), type.has(GENERATOR)) { | ||
@Override | ||
public boolean canOutput(Direction direction) { | ||
return super.canOutput(direction) && (direction == tile.getFacing().getClockWise() || direction == tile.getFacing().getCounterClockWise()); | ||
|
||
} | ||
}); | ||
} | ||
} |
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 modified
BIN
+2.05 KB
(1600%)
.../resources/assets/gt4r/textures/block/machine/overlay/watermill/active/side.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 modified
BIN
+2.05 KB
(1600%)
...rc/main/resources/assets/gt4r/textures/block/machine/overlay/watermill/side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.