So like the title suggests, I would like to change water so it flows slower. The relevant value is sadly hard coded in a getter function, so I thought the easiest way would be to make my own Fluid (SlowWaterFluid)
and discovered half way through, that I should also make my own Block (SlowLiquidBlock)
, which are mostly the Vanilla classes copied and altered. But I ran into a problem with the getFlowing/getSource functions. I register both the fluids(source/flowing) into their registries in their own init classes and register those in the constructor of my main class.
When I try to reference in the fluid class via SLOW_WATER.get()/SLOW_FLOWING_WATER.get() it only returns a null value, if I guard it in an if(SLOW_WATER.isPresent()) block I get an error during the registration.
What am I doing wrong/what am I misunderstanding?
Edit: Correctied the code formatting