当前位置: 首页>>代码示例>>Java>>正文


Java ConfigBlocks.blockJar方法代码示例

本文整理汇总了Java中thaumcraft.common.config.ConfigBlocks.blockJar方法的典型用法代码示例。如果您正苦于以下问题:Java ConfigBlocks.blockJar方法的具体用法?Java ConfigBlocks.blockJar怎么用?Java ConfigBlocks.blockJar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在thaumcraft.common.config.ConfigBlocks的用法示例。


在下文中一共展示了ConfigBlocks.blockJar方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: renderInventoryBlock

import thaumcraft.common.config.ConfigBlocks; //导入方法依赖的package包/类
@Override
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
    GL11.glPushMatrix();
    GL11.glEnable(3042);
    GL11.glBlendFunc(770, 771);
    Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
    IIcon i1 = ((BlockJar) ConfigBlocks.blockJar).iconJarTop;
    IIcon i2 = ((BlockJar) ConfigBlocks.blockJar).iconJarSide;
    block.setBlockBounds(W3, 0.0F, W3, W13, W12, W13);
    renderer.setRenderBoundsFromBlock(block);
    drawFaces(renderer, block, ((BlockJar) ConfigBlocks.blockJar).iconJarBottom, i1, i2, i2, i2, i2, true);
    block.setBlockBounds(W5, W12, W5, W11, W14, W11);
    renderer.setRenderBoundsFromBlock(block);
    drawFaces(renderer, block, ((BlockJar) ConfigBlocks.blockJar).iconJarBottom, i1, i2, i2, i2, i2, true);
    GL11.glPopMatrix();
}
 
开发者ID:makeoo,项目名称:Gadomancy,代码行数:17,代码来源:BlockExtendedNodeJarRenderer.java

示例2: GuiButtonAllowVoid

