本文整理汇总了Java中appeng.api.util.AEColor类的典型用法代码示例。如果您正苦于以下问题:Java AEColor类的具体用法?Java AEColor怎么用?Java AEColor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AEColor类属于appeng.api.util包,在下文中一共展示了AEColor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initGui
import appeng.api.util.AEColor; //导入依赖的package包/类
@Override
public void initGui() {
super.initGui();
addAnimatedStat("gui.tab.info.ghostSlotInteraction.title", new ItemStack(Blocks.HOPPER), 0xFF00AAFF, true).setText("gui.tab.info.ghostSlotInteraction");
if (Loader.isModLoaded(ModIds.AE2)) {
if(logistics.isPlacedOnInterface()) {
Item item = AEApi.instance().definitions().parts().cableGlass().item(AEColor.TRANSPARENT);
if(item == null) {
Log.warning("AE2 cable couldn't be found!");
item = Itemss.LOGISTICS_FRAME_REQUESTER;
}
GuiAnimatedStat stat = addAnimatedStat("gui.tab.info.logisticsRequester.aeIntegration.title", new ItemStack(item, 1, 16), 0xFF00AAFF, false);
List<String> text = new ArrayList<String>();
for(int i = 0; i < 2; i++)
text.add("");
text.add("gui.tab.info.logisticsRequester.aeIntegration");
stat.setText(text);
stat.addWidget(aeIntegration = new GuiCheckBox(1, 16, 13, 0xFF000000, "gui.tab.info.logisticsRequester.aeIntegration.enable"));
}
}
}
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:22,代码来源:GuiLogisticsRequester.java
示例2: addRecipesToRegistry
import appeng.api.util.AEColor; //导入依赖的package包/类
public static void addRecipesToRegistry(){
//AE Kit
Recipes.advRecipes.addRecipe(new ItemStack(CrossAppeng.kitAppeng), new Object[]{
"IT", "PD",
'I', AEApi.instance().definitions().materials().fluixCrystal().maybeStack(1).get(),
'T', IC2Items.getItem("frequencyTransmitter"),
'P', Items.paper,
'D', "dyePurple"});
//AE Monitor
Recipes.advRecipes.addRecipe(new ItemStack(CrossAppeng.networklink), new Object[]{
"BRB", "YCY", "BRB",
'B', "ingotIron",
'R', AEApi.instance().definitions().materials().calcProcessor().maybeStack(1).get(),
'Y', AEApi.instance().definitions().parts().cableGlass().item(AEColor.Purple),
'C', Items.comparator});
}
开发者ID:xbony2,项目名称:Nuclear-Control,代码行数:18,代码来源:AppengRecipes.java
示例3: addGregtechRecipes
import appeng.api.util.AEColor; //导入依赖的package包/类
public static void addGregtechRecipes(){
//AE Kit
Recipes.advRecipes.addRecipe(new ItemStack(CrossAppeng.kitAppeng), new Object[]{
"IT", "PD",
'I', AEApi.instance().definitions().materials().fluixCrystal().maybeStack(1).get(),
'T', IC2Items.getItem("frequencyTransmitter"),
'P', Items.paper,
'D', "dyePurple"});
//AE Monitor
Recipes.advRecipes.addRecipe(new ItemStack(CrossAppeng.networklink), new Object[]{
"BRB", "YCY", "BRB",
'B', "plateIron",
'R', AEApi.instance().definitions().materials().calcProcessor().maybeStack(1).get(),
'Y', AEApi.instance().definitions().parts().cableGlass().item(AEColor.Transparent),
'C', Items.comparator});
}
开发者ID:xbony2,项目名称:Nuclear-Control,代码行数:18,代码来源:AppengRecipes.java
示例4: renderInventory
import appeng.api.util.AEColor; //导入依赖的package包/类
/**
* Renders the part while in the inventory
*/
@Override
@SideOnly(Side.CLIENT)
public void renderInventory( final IPartRenderHelper helper, final RenderBlocks renderer )
{
Tessellator ts = Tessellator.instance;
IIcon side = BlockTextureManager.ARCANE_CRAFTING_TERMINAL.getTextures()[3];
helper.setTexture( side, side, side, BlockTextureManager.ARCANE_CRAFTING_TERMINAL.getTextures()[0], side, side );
helper.setBounds( 2.0F, 2.0F, 14.0F, 14.0F, 14.0F, 16.0F );
helper.renderInventoryBox( renderer );
helper.setBounds( 2.0F, 2.0F, 15.0F, 14.0F, 14.0F, 16.0F );
ts.setColorOpaque_I( ThEPartBase.INVENTORY_OVERLAY_COLOR );
helper.renderInventoryFace( BlockTextureManager.ARCANE_CRAFTING_TERMINAL.getTextures()[2], ForgeDirection.SOUTH, renderer );
ts.setColorOpaque_I( AEColor.Black.mediumVariant );
helper.renderInventoryFace( BlockTextureManager.ARCANE_CRAFTING_TERMINAL.getTextures()[1], ForgeDirection.SOUTH, renderer );
helper.setBounds( 5.0F, 5.0F, 13.0F, 11.0F, 11.0F, 14.0F );
this.renderInventoryBusLights( helper, renderer );
}
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:26,代码来源:PartArcaneCraftingTerminal.java
示例5: setProviderColor
import appeng.api.util.AEColor; //导入依赖的package包/类
/**
* Sets the color of the provider.
* This does not set the isColorForced flag to true.
*
* @param gridColor
*/
protected void setProviderColor( final AEColor gridColor )
{
// Set our color to match
this.getProxy().setColor( gridColor );
// Are we server side?
if( EffectiveSide.isServerSide() )
{
/*
// Get the grid node
IGridNode gridNode = this.getProxy().getNode();
// Do we have a grid node?
if( gridNode != null )
{
// Update the grid node
this.getProxy().getNode().updateState();
}
*/
// Mark the tile as needing updates and to be saved
this.markForUpdate();
this.saveChanges();
}
}
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:32,代码来源:TileProviderBase.java
示例6: 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
示例7: registerCableSet
import appeng.api.util.AEColor; //导入依赖的package包/类
/**
* Registers all cable colors of this set with the specified aspects.
*
* @param cableSet
* @param aspects
*/
private void registerCableSet( final AEColoredItemDefinition cableSet, final AspectList aspects )
{
// Get the colors
AEColor[] colors = AEColor.values();
// Register each color
for( AEColor color : colors )
{
ThaumcraftApi.registerObjectTag( cableSet.stack( color, 1 ), aspects );
}
}
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:18,代码来源:AEAspectRegister.java
示例8: renderInventory
import appeng.api.util.AEColor; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
@Override
public void renderInventory( final IPartRenderHelper helper, final RenderBlocks renderer )
{
IIcon side = BlockTextureManager.ESSENTIA_TERMINAL.getTextures()[4];
helper.setTexture( side, side, side, side, side, side );
helper.setBounds( 2.0F, 2.0F, 14.0F, 14.0F, 14.0F, 16.0F );
helper.renderInventoryBox( renderer );
// Face bounds
helper.setBounds( 2.0F, 2.0F, 15.0F, 14.0F, 14.0F, 16.0F );
// Dark corners
helper.setInvColor( AEColor.Transparent.blackVariant );
helper.renderInventoryFace( this.darkCornerTexture.getIcon(), ForgeDirection.SOUTH, renderer );
// Light corners
helper.setInvColor( AEColor.Transparent.mediumVariant );
helper.renderInventoryFace( this.lightCornerTexture.getIcon(), ForgeDirection.SOUTH, renderer );
// Main face
helper.setInvColor( AEColor.Transparent.whiteVariant );
helper.renderInventoryFace( CableBusTextures.PartConversionMonitor_Bright.getIcon(), ForgeDirection.SOUTH, renderer );
// Phial
helper.setInvColor( AEColor.Black.blackVariant );
helper.renderInventoryFace( BlockTextureManager.ESSENTIA_TERMINAL.getTextures()[0], ForgeDirection.SOUTH, renderer );
// Cable lights
helper.setBounds( 5.0F, 5.0F, 13.0F, 11.0F, 11.0F, 14.0F );
this.renderInventoryBusLights( helper, renderer );
}
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:35,代码来源:PartEssentiaStorageMonitor.java
示例9: renderInventory
import appeng.api.util.AEColor; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
@Override
public void renderInventory( final IPartRenderHelper helper, final RenderBlocks renderer )
{
Tessellator ts = Tessellator.instance;
IIcon side = BlockTextureManager.ESSENTIA_TERMINAL.getTextures()[3];
helper.setTexture( side );
helper.setBounds( 4.0F, 4.0F, 13.0F, 12.0F, 12.0F, 14.0F );
helper.renderInventoryBox( renderer );
helper.setTexture( side, side, side, BlockTextureManager.ESSENTIA_TERMINAL.getTextures()[4], side, side );
helper.setBounds( 2.0F, 2.0F, 14.0F, 14.0F, 14.0F, 16.0F );
helper.renderInventoryBox( renderer );
ts.setBrightness( 0xD000D0 );
helper.setInvColor( 0xFFFFFF );
helper.renderInventoryFace( BlockTextureManager.ESSENTIA_TERMINAL.getTextures()[4], ForgeDirection.SOUTH, renderer );
helper.setBounds( 3.0F, 3.0F, 15.0F, 13.0F, 13.0F, 16.0F );
helper.setInvColor( AEColor.Transparent.blackVariant );
helper.renderInventoryFace( BlockTextureManager.ESSENTIA_TERMINAL.getTextures()[0], ForgeDirection.SOUTH, renderer );
helper.setInvColor( AEColor.Transparent.mediumVariant );
helper.renderInventoryFace( BlockTextureManager.ESSENTIA_TERMINAL.getTextures()[1], ForgeDirection.SOUTH, renderer );
helper.setInvColor( AEColor.Transparent.whiteVariant );
helper.renderInventoryFace( BlockTextureManager.ESSENTIA_TERMINAL.getTextures()[2], ForgeDirection.SOUTH, renderer );
helper.setBounds( 5.0F, 5.0F, 12.0F, 11.0F, 11.0F, 13.0F );
this.renderInventoryBusLights( helper, renderer );
}
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:37,代码来源:PartEssentiaTerminal.java
示例10: renderInventoryBusLights
import appeng.api.util.AEColor; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
public void renderInventoryBusLights( final IPartRenderHelper helper, final RenderBlocks renderer )
{
// Set color to white
helper.setInvColor( 0xFFFFFF );
IIcon busColorTexture = BlockTextureManager.BUS_COLOR.getTextures()[0];
IIcon sideTexture = BlockTextureManager.BUS_COLOR.getTextures()[2];
helper.setTexture( busColorTexture, busColorTexture, sideTexture, sideTexture, busColorTexture, busColorTexture );
// Rend the box
helper.renderInventoryBox( renderer );
// Set the brightness
Tessellator.instance.setBrightness( 0xD000D0 );
helper.setInvColor( AEColor.Transparent.blackVariant );
IIcon lightTexture = BlockTextureManager.BUS_COLOR.getTextures()[1];
// Render the lights
helper.renderInventoryFace( lightTexture, ForgeDirection.UP, renderer );
helper.renderInventoryFace( lightTexture, ForgeDirection.DOWN, renderer );
helper.renderInventoryFace( lightTexture, ForgeDirection.NORTH, renderer );
helper.renderInventoryFace( lightTexture, ForgeDirection.EAST, renderer );
helper.renderInventoryFace( lightTexture, ForgeDirection.SOUTH, renderer );
helper.renderInventoryFace( lightTexture, ForgeDirection.WEST, renderer );
}
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:31,代码来源:ThEPartBase.java
示例11: getNeighborCableColors
import appeng.api.util.AEColor; //导入依赖的package包/类
/**
* Returns an array with the AE colors of any neighbor tiles.
* Index is side.
*
* @return
*/
private AEColor[] getNeighborCableColors()
{
AEColor[] sideColors = new AEColor[6];
for( ForgeDirection side : ForgeDirection.VALID_DIRECTIONS )
{
// Get the tile entity on the current side
TileEntity tileEntity = this.worldObj.getTileEntity( this.xCoord + side.offsetX, this.yCoord + side.offsetY, this.zCoord + side.offsetZ );
// Did we get an entity?
if( tileEntity == null )
{
continue;
}
// Is that entity a cable?
if( tileEntity instanceof TileCableBus )
{
// Set the color
sideColors[side.ordinal()] = ( (TileCableBus)tileEntity ).getColor();
}
}
return sideColors;
}
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:33,代码来源:TileProviderBase.java
示例12: recolourBlock
import appeng.api.util.AEColor; //导入依赖的package包/类
/**
* Forces a color change for the provider.
* Called when the provider's color is changed via the ColorApplicator item.
*/
@Override
public boolean recolourBlock( final ForgeDirection side, final AEColor color, final EntityPlayer player )
{
// Mark our color as forced
this.isColorForced = true;
// Set our color
this.setProviderColor( color );
return true;
}
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:16,代码来源:TileProviderBase.java
示例13: 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
示例14: getGridColor
import appeng.api.util.AEColor; //导入依赖的package包/类
@Override
@Optional.Method(modid = ModIds.AE2)
public AEColor getGridColor(){
return AEColor.TRANSPARENT;
}
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:6,代码来源:SemiBlockRequester.java
示例15: getGridColor
import appeng.api.util.AEColor; //导入依赖的package包/类
@Override
public AEColor getGridColor() {
return AEColor.Transparent;
}
开发者ID:amadornes,项目名称:Framez,代码行数:6,代码来源:MotorModifierAE2.java
示例16: getGridColor
import appeng.api.util.AEColor; //导入依赖的package包/类
@Override
public AEColor getGridColor() {
return AEColor.Transparent;
}
开发者ID:austinv11,项目名称:PeripheralsPlusPlus,代码行数:5,代码来源:TileEntityMEBridge.java
示例17: 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
示例18: renderStatic
import appeng.api.util.AEColor; //导入依赖的package包/类
/**
* Renders the part in the world.
*/
@Override
@SideOnly(Side.CLIENT)
public void renderStatic( final int x, final int y, final int z, final IPartRenderHelper helper, final RenderBlocks renderer )
{
Tessellator tessellator = Tessellator.instance;
IIcon side = BlockTextureManager.ARCANE_CRAFTING_TERMINAL.getTextures()[3];
// Main block
helper.setTexture( side, side, side, side, side, side );
helper.setBounds( 2.0F, 2.0F, 14.0F, 14.0F, 14.0F, 16.0F );
helper.renderBlock( x, y, z, renderer );
// Rotate
this.rotateRenderer( renderer, false );
// Face
helper.renderFace( x, y, z, BlockTextureManager.ARCANE_CRAFTING_TERMINAL.getTextures()[0], ForgeDirection.SOUTH, renderer );
if( this.isActive() )
{
// Set brightness
tessellator.setBrightness( ThEPartBase.ACTIVE_FACE_BRIGHTNESS );
// Draw corners
helper.setBounds( 2.0F, 2.0F, 15.0F, 14.0F, 14.0F, 16.0F );
tessellator.setColorOpaque_I( this.getHost().getColor().blackVariant );
helper.renderFace( x, y, z, BlockTextureManager.ARCANE_CRAFTING_TERMINAL.getTextures()[2], ForgeDirection.SOUTH, renderer );
tessellator.setColorOpaque_I( this.getHost().getColor().mediumVariant );
helper.renderFace( x, y, z, BlockTextureManager.ARCANE_CRAFTING_TERMINAL.getTextures()[1], ForgeDirection.SOUTH, renderer );
// Draw crafting overlay
tessellator.setBrightness( 0xA000A0 );
tessellator.setColorOpaque_I( AEColor.Lime.blackVariant );
helper.renderFace( x, y, z, BlockTextureManager.ARCANE_CRAFTING_TERMINAL.getTextures()[4], ForgeDirection.SOUTH, renderer );
}
// Reset rotation
this.rotateRenderer( renderer, true );
// Cable lights
helper.setBounds( 5.0F, 5.0F, 13.0F, 11.0F, 11.0F, 14.0F );
this.renderStaticBusLights( x, y, z, helper, renderer );
}
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:49,代码来源:PartArcaneCraftingTerminal.java
示例19: 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
示例20: getColor
import appeng.api.util.AEColor; //导入依赖的package包/类
/**
* Get's the color of the provider
*/
@Override
public AEColor getColor()
{
return this.getProxy().getColor();
}
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:9,代码来源:TileProviderBase.java
注:本文中的appeng.api.util.AEColor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论