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


Java AEColor.Transparent方法代码示例

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


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

示例1: getGridColor

import appeng.api.util.AEColor; //导入方法依赖的package包/类
/**
 * Returns the color of the grid.
 */
@Override
public AEColor getGridColor()
{
	// Return transparent.
	return AEColor.Transparent;
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:10,代码来源:AEPartGridBlock.java

示例2: getColorFromInt

import appeng.api.util.AEColor; //导入方法依赖的package包/类
private static AEColor getColorFromInt(int i) {
    switch (i) {
        case 0:
            return AEColor.White;
        case 1:
            return AEColor.Orange;
        case 2:
            return AEColor.Magenta;
        case 3:
            return AEColor.LightBlue;
        case 4:
            return AEColor.Yellow;
        case 5:
            return AEColor.Lime;
        case 6:
            return AEColor.Pink;
        case 7:
            return AEColor.Gray;
        case 8:
            return AEColor.LightGray;
        case 9:
            return AEColor.Cyan;
        case 10:
            return AEColor.Purple;
        case 11:
            return AEColor.Blue;
        case 12:
            return AEColor.Brown;
        case 13:
            return AEColor.Green;
        case 14:
            return AEColor.Red;
        case 15:
            return AEColor.Black;
        case 16:
            return AEColor.Transparent;
        default:
            return AEColor.Purple;
    }
}
 
开发者ID:Lomeli12,项目名称:Equivalency,代码行数:41,代码来源:AppliedEnergisticsRecipes.java

示例3: getGridColor

import appeng.api.util.AEColor; //导入方法依赖的package包/类
@Override
public AEColor getGridColor() {

    return AEColor.Transparent;
}
 
开发者ID:amadornes,项目名称:Framez,代码行数:6,代码来源:MotorModifierAE2.java

示例4: getGridColor

import appeng.api.util.AEColor; //导入方法依赖的package包/类
@Override
public AEColor getGridColor() {
	return AEColor.Transparent;
}
 
开发者ID:austinv11,项目名称:PeripheralsPlusPlus,代码行数:5,代码来源:TileEntityMEBridge.java

示例5: renderStatic

import appeng.api.util.AEColor; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
@Override
public void renderStatic( final int x, final int y, final int z, final IPartRenderHelper helper, final RenderBlocks renderer )
{
	Tessellator ts = Tessellator.instance;

	IIcon busSideTexture = BlockTextureManager.ESSENTIA_IMPORT_BUS.getTextures()[3];
	helper.setTexture( busSideTexture, busSideTexture, busSideTexture, BlockTextureManager.ESSENTIA_IMPORT_BUS.getTextures()[0], busSideTexture,
		busSideTexture );

	// Face
	helper.setBounds( 4.0F, 4.0F, 15.0F, 12.0F, 12.0F, 16.0F );
	helper.renderBlock( x, y, z, renderer );

	if( this.getHost().getColor() != AEColor.Transparent )
	{
		ts.setColorOpaque_I( this.getHost().getColor().blackVariant );
	}
	else
	{
		ts.setColorOpaque_I( ThEPartBase.INVENTORY_OVERLAY_COLOR );
	}

	if( this.isActive() )
	{
		Tessellator.instance.setBrightness( ThEPartBase.ACTIVE_FACE_BRIGHTNESS );
	}

	// Face overlay
	helper.renderFace( x, y, z, BlockTextureManager.ESSENTIA_IMPORT_BUS.getTextures()[1], ForgeDirection.SOUTH, renderer );

	// Set the pass to alpha
	helper.renderForPass( 1 );

	// Set the texture to the chamber
	helper.setTexture( BlockTextureManager.ESSENTIA_IMPORT_BUS.getTextures()[2] );

	// Large chamber
	helper.setBounds( 4.0F, 4.0F, 14.0F, 12.0F, 12.0F, 15.0F );
	helper.renderBlock( x, y, z, renderer );

	// Small chamber
	helper.setBounds( 5.0F, 5.0F, 13.0F, 11.0F, 11.0F, 14.0F );
	helper.renderBlock( x, y, z, renderer );

	// Set the pass back to opaque
	helper.renderForPass( 0 );

	// Set the texture back to the side texture
	helper.setTexture( busSideTexture );

	// Small chamber back wall
	helper.setBounds( 5.0F, 5.0F, 12.0F, 11.0F, 11.0F, 13.0F );
	helper.renderBlock( x, y, z, renderer );

	// Lights
	helper.setBounds( 6.0F, 6.0F, 11.0F, 10.0F, 10.0F, 12.0F );
	this.renderStaticBusLights( x, y, z, helper, renderer );
}
 
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:60,代码来源:PartEssentiaImportBus.java

示例6: checkGridConnectionColor

import appeng.api.util.AEColor; //导入方法依赖的package包/类
public void checkGridConnectionColor()
{
	// Are we server side and with a world?
	if( FMLCommonHandler.instance().getEffectiveSide().isClient() || ( this.worldObj == null ) )
	{
		// Nothing to do
		return;
	}

	// Is our color forced?
	if( this.isColorForced )
	{
		// Do not change colors.
		return;
	}

	// Get the colors of our neighbors
	AEColor[] sideColors = this.getNeighborCableColors();

	// Get our current color
	AEColor currentColor = this.getProxy().getColor();

	// Are we attached to a side?
	if( this.attachmentSide != ForgeDirection.UNKNOWN.ordinal() )
	{
		// Does our attached side still exist
		if( sideColors[this.attachmentSide] != null )
		{
			// Do we match it's color?
			if( sideColors[this.attachmentSide] == currentColor )
			{
				// Nothing to change
				return;
			}

			// Set our color to match
			this.setProviderColor( sideColors[this.attachmentSide] );

			return;
		}
	}

	// Are any of the other sides the same color?
	for( int index = 0; index < 6; index++ )
	{
		if( sideColors[index] != null )
		{
			// Does the current side match our color?
			if( sideColors[index] == currentColor )
			{
				// Found another cable with the same color, lets attach to it
				this.attachmentSide = index;

				// Mark for a save
				this.saveChanges();

				return;
			}
			// Are we transparent?
			else if( currentColor == AEColor.Transparent )
			{
				// Attach to this cable
				this.attachmentSide = index;

				// Take on its color
				this.setProviderColor( sideColors[index] );

				return;
			}
		}
	}

	// No cables match our color, set attachment to unknown
	this.attachmentSide = ForgeDirection.UNKNOWN.ordinal();

	// Set color to transparent
	this.setProviderColor( AEColor.Transparent );

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

示例7: getGridColor

import appeng.api.util.AEColor; //导入方法依赖的package包/类
@Override
@Optional.Method(modid = ModIds.AE2)
public AEColor getGridColor(){
    return AEColor.Transparent;
}
 
开发者ID:MineMaarten,项目名称:PneumaticCraft,代码行数:6,代码来源:SemiBlockRequester.java

示例8: getGridColor

import appeng.api.util.AEColor; //导入方法依赖的package包/类
@Override
public AEColor getGridColor()
{
    return AEColor.Transparent;
}
 
开发者ID:Dynious,项目名称:RefinedRelocation,代码行数:6,代码来源:TileMESortingInterface.java


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