Search in sources :

Example 1 with Behavior_Switch_Metadata

use of gregapi.item.multiitem.behaviors.Behavior_Switch_Metadata in project gregtech6 by GregTech6.

the class GT_Tool_Pocket_Chisel method onStatsAddedToTool.

@Override
public void onStatsAddedToTool(MultiItemTool aItem, int aID) {
    super.onStatsAddedToTool(aItem, aID);
    aItem.addItemBehavior(aID, new Behavior_Switch_Metadata(mSwitchIndex, T, T));
}
Also used : Behavior_Switch_Metadata(gregapi.item.multiitem.behaviors.Behavior_Switch_Metadata)

Example 2 with Behavior_Switch_Metadata

use of gregapi.item.multiitem.behaviors.Behavior_Switch_Metadata in project gregtech6 by GregTech6.

the class GT_Tool_Pocket_File method onStatsAddedToTool.

@Override
public void onStatsAddedToTool(MultiItemTool aItem, int aID) {
    super.onStatsAddedToTool(aItem, aID);
    aItem.addItemBehavior(aID, new Behavior_Switch_Metadata(mSwitchIndex, T, T));
}
Also used : Behavior_Switch_Metadata(gregapi.item.multiitem.behaviors.Behavior_Switch_Metadata)

Example 3 with Behavior_Switch_Metadata

use of gregapi.item.multiitem.behaviors.Behavior_Switch_Metadata in project gregtech6 by GregTech6.

the class GT_Tool_Pocket_Saw method onStatsAddedToTool.

@Override
public void onStatsAddedToTool(MultiItemTool aItem, int aID) {
    super.onStatsAddedToTool(aItem, aID);
    aItem.addItemBehavior(aID, new Behavior_Switch_Metadata(mSwitchIndex, T, T));
}
Also used : Behavior_Switch_Metadata(gregapi.item.multiitem.behaviors.Behavior_Switch_Metadata)

Example 4 with Behavior_Switch_Metadata

use of gregapi.item.multiitem.behaviors.Behavior_Switch_Metadata in project gregtech6 by GregTech6.

the class GT_Tool_Pocket_Scissors method onStatsAddedToTool.

@Override
public void onStatsAddedToTool(MultiItemTool aItem, int aID) {
    super.onStatsAddedToTool(aItem, aID);
    aItem.addItemBehavior(aID, new Behavior_Switch_Metadata(mSwitchIndex, T, T));
}
Also used : Behavior_Switch_Metadata(gregapi.item.multiitem.behaviors.Behavior_Switch_Metadata)

Example 5 with Behavior_Switch_Metadata

use of gregapi.item.multiitem.behaviors.Behavior_Switch_Metadata in project gregtech6 by GregTech6.

the class GT_Tool_MonkeyWrench_HV method onStatsAddedToTool.

@Override
public void onStatsAddedToTool(MultiItemTool aItem, int aID) {
    aItem.addItemBehavior(aID, new Behavior_Tool(TOOL_monkeywrench, SFX.GT_WRENCH, 100, !canBlock(), T));
    aItem.addItemBehavior(aID, new Behavior_Switch_Metadata(mSwitchIndex, T, F));
}
Also used : Behavior_Tool(gregapi.item.multiitem.behaviors.Behavior_Tool) Behavior_Switch_Metadata(gregapi.item.multiitem.behaviors.Behavior_Switch_Metadata)

Aggregations

Behavior_Switch_Metadata (gregapi.item.multiitem.behaviors.Behavior_Switch_Metadata)13 Behavior_Tool (gregapi.item.multiitem.behaviors.Behavior_Tool)4 IItemContainer (gregapi.code.IItemContainer)1 CoverTextureCanvas (gregapi.cover.covers.CoverTextureCanvas)1 MultiItem (gregapi.item.multiitem.MultiItem)1 Behavior_Bucket_Simple (gregapi.item.multiitem.behaviors.Behavior_Bucket_Simple)1 OreDictItemData (gregapi.oredict.OreDictItemData)1 OreDictMaterial (gregapi.oredict.OreDictMaterial)1 ItemStack (net.minecraft.item.ItemStack)1 FluidStack (net.minecraftforge.fluids.FluidStack)1