mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 18:45:09 +00:00
Deprecate int IDs in FluidRegistry. Modders should only ever use the String name. Also add a 'friendly' exception when attempting to get an ID for a unregistered fluid. Closes #1374
This commit is contained in:
1 parent
2302963a9f
commit
dcda451a0a
3 files changed
+14
-12
No files matched your search
@@ -165,6 +165,7 @@ public class Fluid
|
||||
return this.fluidName;
|
||||
}
|
||||
|
||||
@Deprecated // Modders should never actually use int ID, use String
|
||||
public final int getID()
|
||||
{
|
||||
return FluidRegistry.getFluidID(this.fluidName);
|
||||
|
||||
Reference in new issue
Block a user