Improved some documentation.

This commit is contained in:
Eloraam committed 2011-07-31 18:52:19 +00:00
1 parent 0d917cfdcc
commit 112adbef8f
3 files changed
+13 -4

No files matched your search

@@ -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);
@@ -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);
}
@@ -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);