-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d40b279
commit 4ce2298
Showing
30 changed files
with
475 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
src/main/java/mod/emt/balkonsexpansion/compat/thaumcraft/ThaumcraftItemBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
package mod.emt.balkonsexpansion.compat.thaumcraft; | ||
|
||
import javax.annotation.Nonnull; | ||
import ckathode.weaponmod.item.MeleeCompNone; | ||
import ckathode.weaponmod.item.MeleeComponent; | ||
import mod.emt.balkonsexpansion.BalkonsExpansion; | ||
import mod.emt.balkonsexpansion.compat.thaumcraft.item.BEItemFlailVoid; | ||
import mod.emt.balkonsexpansion.compat.thaumcraft.item.BEItemMeleeVoid; | ||
import mod.emt.balkonsexpansion.item.MeleeCompBattleaxeCustom; | ||
import mod.emt.balkonsexpansion.item.MeleeCompBoomerangCustom; | ||
import mod.emt.balkonsexpansion.item.MeleeCompHalberdCustom; | ||
import mod.emt.balkonsexpansion.item.MeleeCompKatanaCustom; | ||
import mod.emt.balkonsexpansion.item.MeleeCompKnifeCustom; | ||
import mod.emt.balkonsexpansion.item.MeleeCompSpearCustom; | ||
import mod.emt.balkonsexpansion.item.MeleeCompWarhammerCustom; | ||
import net.minecraft.item.Item; | ||
|
||
public class ThaumcraftItemBuilder { | ||
// ==================================================================== // | ||
// Custom builders used for void weapons | ||
// ==================================================================== // | ||
public static BEItemMeleeVoid createVoidBattleaxe(String id, @Nonnull Item.ToolMaterial material, float knockbackAmount, float ignoreArmorAmount) { | ||
return createVoidItemMelee(BalkonsExpansion.MOD_ID, id, new MeleeCompBattleaxeCustom(material, knockbackAmount, ignoreArmorAmount)); | ||
} | ||
|
||
public static BEItemMeleeVoid createVoidBoomerang(String id, @Nonnull Item.ToolMaterial material, float knockbackAmount) { | ||
return createVoidItemMelee(BalkonsExpansion.MOD_ID, id, new MeleeCompBoomerangCustom(material, knockbackAmount)); | ||
} | ||
|
||
public static BEItemFlailVoid createVoidFlail(String id, @Nonnull Item.ToolMaterial material) { | ||
return createVoidItemFlail(BalkonsExpansion.MOD_ID, id, new MeleeCompNone(material)); | ||
} | ||
|
||
public static BEItemMeleeVoid createVoidHalberd(String id, @Nonnull Item.ToolMaterial material, float knockbackAmount, float reachAmount) { | ||
return createVoidItemMelee(BalkonsExpansion.MOD_ID, id, new MeleeCompHalberdCustom(material, knockbackAmount, reachAmount)); | ||
} | ||
|
||
public static BEItemMeleeVoid createVoidKatana(String id, @Nonnull Item.ToolMaterial material, float knockbackAmount) { | ||
return createVoidItemMelee(BalkonsExpansion.MOD_ID, id, new MeleeCompKatanaCustom(material, knockbackAmount)); | ||
} | ||
|
||
public static BEItemMeleeVoid createVoidKnife(String id, @Nonnull Item.ToolMaterial material, float knockbackAmount) { | ||
return createVoidItemMelee(BalkonsExpansion.MOD_ID, id, new MeleeCompKnifeCustom(material, knockbackAmount)); | ||
} | ||
|
||
/*public static ItemMusket createCustomMusketBayonet(String id, @Nonnull Item.ToolMaterial material, @Nonnull Item bayonetItem, float knockbackAmount) { | ||
return createVoidItemMelee(BalkonsExpansion.MOD_ID, id, new MeleeCompKnifeCustom(material, knockbackAmount), bayonetItem, EnumRarity.COMMON); | ||
}*/ | ||
|
||
public static BEItemMeleeVoid createVoidSpear(String id, @Nonnull Item.ToolMaterial material, float knockbackAmount, float reachAmount) { | ||
return createVoidItemMelee(BalkonsExpansion.MOD_ID, id, new MeleeCompSpearCustom(material, knockbackAmount, reachAmount)); | ||
} | ||
|
||
public static BEItemMeleeVoid createVoidWarhammer(String id, @Nonnull Item.ToolMaterial material, float knockbackAmount) { | ||
return createVoidItemMelee(BalkonsExpansion.MOD_ID, id, new MeleeCompWarhammerCustom(material, knockbackAmount)); | ||
} | ||
|
||
// ==================================================================== // | ||
// Custom ItemClass Builders for void weapons | ||
// ==================================================================== // | ||
|
||
public static BEItemFlailVoid createVoidItemFlail(String modId, String id, MeleeComponent meleeComponent) { | ||
return new BEItemFlailVoid(modId, id, meleeComponent); | ||
} | ||
|
||
public static BEItemMeleeVoid createVoidItemMelee(String modId, String id, MeleeComponent meleeComponent) { | ||
return new BEItemMeleeVoid(modId, id, meleeComponent); | ||
} | ||
} |
Oops, something went wrong.