net.minecraft.src.forge
Interface IBucketHandler


public interface IBucketHandler


Method Summary
 net.minecraft.src.ItemStack fillCustomBucket(net.minecraft.src.World w, int i, int j, int k)
          This is called before Minecraft tries to fill a bucket with water or lava.
 

Method Detail

fillCustomBucket

net.minecraft.src.ItemStack fillCustomBucket(net.minecraft.src.World w,
                                             int i,
                                             int j,
                                             int k)
This is called before Minecraft tries to fill a bucket with water or lava. If it returns a non-null result, then the filling process will be stopped and the empty bucket will be changed to the result of this subprogram.

See Also:
MinecraftForge.registerCustomBucketHander(IBucketHandler)