コード例 #1
0
 public boolean itemInteractionForEntity(
     ItemStack par1ItemStack,
     EntityPlayer par2EntityPlayer,
     EntityLivingBase par3EntityLivingBase) {
   return Strategy.get()
       .interactToEntityWithItem(par3EntityLivingBase, par2EntityPlayer, par1ItemStack);
 }
コード例 #2
0
 @Override
 protected int getIconIndex(
     ItemStack ist,
     int layer,
     EntityPlayer player,
     ItemStack using,
     int remain,
     NBTTagCompound nbt) {
   return Strategy.get().getStateWithChange(ist);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 public ItemStack onItemRightClick(ItemStack ist, World world, EntityPlayer player) {
   return Strategy.get()
       .onItemRightClick(ist, world, player, player.posX, player.posY, player.posZ);
 }
コード例 #6
0
 @Override
 protected String getUnlocalizedNameForDisplay(ItemStack ist) {
   return String.valueOf(Strategy.get().getStateWithChange(ist));
 }
コード例 #7
0
 public boolean onBlockStartBreak(ItemStack itemstack, int X, int Y, int Z, EntityPlayer player) {
   return Strategy.get().onBlockStartBreak(itemstack, X, Y, Z, player);
 }
コード例 #8
0
 protected int getWeaponDamage() {
   return Strategy.get().getWeaponDamage();
 }
コード例 #9
0
 @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);
 }