aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/Entry.java
diff options
context:
space:
mode:
authorDanielshe <shekwancheung0528@gmail.com>2019-11-03 19:02:00 +0800
committerDanielshe <shekwancheung0528@gmail.com>2019-11-03 19:02:00 +0800
commitad7f945d6f724d51ee843b334838fda84c6197f2 (patch)
treeb67cd5a1b95826435ef54813e4221ff3fda39212 /src/main/java/me/shedaniel/rei/api/Entry.java
parent9f5a9eae9a7863412cc5eb433bf15e5ee71da616 (diff)
downloadRoughlyEnoughItems-ad7f945d6f724d51ee843b334838fda84c6197f2.tar.gz
RoughlyEnoughItems-ad7f945d6f724d51ee843b334838fda84c6197f2.tar.bz2
RoughlyEnoughItems-ad7f945d6f724d51ee843b334838fda84c6197f2.zip
API Changes
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/Entry.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/Entry.java52
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
- }
-}