import thaumcraft.common.config.ConfigBlocks; //导入方法依赖的package包/类
public GuiButtonAllowVoid( final int ID, final int xPosition, final int yPosition )
{
	super( ID, xPosition, yPosition, GuiButtonAllowVoid.BUTTON_SIZE, GuiButtonAllowVoid.BUTTON_SIZE, "" );

	// Ensure we have made the void jar stack
	if( GuiButtonAllowVoid.voidJar == null )
	{
		GuiButtonAllowVoid.voidJar = new ItemStack( ConfigBlocks.blockJar, 1, 3 );
	}
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:11,代码来源:GuiButtonAllowVoid.java

示例3: populateTCItems

import thaumcraft.common.config.ConfigBlocks; //导入方法依赖的package包/类
private void populateTCItems()
{
	// Shards
	this.AirShard = new ItemStack( ConfigItems.itemShard, 1, 0 );
	this.FireShard = new ItemStack( ConfigItems.itemShard, 1, 1 );
	this.WaterShard = new ItemStack( ConfigItems.itemShard, 1, 2 );
	this.EarthShard = new ItemStack( ConfigItems.itemShard, 1, 3 );
	this.OrderShard = new ItemStack( ConfigItems.itemShard, 1, 4 );
	this.EntropyShard = new ItemStack( ConfigItems.itemShard, 1, 5 );
	this.BallanceShard = new ItemStack( ConfigItems.itemShard, 1, 6 );

	// Resources
	this.Nitor = new ItemStack( ConfigItems.itemResource, 1, 1 );
	this.ThaumiumIngot = new ItemStack( ConfigItems.itemResource, 1, 2 );
	this.VisFilter = new ItemStack( ConfigItems.itemResource, 1, 8 );
	this.SalisMundus = new ItemStack( ConfigItems.itemResource, 1, 14 );

	// Blocks
	this.WardedJar = new ItemStack( ConfigBlocks.blockJar, 1, 0 );
	this.ArcaneWorkTable = new ItemStack( ConfigBlocks.blockTable, 1, 15 );
	this.FilterTube = new ItemStack( ConfigBlocks.blockTube, 1, 3 );
	this.WardedGlass = this.getItemOrAlt( Config.wardedStone, new ItemStack( ConfigBlocks.blockCosmeticOpaque, 1, 2 ), this.VanillaGlass );
	this.EssentiaMirror = (ItemStack)this.getItemOrAlt( Config.allowMirrors, new ItemStack( ConfigBlocks.blockMirror, 1, 6 ), this.WardedJar );

	// Items
	this.Thaumometer = new ItemStack( ConfigItems.itemThaumometer );
	this.Thaumonomicon = new ItemStack( ConfigItems.itemThaumonomicon );
	this.EtheralEssence = new ItemStack( ConfigItems.itemWispEssence );
	this.ZombieBrain = new ItemStack( ConfigItems.itemZombieBrain );
	this.QuickSilverDrop = new ItemStack( ConfigItems.itemNugget, 1, 5 );

}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:33,代码来源:CommonDependantItems.java

示例4: renderItem

import thaumcraft.common.config.ConfigBlocks; //导入方法依赖的package包/类
public void renderItem(IItemRenderer.ItemRenderType type, ItemStack item, Object... data) {
    if (item.getItem() == RegisteredItems.itemExtendedNodeJar) {
        if (type == IItemRenderer.ItemRenderType.ENTITY) {
            GL11.glTranslatef(-0.5F, -0.25F, -0.5F);
        } else if ((type == IItemRenderer.ItemRenderType.EQUIPPED) && ((data[1] instanceof EntityPlayer))) {
            GL11.glTranslatef(0.0F, 0.0F, -0.5F);
        }
        TileJarNode tjf = new TileJarNode();
        if (item.hasTagCompound()) {
            AspectList aspects = ((ItemExtendedNodeJar) item.getItem()).getAspects(item);
            if (aspects != null) {
                tjf.setAspects(aspects);
                tjf.setNodeType(((ItemExtendedNodeJar) item.getItem()).getNodeType(item));
                tjf.setNodeModifier(((ItemExtendedNodeJar) item.getItem()).getNodeModifier(item));
            }
        }
        tjf.blockType = ConfigBlocks.blockJar;
        tjf.blockMetadata = 2;
        GL11.glPushMatrix();
        TileEntityRendererDispatcher.instance.renderTileEntityAt(new TileJar(), 0.0D, 0.0D, 0.0D, 0.0F);
        GL11.glPopMatrix();
        GL11.glPushMatrix();
        GL11.glTranslated(0.5D, 0.4D, 0.5D);
        ItemNodeRenderer.renderItemNode(tjf);
        GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
        ItemNodeRenderer.renderItemNode(tjf);
        GL11.glRotatef(90.0F, 1.0F, 0.0F, 0.0F);
        ItemNodeRenderer.renderItemNode(tjf);
        GL11.glPopMatrix();


        GL11.glPushMatrix();
        GL11.glTranslatef(0.5F, 0.5F, 0.5F);
        GL11.glEnable(3042);
        GL11.glBlendFunc(770, 771);
        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
        this.rb.useInventoryTint = true;
        this.rb.renderBlockAsItem(RegisteredBlocks.blockExtendedNodeJar, item.getItemDamage(), 1.0F);
        GL11.glPopMatrix();


        GL11.glEnable(32826);
    }
}
 
开发者ID:makeoo,项目名称:Gadomancy,代码行数:46,代码来源:ItemJarExtendedNodeRenderer.java

示例5: StickyJarResearchItem

import thaumcraft.common.config.ConfigBlocks; //导入方法依赖的package包/类
public StickyJarResearchItem(String key, int col, int row, int complex, AspectList tags) {
    super(key, col, row, complex, tags, new ItemStack(ConfigBlocks.blockJar));
}
 
开发者ID:makeoo,项目名称:Gadomancy,代码行数:4,代码来源:StickyJarResearchItem.java

示例6: getIcon

import thaumcraft.common.config.ConfigBlocks; //导入方法依赖的package包/类
@Override
public IIcon getIcon(int side, int meta) {
    BlockJar jar = (BlockJar) ConfigBlocks.blockJar;
    return side == 1 ? jar.iconJarTop : side == 0 ? jar.iconJarBottom : jar.iconJarSide;
}
 
开发者ID:makeoo,项目名称:Gadomancy,代码行数:6,代码来源:BlockExtendedNodeJar.java

示例7: createEmptyJar

import thaumcraft.common.config.ConfigBlocks; //导入方法依赖的package包/类
/**
 * Returns an itemstack with a single empty jar
 *
 * @param metadata
 * @return
 */
public ItemStack createEmptyJar( final int metadata )
{
	// Create and return the jar
	return new ItemStack( ConfigBlocks.blockJar, 1, metadata );
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:12,代码来源:EssentiaItemContainerHelper.java


注:本文中的thaumcraft.common.config.ConfigBlocks.blockJar方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。