From 7acdeb74dec1faec0f790cebdf6bea06a8e66f05 Mon Sep 17 00:00:00 2001 From: GamingCrew69 <85794256+GamingCrew69@users.noreply.github.com> Date: Fri, 27 Oct 2023 02:12:19 +0200 Subject: [PATCH] Code cleanup --- src/main/java/com/quizer9o8/strata/Strata.java | 12 ++++-------- .../java/com/quizer9o8/strata/list/BlockList.java | 2 +- .../java/com/quizer9o8/strata/list/ItemList.java | 1 - 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/quizer9o8/strata/Strata.java b/src/main/java/com/quizer9o8/strata/Strata.java index 9c61e180..210a9164 100644 --- a/src/main/java/com/quizer9o8/strata/Strata.java +++ b/src/main/java/com/quizer9o8/strata/Strata.java @@ -2,15 +2,13 @@ import com.quizer9o8.strata.list.BlockList; import com.quizer9o8.strata.list.ItemList; - -import net.minecraft.tags.BlockTags; +//import net.minecraft.data.tags.BlockTagsProvider; import net.minecraft.world.item.CreativeModeTab; -import net.minecraft.resources.ResourceLocation; +//import net.minecraft.resources.ResourceLocation; import net.minecraft.world.item.ItemStack; +//import net.minecraftforge.common.Tags; import net.minecraftforge.eventbus.api.IEventBus; -import net.minecraftforge.eventbus.api.SubscribeEvent; - - +//import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.event.lifecycle.FMLDedicatedServerSetupEvent; @@ -18,8 +16,6 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; - - // @Mod tells everything this is the main class. @Mod(Strata.MOD_ID) @Mod.EventBusSubscriber(modid = Strata.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) diff --git a/src/main/java/com/quizer9o8/strata/list/BlockList.java b/src/main/java/com/quizer9o8/strata/list/BlockList.java index 90ee43e5..a60ea6de 100644 --- a/src/main/java/com/quizer9o8/strata/list/BlockList.java +++ b/src/main/java/com/quizer9o8/strata/list/BlockList.java @@ -27,7 +27,7 @@ public class BlockList /*Igneous Rocks*/ //Aa - public static final RegistryObject AA = BLOCKS.register("aa", () -> new Block(Block.Properties.of(Material.STONE).sound(SoundType.STONE).requiresCorrectToolForDrops().requiresCorrectToolForDrops().destroyTime(1.5f).explosionResistance(6.0f))); + public static final RegistryObject AA = BLOCKS.register("aa", () -> new Block(Block.Properties.of(Material.STONE).sound(SoundType.STONE).requiresCorrectToolForDrops().destroyTime(1.5f).explosionResistance(6.0f))); public static final RegistryObject AA_SLAB = BLOCKS.register("aa_slab", () -> new SlabBlock(Block.Properties.copy(AA.get()))); public static final RegistryObject AA_STAIRS = BLOCKS.register("aa_stairs", () -> new StrataStairsBlock(AA.get().defaultBlockState(), Block.Properties.copy(AA.get()))); public static final RegistryObject AA_WALL = BLOCKS.register("aa_wall", () -> new WallBlock(Block.Properties.copy(AA.get()))); diff --git a/src/main/java/com/quizer9o8/strata/list/ItemList.java b/src/main/java/com/quizer9o8/strata/list/ItemList.java index b6406a24..5b92d298 100644 --- a/src/main/java/com/quizer9o8/strata/list/ItemList.java +++ b/src/main/java/com/quizer9o8/strata/list/ItemList.java @@ -9,7 +9,6 @@ import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; - public class ItemList { public static final DeferredRegister ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, Strata.MOD_ID);