PrefabCopyableComponent class

Пакет: com.hypixel.hytale.server.core.prefab

Файл: com/hypixel/hytale/server/core/prefab/PrefabCopyableComponent.java

implements: Component<EntityStore>

Поля (1)

МодификаторыТипИмя
final PrefabCopyableComponent INSTANCE

Методы (2)

МодификаторыВозвратСигнатура
static PrefabCopyableComponent getPrefabCopyableComponent get()
static ComponentType<EntityStore, PrefabCopyableComponent> getComponentTypeComponentType<EntityStore, PrefabCopyableComponent> getComponentType()

Исходный код

Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.prefab;

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 PrefabCopyableComponent class="kw">implements Component<EntityStore> {
   class="kw">public class="kw">static class="kw">final PrefabCopyableComponent INSTANCE = new PrefabCopyableComponent();
   class="kw">public class="kw">static class="kw">final BuilderCodec<PrefabCopyableComponent> CODEC = BuilderCodec.builder(PrefabCopyableComponent.class, () -> INSTANCE).build();

   class="kw">public PrefabCopyableComponent() {
   }

   class="kw">public class="kw">static ComponentType<EntityStore, PrefabCopyableComponent> getComponentType() {
      class="kw">return EntityModule.get().getPrefabCopyableComponentType();
   }

   class="kw">public class="kw">static PrefabCopyableComponent get() {
      class="kw">return INSTANCE;
   }

   @Override
   class="kw">public Component<EntityStore> clone() {
      class="kw">return INSTANCE;
   }
}