From 82455b38a1b78fbcfe5b99aa368bc0abb498e28d Mon Sep 17 00:00:00 2001 From: Type-32 Date: Tue, 11 Jun 2024 14:02:19 +0800 Subject: [PATCH] Deleted unnecessary class Signed-off-by: Type-32 --- .../DecomponentalizerInventory.java | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 src/main/java/cn/crtlprototypestudios/precisemanufacturing/foundation/block/decomponentalizer/DecomponentalizerInventory.java diff --git a/src/main/java/cn/crtlprototypestudios/precisemanufacturing/foundation/block/decomponentalizer/DecomponentalizerInventory.java b/src/main/java/cn/crtlprototypestudios/precisemanufacturing/foundation/block/decomponentalizer/DecomponentalizerInventory.java deleted file mode 100644 index cf0ffd0..0000000 --- a/src/main/java/cn/crtlprototypestudios/precisemanufacturing/foundation/block/decomponentalizer/DecomponentalizerInventory.java +++ /dev/null @@ -1,36 +0,0 @@ -package cn.crtlprototypestudios.precisemanufacturing.foundation.block.decomponentalizer; - -import cn.crtlprototypestudios.precisemanufacturing.foundation.ModTags; -import net.minecraft.world.item.ItemStack; -import net.minecraft.world.item.Items; -import net.minecraftforge.items.ItemStackHandler; -import net.minecraftforge.registries.ForgeRegistries; -import org.jetbrains.annotations.NotNull; - -public class DecomponentalizerInventory extends ItemStackHandler { - private final DecomponentalizerBlockEntity blockEntity; - public DecomponentalizerInventory(DecomponentalizerBlockEntity blockEntity) { - super(4); - this.blockEntity = blockEntity; - } - - @Override - protected void onContentsChanged(int slot) { - super.onContentsChanged(slot); - blockEntity.setChanged(); - } - - @Override - public boolean isItemValid(int slot, @NotNull ItemStack stack) { - return switch (slot) { - case 0 -> // Paper slot - stack.sameItem(new ItemStack(Items.PAPER)); - case 1 -> // Ink Slot - stack.sameItem(new ItemStack(Items.INK_SAC)); - case 2 -> // Gun Slot - stack.getItem().getRegistryName().toString().equals("tacz:modern_kinetic_gun"); - case 3 -> false; - default -> super.isItemValid(slot, stack); - }; - } -}