Skip to content

Commit

Permalink
Removed Custom Item
Browse files Browse the repository at this point in the history
  • Loading branch information
XDPXI committed Nov 27, 2024
1 parent 24993b4 commit 72d060b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
18 changes: 0 additions & 18 deletions src/main/java/dev/xdpxi/xdlib/XDsLibrary.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

import com.mojang.brigadier.Command;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import dev.xdpxi.xdlib.api.mod.custom;
import lombok.Getter;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.minecraft.entity.Entity;
import net.minecraft.entity.ItemEntity;
import net.minecraft.entity.mob.HostileEntity;
import net.minecraft.item.Item;
import net.minecraft.item.Items;
import net.minecraft.scoreboard.AbstractTeam;
import net.minecraft.server.command.ServerCommandSource;
Expand Down Expand Up @@ -125,21 +123,6 @@ public static int whisper(ServerCommandSource source, String message, ServerPlay
}
}

public static void registerItems() {
try {
Item xdlibItem = custom.Item("xdlib_item", MOD_ID);
if (xdlibItem == null) {
LOGGER.error("[XDLib] Failed to create xdlib_item - Item creation returned null");
}

List<Item> items = List.of(xdlibItem);
custom.ItemGroup("xdlib_group", MOD_ID, xdlibItem, items);
} catch (Exception e) {
LOGGER.error("[XDLib] Failed to register items: {}", e.getMessage());
e.printStackTrace();
}
}

@Override
public void onInitialize() {
LOGGER.info("[XDLib] - Loading...");
Expand All @@ -153,7 +136,6 @@ public void onInitialize() {
}

updateChecker.checkForUpdate();
registerItems();

ServerTickEvents.END_WORLD_TICK.register(this::postWorldTick);

Expand Down
6 changes: 0 additions & 6 deletions src/main/resources/assets/xdlib/models/item/xdlib_item.json

This file was deleted.

Binary file not shown.

0 comments on commit 72d060b

Please sign in to comment.