/**
* Called to tick armor in the armor slot. Override to do something
*
* @param world
* @param player
* @param itemStack
*/
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack)
{
}
if (player.getActivePotionEffect(Potion.nightVision) == null)
player.addPotionEffect(new PotionEffect(Potion.nightVision.id, 200));
/**
* Called to tick armor in the armor slot. Override to do something
*
* @param world
* @param player
* @param itemStack
*/
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack)
{
}
if (player.getActivePotionEffect(Potion.nightVision) == null)
player.addPotionEffect(new PotionEffect(Potion.nightVision.id, 200));
timaxa007 написал(а):Код:/** * Called to tick armor in the armor slot. Override to do something * * @param world * @param player * @param itemStack */ public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) { }
Код:if (player.getActivePotionEffect(Potion.nightVision) == null) player.addPotionEffect(new PotionEffect(Potion.nightVision.id, 200));
http://forum.mcmodding.ru/%d0%a2%d0%b5%d0%bc%d0%b0-%d0%ad%d1%84%d1%84%d0%b5%d0%ba%d1%82%d1%8b-%d0%ad%d1%84%d1%84%d0%b5%d0%ba%d1%82-%d0%bf%d1%80%d0%b8-%d0%bd%d0%b0%d0%b4%d0%b5%d1%82%d0%be%d0%bc-%d1%88%d0%bb%d0%b5%d0%bc%d0%b5?highlight=onArmorTick
http://forum.mcmodding.ru/%d0%a2%d0%b5%d0%bc%d0%b0-%d0%ad%d1%84%d1%84%d0%b5%d0%ba%d1%82-%d0%be%d1%82-%d0%b1%d1%80%d0%be%d0%bd%d0%b8--9310?highlight=onArmorTick
* {@link #distance} contains the distance the Entity is to fall. If this event is canceled, this value is set to 0.0F.