public boolean itemInteractionForEntity(
     ItemStack par1ItemStack,
     EntityPlayer par2EntityPlayer,
     EntityLivingBase par3EntityLivingBase) {
   return Strategy.get()
       .interactToEntityWithItem(par3EntityLivingBase, par2EntityPlayer, par1ItemStack);
 }
 @Override
 protected int getIconIndex(
     ItemStack ist,
     int layer,
     EntityPlayer player,
     ItemStack using,
     int remain,
     NBTTagCompound nbt) {
   return Strategy.get().getStateWithChange(ist);
 }
 public void onUpdate(ItemStack ist, World world, Entity entity, int how, boolean isCurrent) {
   if (entity instanceof EntityPlayer) {
     ItemStack ist0 = ((EntityPlayer) entity).getCurrentEquippedItem();
     if (FPR2KeyBind.isPressed && ist0 != null && ist0.getItem() instanceof ItemLaevatain) {
       FPR2KeyBind.isPressed = false;
       ((EntityPlayer) entity)
           .openGui(FlandreLaevatain.instance, FPR2.PickaxeGuiID, world, 0, 0, 0);
     }
   }
   Strategy.get().onUpdate(world, ist, entity, how, isCurrent);
 }
 public boolean onItemUse(
     ItemStack ist,
     EntityPlayer player,
     World world,
     int x,
     int y,
     int z,
     int side,
     float fx,
     float fy,
     float fz) {
   return Strategy.get().onItemUse(world, player, ist, x, y, z, side, fx, fy, fz);
 }
 public ItemStack onItemRightClick(ItemStack ist, World world, EntityPlayer player) {
   return Strategy.get()
       .onItemRightClick(ist, world, player, player.posX, player.posY, player.posZ);
 }
 @Override
 protected String getUnlocalizedNameForDisplay(ItemStack ist) {
   return String.valueOf(Strategy.get().getStateWithChange(ist));
 }
 public boolean onBlockStartBreak(ItemStack itemstack, int X, int Y, int Z, EntityPlayer player) {
   return Strategy.get().onBlockStartBreak(itemstack, X, Y, Z, player);
 }
 protected int getWeaponDamage() {
   return Strategy.get().getWeaponDamage();
 }
 @Override
 public float getStrVsBlock(ItemStack ist, Block block, int meta) {
   return Strategy.get().getStrVsBlock(ist, block, meta);
 }
예제 #10
0
 public boolean onBlockDestroyed(
     ItemStack ist, World world, int x, int y, int z, int m, EntityLivingBase by) {
   return Strategy.get().onBlockDestroyed(world, x, y, z, m, ist, by);
 }
예제 #11
0
 public boolean hitEntity(ItemStack ist, EntityLivingBase to, EntityLivingBase from) {
   return Strategy.get().hitEntity(ist, to, from);
 }
예제 #12
0
 public float getStrVsBlock(ItemStack ist, Block block) {
   return Strategy.get().getStrVsBlock(ist, block);
 }
예제 #13
0
 public boolean canHarvestBlock(Block block) {
   return Strategy.get().canHarvestBlock(block);
 }