Applied-Energistics-2-tiler.../src/main/java/appeng/bootstrap/IBlockRendering.java

35 lines
1.1 KiB
Java
Raw Normal View History

package appeng.bootstrap;
import java.util.function.BiFunction;
import net.minecraft.client.renderer.block.model.IBakedModel;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.client.renderer.block.statemap.IStateMapper;
import net.minecraft.client.renderer.color.IBlockColor;
import net.minecraft.client.renderer.color.IItemColor;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
/**
* Allows for client-side rendering to be customized in the context of block/item registration.
*/
public interface IBlockRendering
{
@SideOnly( Side.CLIENT )
IBlockRendering modelCustomizer( BiFunction<ModelResourceLocation, IBakedModel, IBakedModel> customizer );
@SideOnly( Side.CLIENT )
IBlockRendering blockColor( IBlockColor blockColor );
@SideOnly( Side.CLIENT )
IBlockRendering stateMapper( IStateMapper mapper );
@SideOnly( Side.CLIENT )
IBlockRendering tesr( TileEntitySpecialRenderer<?> tesr );
}