no message

This commit is contained in:
Pulxes-9244 committed 2022-02-03 16:48:16 +03:00
1 parent 8c1bd5995b
commit 93f114dceb
645 files changed
+59797

No files matched your search

@@ -0,0 +1,35 @@
package ab.client.render.block;
import org.lwjgl.opengl.GL11;
import ab.common.block.tile.TileManaContainer;
import ab.common.lib.register.BlockListAB;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.IBlockAccess;
public class RenderBlockManaContainer implements ISimpleBlockRenderingHandler {
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
GL11.glPushMatrix();
GL11.glTranslatef(-0.5F, -0.575F, -0.5F);
TileManaContainer container = new TileManaContainer();
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)container, 0.0D, 0.0D, 0.0D, 0.0F);
GL11.glPopMatrix();
}
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
return false;
}
public int getRenderId() {
return BlockListAB.blockManaContainerRI;
}
public boolean shouldRender3DInInventory(int modelId) {
return true;
}
}