WitherSkull
Link to witherskull
Импорт класса
Link to импорт-класса
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.entity.type.projectile.WitherSkull;
Extending AbstractHurtingProjectile
Link to extending-abstracthurtingprojectile
WitherSkull extends AbstractHurtingProjectile. That means all methods available in AbstractHurtingProjectile are also available in WitherSkull
Constructors
Link to constructors
ZenScript Copynew WitherSkull(level as Level, owner as LivingEntity, xPower as double, yPower as double, zPower as double) as WitherSkull
new WitherSkull(level, entity, 9, 9, 9);
Параметр | Тип | Описание |
---|---|---|
Параметр level | Тип Level | Описание The level the entity is in. |
Параметр owner | Тип LivingEntity | Описание The owner of the skull, used for position. |
Параметр xPower | Тип double | Описание The xPower of the entity. |
Параметр yPower | Тип double | Описание The yPower of the entity. |
Параметр zPower | Тип double | Описание The zPower of the entity. |
Методы
Link to методы
Name: isDangerous
Gets whether this skull is dangerous or not.
Returns: true if dangerous, false otherwise.
Return Type: boolean
ZenScript Copy// WitherSkull.isDangerous() as boolean
myWitherSkull.isDangerous();
Name: setDangerous
Sets whether this skull is dangerous or not.
ZenScript Copy// WitherSkull.setDangerous(dangerous as boolean)
myWitherSkull.setDangerous(true);
Параметр | Тип |
---|---|
Параметр dangerous | Тип boolean |
Свойства
Link to свойства
Название | Тип | Имеет Getter | Имеет Setter | Описание |
---|---|---|---|---|
Название isDangerous | Тип boolean | Имеет Getter true | Имеет Setter true | Описание Gets whether this skull is dangerous or not. |