HyCodeYourTale
classpublicPriority 3

EntityPlacementData

com.hypixel.hytale.builtin.hytalegenerator.props.entity.EntityPlacementData

implements MemInstrument

5

Methods

5

Public Methods

4

Fields

1

Constructors

Constructors

public
EntityPlacementData(Vector3i offset, PrefabRotation rotation, Holder<EntityStore> entityHolder, int objectId)

Methods

Public Methods (5)

public
Holder<EntityStore> getEntityHolder()
public
MemInstrument.Report getMemoryUsage()
@Nonnull@Override
public
int getObjectId()
public
Vector3i getOffset()
public
PrefabRotation getRotation()

Fields

Private/Package Fields (4)

privateHolder<EntityStore> entityHolder
privateint objectId
privateVector3i offset
privatePrefabRotation rotation

Inheritance

Parent
Current
Interface
Child

Use mouse wheel to zoom, drag to pan. Click nodes to navigate.

Related Classes

Source Code

package com.hypixel.hytale.builtin.hytalegenerator.props.entity;

import com.hypixel.hytale.builtin.hytalegenerator.newsystem.performanceinstruments.MemInstrument;
import com.hypixel.hytale.component.Holder;
import com.hypixel.hytale.math.vector.Vector3i;
import com.hypixel.hytale.server.core.prefab.PrefabRotation;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
import javax.annotation.Nonnull;

public class EntityPlacementData implements MemInstrument {
   private final Vector3i offset;
   private final PrefabRotation rotation;
   private final Holder<EntityStore> entityHolder;
   private final int objectId;

   public EntityPlacementData(Vector3i offset, PrefabRotation rotation, Holder<EntityStore> entityHolder, int objectId) {
      this.offset = offset;
      this.rotation = rotation;
      this.entityHolder = entityHolder;
      this.objectId = objectId;
   }

   public Vector3i getOffset() {
      return this.offset;
   }

   public PrefabRotation getRotation() {
      return this.rotation;
   }

   public Holder<EntityStore> getEntityHolder() {
      return this.entityHolder;
   }

   public int getObjectId() {
      return this.objectId;
   }

   @Nonnull
   @Override
   public MemInstrument.Report getMemoryUsage() {
      long size_bytes = 48L;
      return new MemInstrument.Report(48L);
   }
}