本文整理汇总了PHP中Monster::initEntity方法的典型用法代码示例。如果您正苦于以下问题:PHP Monster::initEntity方法的具体用法?PHP Monster::initEntity怎么用?PHP Monster::initEntity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Monster
的用法示例。
在下文中一共展示了Monster::initEntity方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initEntity
public function initEntity()
{
$this->setMaxHealth(20);
parent::initEntity();
if (!isset($this->namedtag->Powered)) {
$this->setPowered(1);
}
}
示例2: initEntity
public function initEntity()
{
$this->setMaxHealth(20);
parent::initEntity();
if (!isset($this->namedtag->Profession)) {
$this->setSkeletonType(1);
}
}
示例3: initEntity
public function initEntity()
{
parent::initEntity();
if (!isset($this->namedtag->powered)) {
$this->setPowered(false);
}
$this->setDataProperty(self::DATA_POWERED, self::DATA_TYPE_BYTE, $this->isPowered() ? 1 : 0);
}
示例4: initEntity
public function initEntity()
{
parent::initEntity();
if (!isset($this->namedtag->powered)) {
$this->setPowered(false);
}
$this->setDataFlag(self::DATA_FLAGS, self::DATA_FLAG_POWERED, $this->isPowered());
}
示例5: initEntity
public function initEntity()
{
$this->setMaxHealth(40);
parent::initEntity();
#for($i = 10; $i < 25; $i++){
# $this->setDataProperty($i, self::DATA_TYPE_BYTE, 1);
#}
if (!isset($this->namedtag->Angry)) {
$this->setAngry(false);
}
}
示例6: initEntity
public function initEntity()
{
$this->setMaxHealth(20);
parent::initEntity();
}