I'm working on a mod and have introduced a new type of liquid, I have all aspects of this liquid functioning well with the exception of dispenser behavior. When a bucket of the new liquid is placed in the dispenser it correctly places a block of the fluid however the empty bucket cannot collect the fluid source when the dispenser is activated a second time.
I can get the correct behavior if I remove the following line and register an alternate BehaviorBucketEmptyDispense:
BlockDispenser.dispenseBehaviorRegistry.putObject(Item.bucketEmpty, new BehaviorBucketEmptyDispense(this));
However this is in the MinecraftServer.java file I'd like to avoid making changes that potential introduce incompatibilities. Is there a hook I'm missing which allows access to the Empty Bucket Dispenser action?