ModelRotateBoundingBoxComponent class
Пакет: com.hypixel.hytale.server.core.modules.entity.component
Файл: com/hypixel/hytale/server/core/modules/entity/component/ModelRotateBoundingBoxComponent.java
implements: Component<EntityStore>
Поля (1)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
BuilderCodec<ModelRotateBoundingBoxComponent> |
CODEC |
Методы (3)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
static |
ComponentType<EntityStore, ModelRotateBoundingBoxComponent> |
getComponentTypeComponentType<EntityStore, ModelRotateBoundingBoxComponent> getComponentType() |
public |
boolean |
isEnableRotationboolean isEnableRotation() |
public |
void |
setEnableRotationvoid setEnableRotation(boolean var1) |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.modules.entity.component;
class="kw">import com.hypixel.hytale.codec.Codec;
class="kw">import com.hypixel.hytale.codec.KeyedCodec;
class="kw">import com.hypixel.hytale.codec.builder.BuilderCodec;
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">public class ModelRotateBoundingBoxComponent class="kw">implements Component<EntityStore> {
class="kw">public class="kw">static class="kw">final BuilderCodec<ModelRotateBoundingBoxComponent> CODEC = BuilderCodec.<ModelRotateBoundingBoxComponent>builder(
ModelRotateBoundingBoxComponent.class, ModelRotateBoundingBoxComponent::new
)
.addField(new KeyedCodec<>("EnableRotation", Codec.BOOLEAN), (var0, var1) -> var0.enableRotation = var1, var0 -> var0.enableRotation)
.build();
class="kw">private boolean enableRotation;
class="kw">public class="kw">static ComponentType<EntityStore, ModelRotateBoundingBoxComponent> getComponentType() {
class="kw">return EntityModule.get().getModelRotateBoundingBoxComponentType();
}
class="kw">public ModelRotateBoundingBoxComponent() {
}
class="kw">public ModelRotateBoundingBoxComponent(boolean var1) {
this.enableRotation = var1;
}
class="kw">public boolean isEnableRotation() {
class="kw">return this.enableRotation;
}
class="kw">public void setEnableRotation(boolean var1) {
this.enableRotation = var1;
}
@Override
class="kw">public Component<EntityStore> clone() {
class="kw">return new ModelRotateBoundingBoxComponent(this.enableRotation);
}
}