DamageDataSetupSystem class

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

Файл: com/hypixel/hytale/server/core/entity/damage/DamageDataSetupSystem.java

extends: HolderSystem<EntityStore>

Исходный код

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

class="kw">import com.hypixel.hytale.component.AddReason;
class="kw">import com.hypixel.hytale.component.ComponentType;
class="kw">import com.hypixel.hytale.component.Holder;
class="kw">import com.hypixel.hytale.component.RemoveReason;
class="kw">import com.hypixel.hytale.component.Store;
class="kw">import com.hypixel.hytale.component.query.Query;
class="kw">import com.hypixel.hytale.component.system.HolderSystem;
class="kw">import com.hypixel.hytale.server.core.modules.entity.AllLegacyLivingEntityTypesQuery;
class="kw">import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
class="kw">import javax.annotation.Nonnull;

class="kw">public class DamageDataSetupSystem class="kw">extends HolderSystem<EntityStore> {
   @Nonnull
   class="kw">private class="kw">final ComponentType<EntityStore, DamageDataComponent> damageDataComponentType;

   class="kw">public DamageDataSetupSystem(@Nonnull ComponentType<EntityStore, DamageDataComponent> var1) {
      this.damageDataComponentType = var1;
   }

   @Override
   class="kw">public void onEntityAdd(@Nonnull Holder<EntityStore> var1, @Nonnull AddReason var2, @Nonnull Store<EntityStore> var3) {
      var1.ensureComponent(this.damageDataComponentType);
   }

   @Override
   class="kw">public void onEntityRemoved(@Nonnull Holder<EntityStore> var1, @Nonnull RemoveReason var2, @Nonnull Store<EntityStore> var3) {
   }

   @Nonnull
   @Override
   class="kw">public Query<EntityStore> getQuery() {
      class="kw">return AllLegacyLivingEntityTypesQuery.INSTANCE;
   }
}