net.minecraft.src.forge
Interface IOverrideReplace


public interface IOverrideReplace

This interface is to be implemented by block classes. It will allow a block to control how it can be replaced

See Also:
Block

Method Summary
 boolean canReplaceBlock(net.minecraft.src.World world, int i, int j, int k, int bid)
          Return true if this block has to take control over replacement, for the intended replacement given by the parameter bid.
 boolean getReplacedSuccess()
          Return the status of the actual replacement.
 

Method Detail

canReplaceBlock

boolean canReplaceBlock(net.minecraft.src.World world,
                        int i,
                        int j,
                        int k,
                        int bid)
Return true if this block has to take control over replacement, for the intended replacement given by the parameter bid. If false, then the block replacement will be prevented.


getReplacedSuccess

boolean getReplacedSuccess()
Return the status of the actual replacement.