Examples of BurstProperties


Examples of vazkii.botania.api.mana.BurstProperties

    int color = 0x20FF20;
    int ticksBeforeManaLoss = 60;
    float manaLossPerTick = 4F;
    float motionModifier = 5F;
    float gravity = 0F;
    BurstProperties props = new BurstProperties(maxMana, ticksBeforeManaLoss, manaLossPerTick, gravity, motionModifier, color);

    ItemStack lens = getLens(stack);
    if(lens != null)
      ((ILens) lens.getItem()).apply(lens, props);
View Full Code Here

Examples of vazkii.botania.api.mana.BurstProperties

    int color = isRedstone() ? 0xFF2020 : dreamwood ? 0xFF45C4 : 0x20FF20;
    int ticksBeforeManaLoss = ultra ? 120 : dreamwood ? 80 : 60;
    float manaLossPerTick = ultra ? 20F : 4F;
    float motionModifier = ultra ? 2F : dreamwood ? 1.25F : 1F;
    float gravity = 0F;
    BurstProperties props = new BurstProperties(maxMana, ticksBeforeManaLoss, manaLossPerTick, gravity, motionModifier, color);

    ItemStack lens = getStackInSlot(0);
    if(lens != null && lens.getItem() instanceof ILensEffect)
      ((ILensEffect) lens.getItem()).apply(lens, props);
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.