More base-work on Omega
This commit is contained in:
parent
d7d8aedd42
commit
18d07baad3
10 changed files with 336 additions and 30 deletions
|
@ -133,4 +133,26 @@ public class OmegaParadigm
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param stack
|
||||
* @param player
|
||||
* @param entity
|
||||
* @return False if it does not do damage
|
||||
*/
|
||||
public boolean onBoundSwordLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void onEmptyHandEntityInteract(EntityPlayer player, Entity entity)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void onBoundSwordInteractWithEntity(EntityPlayer player, Entity entity)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,10 @@ package WayofTime.alchemicalWizardry.common.omega;
|
|||
|
||||
import java.util.HashMap;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmour;
|
||||
|
||||
public class OmegaRegistry
|
||||
{
|
||||
|
@ -22,4 +25,18 @@ public class OmegaRegistry
|
|||
{
|
||||
return omegaList.containsKey(reagent);
|
||||
}
|
||||
|
||||
public static OmegaParadigm getOmegaParadigmOfWeilder(EntityPlayer player)
|
||||
{
|
||||
ItemStack[] armours = player.inventory.armorInventory;
|
||||
|
||||
ItemStack chestStack = armours[2];
|
||||
|
||||
if(chestStack != null && chestStack.getItem() instanceof OmegaArmour)
|
||||
{
|
||||
return ((OmegaArmour)chestStack.getItem()).getOmegaParadigm();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue