2014-08-10 04:20:49 +02:00
|
|
|
package mekanism.common.base;
|
2013-05-28 06:29:29 +02:00
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implement if you have metadata-sensitive block rendering bounds.
|
|
|
|
* @author aidancbrady
|
|
|
|
*
|
|
|
|
*/
|
2023-01-22 17:18:34 +01:00
|
|
|
public interface ISpecialBounds {
|
|
|
|
/**
|
|
|
|
* Sets the render bounds for this particular block's subtype.
|
|
|
|
* @param block - the Block instance the renderer pertains to.
|
|
|
|
* @param metadata - metadata of the block being rendered
|
|
|
|
*/
|
|
|
|
public void setRenderBounds(Block block, int metadata);
|
2014-03-08 02:00:25 +01:00
|
|
|
|
2023-01-22 17:18:34 +01:00
|
|
|
/**
|
|
|
|
* Whether or not to call the default setBlockBoundsForItemRender() before rendering
|
|
|
|
* this block as an item.
|
|
|
|
* @param metadata - metadata of the block being rendered
|
|
|
|
* @return whether or not to call default bound setting on this block's metadata.
|
|
|
|
*/
|
|
|
|
public boolean doDefaultBoundSetting(int metadata);
|
2013-05-28 06:29:29 +02:00
|
|
|
}
|