-
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.
Ported changes & fixed flowerpots sometimes blocking the placement.
- Loading branch information
1 parent
309fb0f
commit fd296c9
Showing
21 changed files
with
107 additions
and
48 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
20 changes: 20 additions & 0 deletions
20
v1_17/src/main/java/me/aleksilassila/litematica/printer/v1_17/BlockHelper.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,20 @@ | ||
package me.aleksilassila.litematica.printer.v1_17; | ||
|
||
import net.minecraft.block.*; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
abstract public class BlockHelper { | ||
public static List<Class<?>> interactiveBlocks = new ArrayList<>(Arrays.asList( | ||
AbstractChestBlock.class, AbstractFurnaceBlock.class, CraftingTableBlock.class, LeverBlock.class, | ||
DoorBlock.class, TrapdoorBlock.class, BedBlock.class, RedstoneWireBlock.class, ScaffoldingBlock.class, | ||
HopperBlock.class, EnchantingTableBlock.class, NoteBlock.class, JukeboxBlock.class, CakeBlock.class, | ||
FenceGateBlock.class, BrewingStandBlock.class, DragonEggBlock.class, CommandBlock.class, | ||
BeaconBlock.class, AnvilBlock.class, ComparatorBlock.class, RepeaterBlock.class, | ||
DropperBlock.class, DispenserBlock.class, ShulkerBoxBlock.class, LecternBlock.class, | ||
FlowerPotBlock.class, BarrelBlock.class, BellBlock.class, SmithingTableBlock.class, | ||
LoomBlock.class, CartographyTableBlock.class, GrindstoneBlock.class, | ||
StonecutterBlock.class, AbstractSignBlock.class)); | ||
} |
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
14 changes: 14 additions & 0 deletions
14
...c/main/java/me/aleksilassila/litematica/printer/v1_17/implementation/BlockHelperImpl.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,14 @@ | ||
package me.aleksilassila.litematica.printer.v1_17.implementation; | ||
|
||
import me.aleksilassila.litematica.printer.v1_17.BlockHelper; | ||
import net.minecraft.block.AbstractButtonBlock; | ||
|
||
import java.util.Arrays; | ||
|
||
public class BlockHelperImpl extends BlockHelper { | ||
static { | ||
interactiveBlocks.addAll(Arrays.asList( | ||
AbstractButtonBlock.class | ||
)); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
v1_18/src/main/java/me/aleksilassila/litematica/printer/v1_18/BlockHelper.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,20 @@ | ||
package me.aleksilassila.litematica.printer.v1_18; | ||
|
||
import net.minecraft.block.*; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
abstract public class BlockHelper { | ||
public static List<Class<?>> interactiveBlocks = new ArrayList<>(Arrays.asList( | ||
AbstractChestBlock.class, AbstractFurnaceBlock.class, CraftingTableBlock.class, LeverBlock.class, | ||
DoorBlock.class, TrapdoorBlock.class, BedBlock.class, RedstoneWireBlock.class, ScaffoldingBlock.class, | ||
HopperBlock.class, EnchantingTableBlock.class, NoteBlock.class, JukeboxBlock.class, CakeBlock.class, | ||
FenceGateBlock.class, BrewingStandBlock.class, DragonEggBlock.class, CommandBlock.class, | ||
BeaconBlock.class, AnvilBlock.class, ComparatorBlock.class, RepeaterBlock.class, | ||
DropperBlock.class, DispenserBlock.class, ShulkerBoxBlock.class, LecternBlock.class, | ||
FlowerPotBlock.class, BarrelBlock.class, BellBlock.class, SmithingTableBlock.class, | ||
LoomBlock.class, CartographyTableBlock.class, GrindstoneBlock.class, | ||
StonecutterBlock.class, AbstractSignBlock.class)); | ||
} |
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
14 changes: 14 additions & 0 deletions
14
...c/main/java/me/aleksilassila/litematica/printer/v1_18/implementation/BlockHelperImpl.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,14 @@ | ||
package me.aleksilassila.litematica.printer.v1_18.implementation; | ||
|
||
import me.aleksilassila.litematica.printer.v1_18.BlockHelper; | ||
import net.minecraft.block.AbstractButtonBlock; | ||
|
||
import java.util.Arrays; | ||
|
||
public class BlockHelperImpl extends BlockHelper { | ||
static { | ||
interactiveBlocks.addAll(Arrays.asList( | ||
AbstractButtonBlock.class | ||
)); | ||
} | ||
} |
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
10 changes: 7 additions & 3 deletions
10
...c/main/java/me/aleksilassila/litematica/printer/v1_19/implementation/BlockHelperImpl.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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
package me.aleksilassila.litematica.printer.v1_19.implementation; | ||
|
||
import me.aleksilassila.litematica.printer.v1_19.BlockHelper; | ||
import net.minecraft.block.AbstractButtonBlock; | ||
|
||
import java.util.Arrays; | ||
|
||
public class BlockHelperImpl extends BlockHelper { | ||
@Override | ||
public Class<?>[] getInteractiveBlocks() { | ||
return BlockHelper.interactiveBlocks; | ||
static { | ||
interactiveBlocks.addAll(Arrays.asList( | ||
AbstractButtonBlock.class | ||
)); | ||
} | ||
} |
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