Jump to content

How to properly use IFluidHandler.canDrain ?


Two

Recommended Posts

Hi,

 

I am currently creating a block that is supposed to drain from neighbor fluid handlers. While it works fine I noticed that it cannot access BuildCraft tanks, because the BC tank is implemented to always return false for IFluidHandler.canDrain. As far as I understand the doc for this function, it should return true if the tank can probably be drained from the given direction, so the BC tank says that it can never be drained. But yet the BC pipes obviously can do that.

 

So my question is: am I understanding this function wrong, so should I ignore the canDrain? Or is BC doing this wrong and should return true?

My Mods

 

New Dawn - A completely new terrain engine for Minecraft

TwoTility - Blocks and Items for a better Minecraft

TwoGraves - Keeps your items safe on death

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.