From 85497cbf6ead5e1ad63db988a96f13c730adf686 Mon Sep 17 00:00:00 2001 From: ganymedes01 Date: Wed, 18 Jun 2014 15:26:14 +0100 Subject: [PATCH] Added FluidStack sensitive version for Fluid's localised name Would be helpful for determining names for more complex FluidStacks (with tag compounds for example) --- src/main/java/net/minecraftforge/fluids/Fluid.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/net/minecraftforge/fluids/Fluid.java b/src/main/java/net/minecraftforge/fluids/Fluid.java index d47dfb4c9..32af741cb 100644 --- a/src/main/java/net/minecraftforge/fluids/Fluid.java +++ b/src/main/java/net/minecraftforge/fluids/Fluid.java @@ -190,6 +190,15 @@ public class Fluid /** * Returns the localized name of this fluid. */ + public String getLocalizedName(FluidStack stack) + { + return getLocalizedName(); + } + + /** + * Use the FluidStack sensitive version above + */ + @Deprecated public String getLocalizedName() { String s = this.getUnlocalizedName();