PrefabAnchor class
Пакет: com.hypixel.hytale.builtin.buildertools.prefabeditor
Файл: com/hypixel/hytale/builtin/buildertools/prefabeditor/PrefabAnchor.java
implements: Component<EntityStore>
Поля (1)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
PrefabAnchor |
INSTANCE |
Методы (1)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
static |
ComponentType<EntityStore, PrefabAnchor> |
getComponentTypeComponentType<EntityStore, PrefabAnchor> getComponentType() |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.builtin.buildertools.prefabeditor;
class="kw">import com.hypixel.hytale.builtin.buildertools.BuilderToolsPlugin;
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.universe.world.storage.EntityStore;
class="kw">public class PrefabAnchor class="kw">implements Component<EntityStore> {
class="kw">public class="kw">static class="kw">final PrefabAnchor INSTANCE = new PrefabAnchor();
class="kw">public class="kw">static class="kw">final BuilderCodec<PrefabAnchor> CODEC = BuilderCodec.builder(PrefabAnchor.class, () -> INSTANCE).build();
class="kw">public class="kw">static ComponentType<EntityStore, PrefabAnchor> getComponentType() {
class="kw">return BuilderToolsPlugin.get().getPrefabAnchorComponentType();
}
class="kw">private PrefabAnchor() {
}
@Override
class="kw">public Component<EntityStore> clone() {
class="kw">return INSTANCE;
}
}