diff --git a/origins/src/main/java/io/github/dueris/originspaper/OriginsPaper.java b/origins/src/main/java/io/github/dueris/originspaper/OriginsPaper.java index 306d8158..03a6f116 100644 --- a/origins/src/main/java/io/github/dueris/originspaper/OriginsPaper.java +++ b/origins/src/main/java/io/github/dueris/originspaper/OriginsPaper.java @@ -28,7 +28,6 @@ import io.github.dueris.originspaper.power.type.PowerTypes; import io.github.dueris.originspaper.power.type.origins.OriginsPowerTypes; import io.github.dueris.originspaper.registry.ApoliClassData; -import io.github.dueris.originspaper.registry.ModBlocks; import io.github.dueris.originspaper.registry.ModItems; import io.github.dueris.originspaper.registry.ModTags; import io.github.dueris.originspaper.util.ChoseOriginCriterion; @@ -125,7 +124,6 @@ public static void initialize(@NotNull BootstrapContext context) { IdentifierAlias.GLOBAL.addNamespaceAlias("apoli", "calio"); IdentifierAlias.GLOBAL.addNamespaceAlias("origins", "apoli"); - ModBlocks.register(); ModTags.register(); ModItems.register(); EnderianPearlEntity.bootstrap(); diff --git a/origins/src/main/java/io/github/dueris/originspaper/registry/ModBlocks.java b/origins/src/main/java/io/github/dueris/originspaper/registry/ModBlocks.java deleted file mode 100644 index a60e3af7..00000000 --- a/origins/src/main/java/io/github/dueris/originspaper/registry/ModBlocks.java +++ /dev/null @@ -1,40 +0,0 @@ -package io.github.dueris.originspaper.registry; - -import io.github.dueris.originspaper.OriginsPaper; -import net.minecraft.core.Registry; -import net.minecraft.core.registries.BuiltInRegistries; -import net.minecraft.resources.ResourceLocation; -import net.minecraft.world.item.BlockItem; -import net.minecraft.world.item.Item; -import net.minecraft.world.level.block.Block; -import org.jetbrains.annotations.NotNull; - -import java.util.function.Supplier; - -public class ModBlocks { - - /* public static final TemporaryCobwebBlock TEMPORARY_COBWEB = register("temporary_cobweb", false, () -> new TemporaryCobwebBlock(BlockBehaviour.Properties.of() - .mapColor(MapColor.WOOL) - .strength(4.0F) - .requiresCorrectToolForDrops() - .noCollission() - .forceSolidOn())); */ // TODO - - public static void register() { - - } - - private static @NotNull B register(String name, boolean withBlockItem, @NotNull Supplier blockSupplier) { - - ResourceLocation blockId = OriginsPaper.identifier(name); - B block = Registry.register(BuiltInRegistries.BLOCK, blockId, blockSupplier.get()); - - if (withBlockItem) { - Registry.register(BuiltInRegistries.ITEM, blockId, new BlockItem(block, new Item.Properties())); - } - - return block; - - } - -}