diff options
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/FluidEntry.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/impl/FluidEntry.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/FluidEntry.java b/src/main/java/me/shedaniel/rei/impl/FluidEntry.java index d89002df2..795ed0deb 100644 --- a/src/main/java/me/shedaniel/rei/impl/FluidEntry.java +++ b/src/main/java/me/shedaniel/rei/impl/FluidEntry.java @@ -6,11 +6,14 @@ package me.shedaniel.rei.impl; import me.shedaniel.rei.api.Entry; +import me.shedaniel.rei.api.annotations.ToBeRemoved; import net.minecraft.fluid.Fluid; import net.minecraft.item.ItemStack; import javax.annotation.Nullable; +@ToBeRemoved +@Deprecated public class FluidEntry implements Entry { private Fluid fluid; @@ -35,4 +38,16 @@ public class FluidEntry implements Entry { public Fluid getFluid() { return fluid; } + + @Override + public Entry clone() { + return this; + } + + @Override + public boolean equalsEntry(Entry other, boolean checkTags) { + if (other.getEntryType() == Type.FLUID) { + return other.getFluid().matchesType(getFluid()); + } else return false; + } } |
