EntityPlacementData class

Пакет: com.hypixel.hytale.builtin.hytalegenerator

Файл: com/hypixel/hytale/builtin/hytalegenerator/EntityPlacementData.java

implements: MemInstrument

Поля (2)

МодификаторыТипИмя
final Vector3i offset
long var1

Методы (4)

МодификаторыВозвратСигнатура
public Holder<EntityStore> getEntityHolderHolder<EntityStore> getEntityHolder()
public Vector3i getOffsetVector3i getOffset()
public int getPrefabInstanceIdint getPrefabInstanceId()
public PrefabRotation getRotationPrefabRotation getRotation()

Исходный код

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

class="kw">import com.hypixel.hytale.builtin.hytalegenerator.engine.performanceinstruments.MemInstrument;
class="kw">import com.hypixel.hytale.component.Holder;
class="kw">import com.hypixel.hytale.server.core.prefab.PrefabRotation;
class="kw">import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
class="kw">import javax.annotation.Nonnull;
class="kw">import org.joml.Vector3i;

class="kw">public class EntityPlacementData class="kw">implements MemInstrument {
   class="kw">private class="kw">final Vector3i offset;
   class="kw">private class="kw">final PrefabRotation rotation;
   class="kw">private class="kw">final Holder<EntityStore> entityHolder;
   class="kw">private class="kw">final int prefabInstanceId;

   class="kw">public EntityPlacementData(Vector3i var1, PrefabRotation var2, Holder<EntityStore> var3, int var4) {
      this.offset = var1;
      this.rotation = var2;
      this.entityHolder = var3;
      this.prefabInstanceId = var4;
   }

   class="kw">public Vector3i getOffset() {
      class="kw">return this.offset;
   }

   class="kw">public PrefabRotation getRotation() {
      class="kw">return this.rotation;
   }

   class="kw">public Holder<EntityStore> getEntityHolder() {
      class="kw">return this.entityHolder;
   }

   class="kw">public int getPrefabInstanceId() {
      class="kw">return this.prefabInstanceId;
   }

   @Nonnull
   @Override
   class="kw">public MemInstrument.Report getMemoryUsage() {
      long var1 = 48L;
      class="kw">return new MemInstrument.Report(48L);
   }
}