Java Code Examples for thaumcraft.api.aspects.Aspect#FIRE
The following examples show how to use
thaumcraft.api.aspects.Aspect#FIRE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DarkAspects.java From ForbiddenMagic with Do What The F*ck You Want To Public License | 5 votes |
public static void initAspects() { if (!Config.noLust) { LUST = new Aspect("luxuria", 0xffc1ce, new Aspect[] { Aspect.FLESH, Aspect.HUNGER }, new ResourceLocation("forbidden", "textures/aspects/luxuria.png"), 1); } NETHER = new Aspect("infernus", 0xff0000, new Aspect[] { Aspect.FIRE, Aspect.MAGIC }, new ResourceLocation("forbidden", "textures/aspects/infernus.png"), 771); PRIDE = new Aspect("superbia", 0x9639ff, new Aspect[] { Aspect.FLIGHT, Aspect.VOID }, new ResourceLocation("forbidden", "textures/aspects/superbia.png"), 1); GLUTTONY = new Aspect("gula", 0xd59c46, new Aspect[] { Aspect.HUNGER, Aspect.VOID }, new ResourceLocation("forbidden", "textures/aspects/gula.png"), 1); ENVY = new Aspect("invidia", 0x00ba00, new Aspect[] { Aspect.SENSES, Aspect.HUNGER }, new ResourceLocation("forbidden", "textures/aspects/invidia.png"), 1); SLOTH = new Aspect("desidia", 0x6e6e6e, new Aspect[] { Aspect.TRAP, Aspect.SOUL }, new ResourceLocation("forbidden", "textures/aspects/desidia.png"), 771); WRATH = new Aspect("ira", 0x870404, new Aspect[] { Aspect.WEAPON, Aspect.FIRE }, new ResourceLocation("forbidden", "textures/aspects/ira.png"), 771); }
Example 2
Source File: WandHandler.java From Gadomancy with GNU Lesser General Public License v3.0 | 4 votes |
private static void tryAuraCoreCreation(ItemStack i, EntityPlayer entityPlayer, World world, int x, int y, int z) { if(world.isRemote) return; List items = world.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 1, z + 1) .expand(EntityAuraCore.CLUSTER_RANGE, EntityAuraCore.CLUSTER_RANGE, EntityAuraCore.CLUSTER_RANGE)); Iterator it = items.iterator(); EntityItem itemAuraCore = null; while(itemAuraCore == null && it.hasNext()) { Object item = it.next(); if(item != null && item instanceof EntityItem && !((EntityItem) item).isDead) { EntityItem entityItem = (EntityItem) item; if(entityItem.getEntityItem() != null && entityItem.getEntityItem().getItem() != null && entityItem.getEntityItem().getItem() instanceof ItemAuraCore && !(item instanceof EntityAuraCore)) { if(((ItemAuraCore) entityItem.getEntityItem().getItem()).isBlank(entityItem.getEntityItem())) itemAuraCore = entityItem; } } } if(itemAuraCore == null) return; int meta = world.getBlockMetadata(x, y, z); if(meta <= 6) { Aspect[] aspects; switch (meta) { case 0: aspects = new Aspect[]{Aspect.AIR}; break; case 1: aspects = new Aspect[]{Aspect.FIRE}; break; case 2: aspects = new Aspect[]{Aspect.WATER}; break; case 3: aspects = new Aspect[]{Aspect.EARTH}; break; case 4: aspects = new Aspect[]{Aspect.ORDER}; break; case 5: aspects = new Aspect[]{Aspect.ENTROPY}; break; case 6: aspects = new Aspect[]{Aspect.AIR, Aspect.FIRE, Aspect.EARTH, Aspect.WATER, Aspect.ORDER, Aspect.ENTROPY}; break; default: return; } if(!ThaumcraftApiHelper.consumeVisFromWandCrafting(i, entityPlayer, (AspectList)RegisteredRecipes.auraCoreRecipes[meta].get(0), true)) return; PacketStartAnimation packet = new PacketStartAnimation(PacketStartAnimation.ID_BURST, x, y, z); PacketHandler.INSTANCE.sendToAllAround(packet, new NetworkRegistry.TargetPoint(world.provider.dimensionId, x, y, z, 32.0D)); world.createExplosion(null, x + 0.5D, y + 0.5D, z + 0.5D, 1.5F, false); world.setBlockToAir(x, y, z); EntityAuraCore ea = new EntityAuraCore(itemAuraCore.worldObj, itemAuraCore.posX, itemAuraCore.posY, itemAuraCore.posZ, itemAuraCore.getEntityItem(), new ChunkCoordinates(x, y, z), aspects); ea.age = itemAuraCore.age; ea.hoverStart = itemAuraCore.hoverStart; ea.motionX = itemAuraCore.motionX; ea.motionY = itemAuraCore.motionY; ea.motionZ = itemAuraCore.motionZ; itemAuraCore.worldObj.spawnEntityInWorld(ea); itemAuraCore.setDead(); } }
Example 3
Source File: TileEntityIgnisGenerator.java From Electro-Magic-Tools with GNU General Public License v3.0 | 4 votes |
public TileEntityIgnisGenerator() { aspect = Aspect.FIRE; EssentiasOutputs.outputs.get(aspect.getTag()); }