Improved some documentation.

This commit is contained in:
Eloraam 2011-07-31 18:52:19 +00:00
parent e6cc73ce55
commit 73365fcbe4
3 changed files with 13 additions and 4 deletions

View file

@ -17,8 +17,10 @@ import net.minecraft.src.IBlockAccess;
public interface IConnectRedstone {
/**
* When this returns false, the block at location i, j, k cannot provide
* redstone power to the direction given in parameter, otherwise it can.
* When this returns false, the block at location i, j, k cannot make
* a redstone connection in the direction given in parameter, otherwise
* it can. Use to control which sides are inputs and outputs for redstone
* wires.
*/
public boolean canConnectRedstone(IBlockAccess iba, int i, int j, int k,
int dir);

View file

@ -5,6 +5,13 @@
package net.minecraft.src.forge;
/** This interface is to be implemented by a Block class. Allows a block
* type to perform rendering in both render passes, in case some parts of the
* block are solid and others are transparent.
*/
public interface IMultipassRender {
/** Returns true when the block has things to render in this render
* pass.
*/
public boolean canRenderInPass(int n);
}

View file

@ -18,8 +18,8 @@ public interface IOverrideReplace {
/**
* Return true if this block has to take control over replacement, for
* the intended replacement given by the parameter bid. If true, then
* the actual replacement is supposed to have occured in the block.
* the intended replacement given by the parameter bid. If false, then
* the block replacement will be prevented.
*/
public boolean canReplaceBlock(World world, int i, int j, int k, int bid);