From cc605065b8a901c11f8119ac02806d84eb99993d Mon Sep 17 00:00:00 2001 From: Slqmy <90862990+Slqmy@users.noreply.github.com> Date: Tue, 13 Aug 2024 14:26:17 +0100 Subject: [PATCH] Remove example multiblock --- .../custom_multiblock/CustomMultiblock.java | 2 +- .../CustomMultiblockManager.java | 3 -- .../blocks/MultiFurnace.java | 35 ------------------- 3 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 src/main/java/net/slqmy/template_paper_plugin/custom_multiblock/blocks/MultiFurnace.java diff --git a/src/main/java/net/slqmy/template_paper_plugin/custom_multiblock/CustomMultiblock.java b/src/main/java/net/slqmy/template_paper_plugin/custom_multiblock/CustomMultiblock.java index 6ae2ebe2..e4ec7d16 100644 --- a/src/main/java/net/slqmy/template_paper_plugin/custom_multiblock/CustomMultiblock.java +++ b/src/main/java/net/slqmy/template_paper_plugin/custom_multiblock/CustomMultiblock.java @@ -1,5 +1,5 @@ package net.slqmy.template_paper_plugin.custom_multiblock; public enum CustomMultiblock { - MultiFurnace; + } diff --git a/src/main/java/net/slqmy/template_paper_plugin/custom_multiblock/CustomMultiblockManager.java b/src/main/java/net/slqmy/template_paper_plugin/custom_multiblock/CustomMultiblockManager.java index 6447e781..6f3c2ac5 100644 --- a/src/main/java/net/slqmy/template_paper_plugin/custom_multiblock/CustomMultiblockManager.java +++ b/src/main/java/net/slqmy/template_paper_plugin/custom_multiblock/CustomMultiblockManager.java @@ -18,7 +18,6 @@ import net.slqmy.template_paper_plugin.custom_multiblock.AbstractCustomMultiblock; import net.slqmy.template_paper_plugin.custom_multiblock.CustomMultiblock; -import net.slqmy.template_paper_plugin.custom_multiblock.blocks.MultiFurnace; import net.slqmy.template_paper_plugin.TemplatePaperPlugin; public class CustomMultiblockManager { @@ -35,8 +34,6 @@ public class CustomMultiblockManager { public CustomMultiblockManager(TemplatePaperPlugin plugin) { this.plugin = plugin; - new MultiFurnace(plugin, this); - multiblocksFilePath = plugin.getDataFolder() + File.separator + multiblocksResourceFilePath; multiblocksFile = new File(multiblocksFilePath); diff --git a/src/main/java/net/slqmy/template_paper_plugin/custom_multiblock/blocks/MultiFurnace.java b/src/main/java/net/slqmy/template_paper_plugin/custom_multiblock/blocks/MultiFurnace.java deleted file mode 100644 index 66b36e99..00000000 --- a/src/main/java/net/slqmy/template_paper_plugin/custom_multiblock/blocks/MultiFurnace.java +++ /dev/null @@ -1,35 +0,0 @@ -package net.slqmy.template_paper_plugin.custom_multiblock.blocks; - -import java.util.ArrayList; -import java.util.List; - -import org.bukkit.Location; -import org.bukkit.Material; -import org.bukkit.block.Block; - -import net.slqmy.template_paper_plugin.TemplatePaperPlugin; -import net.slqmy.template_paper_plugin.custom_multiblock.AbstractCustomMultiblock; -import net.slqmy.template_paper_plugin.custom_multiblock.CustomMultiblock; -import net.slqmy.template_paper_plugin.custom_multiblock.CustomMultiblockManager; - -public class MultiFurnace extends AbstractCustomMultiblock { - - public MultiFurnace(TemplatePaperPlugin plugin, CustomMultiblockManager customMultiblockManager) { - super(plugin, customMultiblockManager, CustomMultiblock.MultiFurnace); - } - - @Override - protected List generateCustomMultiblock(Location placeLocation) { - List result = new ArrayList<>(); - - placeLocation.getBlock().setType(Material.FURNACE); - - result.add(placeLocation.getBlock()); - - placeLocation.add(0, 1, 0).getBlock().setType(Material.BLAST_FURNACE); - - result.add(placeLocation.getBlock()); - - return result; - } -}