IWarpingGear

Package: thaumcraft.api

Author: Azanor

Extends: —

Armor, held items, or bauble slot items that implement this interface add warp when equipped or held. Warp is a mechanic that causes temporary or permanent effects on the player based on magic usage.

Interface Definition

public interface IWarpingGear {
    /**
     * returns how much warp this item adds while worn or held. 
     */
    public int getWarp(ItemStack itemstack, EntityPlayer player);
}

Methods

Method Signature Description
getWarp ItemStack itemstack, EntityPlayer player → int Returns the amount of warp this item adds when equipped or held.

Warp Mechanics

Warp accumulates from various magical actions and items. High warp levels can cause:

  • Temporary Warp: Effects that fade over time
  • Permanent Warp: Lasting consequences that do not diminish
  • Taint Warp: Corrupting effects from tainted magic

Items implementing this interface contribute to the player’s total warp whenever they are equipped or held.

Example Implementation

public class MyWarpingArmor extends ItemArmor implements IWarpingGear {
    
    @Override
    public int getWarp(ItemStack itemstack, EntityPlayer player) {
        return 2; // Adds 2 warp when worn
    }
}
  • IVisDiscountGear: Item effect interface for vis cost reduction
  • IRunicArmor: Item effect interface for runic shielding

Tags

#api #item-effect #warp #armor #baubles