mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 14:34:28 +00:00
Remove deprecated Fluid stuff
This commit is contained in:
1 parent
bf8fa5d286
commit
6f1a44a405
16 files changed
+90
-1847
No files matched your search
@@ -209,28 +209,6 @@ public abstract class FluidRegistry
|
||||
return fluids.get(fluidName);
|
||||
}
|
||||
|
||||
@Deprecated // Modders should never actually use int ID, use String
|
||||
public static Fluid getFluid(int fluidID)
|
||||
{
|
||||
return fluidIDs.inverse().get(fluidID);
|
||||
}
|
||||
|
||||
@Deprecated // Modders should never actually use int ID, use String
|
||||
public static int getFluidID(Fluid fluid)
|
||||
{
|
||||
Integer ret = fluidIDs.get(fluid);
|
||||
if (ret == null) throw new RuntimeException("Attempted to access ID for unregistered fluid, Stop using this method modder!");
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Deprecated // Modders should never actually use int ID, use String
|
||||
public static int getFluidID(String fluidName)
|
||||
{
|
||||
Integer ret = fluidIDs.get(getFluid(fluidName));
|
||||
if (ret == null) throw new RuntimeException("Attempted to access ID for unregistered fluid, Stop using this method modder!");
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static String getFluidName(Fluid fluid)
|
||||
{
|
||||
return fluids.inverse().get(fluid);
|
||||
|
||||
Reference in new issue
Block a user