ApplyRandomSkinPersistedComponent class

Пакет: com.hypixel.hytale.server.core.modules.entity.player

Файл: com/hypixel/hytale/server/core/modules/entity/player/ApplyRandomSkinPersistedComponent.java

implements: Component<EntityStore>

Поля (1)

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

Методы (1)

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

Исходный код

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

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

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

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

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