diff --git a/src/main/java/dev/xdpxi/xdlib/init/ItemGroupInit.java b/src/main/java/dev/xdpxi/xdlib/init/ItemGroupInit.java deleted file mode 100644 index 8d5e0d5..0000000 --- a/src/main/java/dev/xdpxi/xdlib/init/ItemGroupInit.java +++ /dev/null @@ -1,32 +0,0 @@ -package dev.xdpxi.xdlib.init; - -import dev.xdpxi.xdlib.XDsLibrary; -import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroup; -import net.minecraft.item.ItemGroup; -import net.minecraft.registry.Registries; -import net.minecraft.registry.Registry; -import net.minecraft.text.Text; - -import java.util.Optional; - -public class ItemGroupInit { - public static final Text TITLE = Text.translatable("itemGroup." + XDsLibrary.MOD_ID + ".xdlib_group"); - - public static final ItemGroup EXAMPLE_GROUP = register("xdlib", FabricItemGroup.builder() - .displayName(TITLE) - .icon(ItemInit.EXAMPLE_ITEM::getDefaultStack) - .entries((displayContext, entries) -> Registries.ITEM.getIds() - .stream() - .filter(key -> key.getNamespace().equals(XDsLibrary.MOD_ID)) - .map(Registries.ITEM::getOrEmpty) - .map(Optional::orElseThrow) - .forEach(entries::add)) - .build()); - - public static T register(String name, T itemGroup) { - return Registry.register(Registries.ITEM_GROUP, XDsLibrary.id(name), itemGroup); - } - - public static void load() { - } -} \ No newline at end of file diff --git a/src/main/java/dev/xdpxi/xdlib/init/ItemInit.java b/src/main/java/dev/xdpxi/xdlib/init/ItemInit.java deleted file mode 100644 index 61eca14..0000000 --- a/src/main/java/dev/xdpxi/xdlib/init/ItemInit.java +++ /dev/null @@ -1,17 +0,0 @@ -package dev.xdpxi.xdlib.init; - -import dev.xdpxi.xdlib.XDsLibrary; -import net.minecraft.item.Item; -import net.minecraft.registry.Registries; -import net.minecraft.registry.Registry; - -public class ItemInit { - public static final Item EXAMPLE_ITEM = register("xdlib_item", new Item(new Item.Settings())); - - public static T register(String name, T item) { - return Registry.register(Registries.ITEM, XDsLibrary.id(name), item); - } - - public static void load() { - } -} \ No newline at end of file diff --git a/src/main/java/dev/xdpxi/xdlib/list/FoodList.java b/src/main/java/dev/xdpxi/xdlib/list/FoodList.java deleted file mode 100644 index 4a41ae9..0000000 --- a/src/main/java/dev/xdpxi/xdlib/list/FoodList.java +++ /dev/null @@ -1,14 +0,0 @@ -package dev.xdpxi.xdlib.list; - -import net.minecraft.component.type.FoodComponent; -import net.minecraft.entity.effect.StatusEffectInstance; -import net.minecraft.entity.effect.StatusEffects; - -public class FoodList { - public static final FoodComponent EXAMPLE_FOOD_COMPONENT = new FoodComponent.Builder() - .nutrition(4) - .saturationModifier(0.3F) - .alwaysEdible() - .statusEffect(new StatusEffectInstance(StatusEffects.ABSORPTION, 20 * 30, 1), 0.75F) - .build(); -} \ No newline at end of file diff --git a/src/main/java/dev/xdpxi/xdlib/list/enums/XDsLibraryToolMaterials.java b/src/main/java/dev/xdpxi/xdlib/list/enums/XDsLibraryToolMaterials.java deleted file mode 100644 index 57da3c8..0000000 --- a/src/main/java/dev/xdpxi/xdlib/list/enums/XDsLibraryToolMaterials.java +++ /dev/null @@ -1,64 +0,0 @@ -package dev.xdpxi.xdlib.list.enums; - -import dev.xdpxi.xdlib.init.ItemInit; -import dev.xdpxi.xdlib.list.TagList; -import net.minecraft.block.Block; -import net.minecraft.item.ToolMaterial; -import net.minecraft.recipe.Ingredient; -import net.minecraft.registry.tag.TagKey; - -public enum XDsLibraryToolMaterials implements ToolMaterial { - EXAMPLE( - 3430, - 12.0f, - 5.0f, - TagList.Blocks.INCORRECT_FOR_EXAMPLE_TOOL, - 15, - Ingredient.ofItems(ItemInit.EXAMPLE_ITEM) - ); - - private final int durability; - private final float miningSpeedMultiplier, attackDamage; - private final TagKey inverseTag; - private final int enchantability; - private final Ingredient repairIngredient; - - XDsLibraryToolMaterials(int durability, float miningSpeedMultiplier, float attackDamage, TagKey inverseTag, int enchantability, Ingredient repairIngredient) { - this.durability = durability; - this.miningSpeedMultiplier = miningSpeedMultiplier; - this.attackDamage = attackDamage; - this.inverseTag = inverseTag; - this.enchantability = enchantability; - this.repairIngredient = repairIngredient; - } - - @Override - public int getDurability() { - return this.durability; - } - - @Override - public float getMiningSpeedMultiplier() { - return this.miningSpeedMultiplier; - } - - @Override - public float getAttackDamage() { - return this.attackDamage; - } - - @Override - public TagKey getInverseTag() { - return this.inverseTag; - } - - @Override - public int getEnchantability() { - return this.enchantability; - } - - @Override - public Ingredient getRepairIngredient() { - return this.repairIngredient; - } -} \ No newline at end of file