Add CTMLib files

This commit is contained in:
Johann Bernhardt committed 2021-12-12 11:06:12 +01:00
1 parent b4165072a7
commit d05e019479
13 files changed
+1680

No files matched your search

@@ -0,0 +1,51 @@
package team.chisel.ctmlib;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.common.util.ForgeDirection;
public interface ISubmapManager {
/**
* Gets the icon for item rendering, based on side and item metadata.
*
* @param side
* Side of the ItemBlock.
* @param meta
* Metadata of the ItemBlock.
* @return The IIcon for rendering.
*/
IIcon getIcon(int side, int meta);
/**
* Gets the icon for world rendering, based on world position and side.
*/
IIcon getIcon(IBlockAccess world, int x, int y, int z, int side);
/**
* Hook for registering any custom icons you might need in this class. Will be called during the normal block method.
*
* @param modName
* The mod ID this submap was registered to.
* @param block
* The block being registered for.
* @param register
* The IIconRegister instance.
*/
@SideOnly(Side.CLIENT)
void registerIcons(String modName, Block block, IIconRegister register);
@SideOnly(Side.CLIENT)
RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world);
@SideOnly(Side.CLIENT)
void preRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side);
@SideOnly(Side.CLIENT)
void postRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side);
}