HealthRegenState class
Пакет: com.hypixel.hytale.server.core.modules.entity.component
Файл: com/hypixel/hytale/server/core/modules/entity/component/HealthRegenState.java
implements: Component<EntityStore>
Поля (2)
| Модификаторы | Тип | Имя |
|---|---|---|
private |
boolean |
regenEnabled |
|
HealthRegenState |
var1 |
Методы (3)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
static |
ComponentType<EntityStore, HealthRegenState> |
getComponentTypeComponentType<EntityStore, HealthRegenState> getComponentType() |
public |
boolean |
isRegenEnabledboolean isRegenEnabled() |
public |
void |
setRegenEnabledvoid setRegenEnabled(boolean var1) |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.modules.entity.component;
class="kw">import com.hypixel.hytale.component.Component;
class="kw">import com.hypixel.hytale.component.ComponentType;
class="kw">import com.hypixel.hytale.server.core.modules.entity.EntityModule;
class="kw">import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
class="kw">import javax.annotation.Nonnull;
class="kw">public class HealthRegenState class="kw">implements Component<EntityStore> {
class="kw">private boolean regenEnabled = true;
class="kw">public HealthRegenState() {
}
class="kw">public class="kw">static ComponentType<EntityStore, HealthRegenState> getComponentType() {
class="kw">return EntityModule.get().getHealthRegenStateComponentType();
}
class="kw">public void setRegenEnabled(boolean var1) {
this.regenEnabled = var1;
}
class="kw">public boolean isRegenEnabled() {
class="kw">return this.regenEnabled;
}
@Nonnull
@Override
class="kw">public Component<EntityStore> clone() {
HealthRegenState var1 = new HealthRegenState();
var1.regenEnabled = this.regenEnabled;
class="kw">return var1;
}
}