-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug with torch placements & added partially working rail guide
- Loading branch information
1 parent
dc8a26b
commit ad67ee4
Showing
6 changed files
with
131 additions
and
55 deletions.
There are no files selected for viewing
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
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
24 changes: 24 additions & 0 deletions
24
.../src/main/java/me/aleksilassila/litematica/printer/v1_19/guides/placement/TorchGuide.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,24 @@ | ||
package me.aleksilassila.litematica.printer.v1_19.guides.placement; | ||
|
||
import me.aleksilassila.litematica.printer.v1_19.SchematicBlockState; | ||
import net.minecraft.block.HorizontalFacingBlock; | ||
import net.minecraft.util.math.Direction; | ||
|
||
import java.util.Collections; | ||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public class TorchGuide extends BlockPlacementGuide { | ||
public TorchGuide(SchematicBlockState state) { | ||
super(state); | ||
} | ||
|
||
@Override | ||
protected List<Direction> getPossibleSides() { | ||
Optional<Direction> facing = getProperty(targetState, HorizontalFacingBlock.FACING); | ||
|
||
return facing | ||
.map(direction -> Collections.singletonList(direction.getOpposite())) | ||
.orElseGet(() -> Collections.singletonList(Direction.DOWN)); | ||
} | ||
} |
28 changes: 0 additions & 28 deletions
28
.../main/java/me/aleksilassila/litematica/printer/v1_19/guides/placement/WallTorchGuide.java
This file was deleted.
Oops, something went wrong.