Examples of Aspect


Examples of thaumcraft.api.aspects.Aspect


    public static final int BREEDING_CHANCE = 10;

    public Aspect getAspectDropped(World world, int x, int y, int z, int metadata) {
        Aspect currentAspect = getAspect(world, x, y, z);
        if (metadata >= 7 && currentAspect != null) {
            if (world.getTileEntity(x, y - 1, z) instanceof TileInfusedFarmland) {
                AspectList farmlandAspectList = ((TileInfusedFarmland) world.getTileEntity(x, y - 1, z)).aspectList;
                for (Aspect aspect : farmlandAspectList.getAspects()) {
                    Random rand = new Random();
View Full Code Here

Examples of thaumcraft.api.aspects.Aspect

    for (Aspect tag:temp.getAspects()) {
      if (tag!=null)
        temp2.add(tag, temp.getAmount(tag));
    }
    while (temp2!=null && temp2.size()>10) {
      Aspect lowest = null;
      int low = Integer.MAX_VALUE;
      for (Aspect tag:temp2.getAspects()) {
        if (tag==null) continue;
        if (temp2.getAmount(tag)<low) {
          low = temp2.getAmount(tag);
View Full Code Here

Examples of thaumcraft.api.aspects.Aspect

            return new Object[]{tileEntity};
        }

        @Callback(doc = "function(aspect:string):number -- Get amount of specific aspect stored in this block")
        public Object[] getAspectCount(final Context context, final Arguments args) {
            final Aspect aspect = Aspect.getAspect(args.checkString(0).toLowerCase());
            Preconditions.checkNotNull(aspect, "Invalid aspect name");
            final AspectList list = tileEntity.getAspects();
            return new Object[]{list.getAmount(aspect)};
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.