//--------------------------------------------------------------------------------------------------------------
@SideOnly(Side.CLIENT)
public void onLeftClickTickClient(ItemStack is, World world, EntityPlayer player, int tick) {
//Могут быть всякие условия.
PackWeapons.network.sendToServer(new MessageActionWeapons(1));
}
@SideOnly(Side.CLIENT)
public void onLeftClickClient(ItemStack is, World world, EntityPlayer player, boolean isPress) {
}
public void fire(ItemStack is, World world, EntityPlayer player) {
//Какие-то условия на сервере, типа
/*EntityArrow entityarrow = new EntityArrow(world, player, 5.0F);
world.spawnEntityInWorld(entityarrow);*/
}
//--------------------------------------------------------------------------------------------------------------
@SideOnly(Side.CLIENT)
public void onRightClickTickClient(ItemStack is, World world, EntityPlayer player, int tick) {
}
@SideOnly(Side.CLIENT)
public void onRightClickClient(ItemStack is, World world, EntityPlayer player, boolean isPress) {
PackWeapons.network.sendToServer(new MessageActionWeapons((isPress ? 2 : -2)));
}
public void scope(ItemStack is, World world, EntityPlayer player, boolean isPress) {
//Какие-то условия на сервере
}
//--------------------------------------------------------------------------------------------------------------