getEffectId() public static méthode

public static getEffectId ( integer $meta ) : integer
$meta integer
Résultat integer
Exemple #1
0
 public function __construct(FullChunk $chunk, CompoundTag $nbt, Entity $shootingEntity = null)
 {
     if (!isset($nbt->PotionId)) {
         $nbt->PotionId = new ShortTag("PotionId", Potion::AWKWARD);
     }
     parent::__construct($chunk, $nbt, $shootingEntity);
     $this->setDataProperty(self::DATA_POTION_ID, self::DATA_TYPE_SHORT, Potion::getEffectId($this->getPotionId()));
 }