getName(), new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", attackSpeed, 0)); } return multimap; } 代码示例来源:origin: SonarSonic/Calculator @Override public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) { super.onLeftClickEntity(stack, player, ...
private static boolean blockWeaponTableFluids(TestInfo info) { info.world.setBlockState(info.pos, ModBlocks.weapon_table.getDefaultState()); info.player.setHeldItem(info.player.getActiveHand(), new ItemStack(Items.LAVA_BUCKET)); IBlockState block = info.world.getBlockState(info.pos); block.ge...