PropComponent class
Пакет: com.hypixel.hytale.server.core.modules.entity.component
Файл: com/hypixel/hytale/server/core/modules/entity/component/PropComponent.java
implements: Component<EntityStore>
Поля (1)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
BuilderCodec<PropComponent> |
CODEC |
Методы (2)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
static |
PropComponent |
getPropComponent get() |
static |
ComponentType<EntityStore, PropComponent> |
getComponentTypeComponentType<EntityStore, PropComponent> getComponentType() |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.modules.entity.component;
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">import javax.annotation.Nonnull;
class="kw">public class PropComponent class="kw">implements Component<EntityStore> {
class="kw">public class="kw">static class="kw">final BuilderCodec<PropComponent> CODEC = BuilderCodec.builder(PropComponent.class, PropComponent::new).build();
class="kw">private class="kw">static class="kw">final PropComponent INSTANCE = new PropComponent();
class="kw">public PropComponent() {
}
class="kw">public class="kw">static ComponentType<EntityStore, PropComponent> getComponentType() {
class="kw">return EntityModule.get().getPropComponentType();
}
class="kw">public class="kw">static PropComponent get() {
class="kw">return INSTANCE;
}
@Nonnull
@Override
class="kw">public Component<EntityStore> clone() {
class="kw">return this;
}
}