diff options
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/Entry.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/Entry.java | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/Entry.java b/src/main/java/me/shedaniel/rei/api/Entry.java deleted file mode 100644 index c0eb609bb..000000000 --- a/src/main/java/me/shedaniel/rei/api/Entry.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Roughly Enough Items by Danielshe. - * Licensed under the MIT License. - */ - -package me.shedaniel.rei.api; - -import me.shedaniel.rei.api.annotations.ToBeRemoved; -import me.shedaniel.rei.impl.FluidEntry; -import me.shedaniel.rei.impl.ItemStackEntry; -import net.minecraft.fluid.Fluid; -import net.minecraft.item.ItemStack; - -import javax.annotation.Nullable; - -@Deprecated -@ToBeRemoved -public interface Entry extends Cloneable { - @SuppressWarnings("deprecation") - static Entry create(ItemStack itemStack) { - return new ItemStackEntry(itemStack); - } - - @SuppressWarnings("deprecation") - static Entry create(Fluid fluid) { - return new FluidEntry(fluid); - } - - Type getEntryType(); - - @Nullable - ItemStack getItemStack(); - - @Nullable - Fluid getFluid(); - - Entry clone(); - - default EntryStack toEntryStack() { - if (getEntryType() == Type.ITEM) - return EntryStack.create(getItemStack()); - if (getEntryType() == Type.FLUID) - return EntryStack.create(getFluid()); - return EntryStack.empty(); - } - - boolean equalsEntry(Entry other, boolean checkTags); - - public static enum Type { - ITEM, FLUID - } -} |
