From 9f5a9eae9a7863412cc5eb433bf15e5ee71da616 Mon Sep 17 00:00:00 2001 From: Danielshe Date: Sun, 3 Nov 2019 14:44:52 +0800 Subject: 3.2.1 --- src/main/java/me/shedaniel/rei/impl/FluidEntry.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/main/java/me/shedaniel/rei/impl/FluidEntry.java') 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; + } } -- cgit