From e3bc1f17b2f5fdafb027f7538216a96b3c42cd12 Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 24 May 2023 17:05:59 +0200 Subject: [PATCH] Added Stone Type for `BaseWallBlock` --- .../java/org/betterx/bclib/blocks/BaseWallBlock.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/betterx/bclib/blocks/BaseWallBlock.java b/src/main/java/org/betterx/bclib/blocks/BaseWallBlock.java index 9ae064d6..91af7bff 100644 --- a/src/main/java/org/betterx/bclib/blocks/BaseWallBlock.java +++ b/src/main/java/org/betterx/bclib/blocks/BaseWallBlock.java @@ -26,10 +26,10 @@ import java.util.Map; import java.util.Optional; import org.jetbrains.annotations.Nullable; -public class BaseWallBlock extends WallBlock implements BlockModelProvider { +public abstract class BaseWallBlock extends WallBlock implements BlockModelProvider { private final Block parent; - public BaseWallBlock(Block source) { + protected BaseWallBlock(Block source) { super(Properties.copy(source).noOcclusion()); this.parent = source; } @@ -123,4 +123,10 @@ public class BaseWallBlock extends WallBlock implements BlockModelProvider { return builder.build(); } + + public static class Stone extends BaseWallBlock { + public Stone(Block source) { + super(source); + } + } }