EntityUtils

public class EntityUtils

Class EntityUtils. Provides entityutils functionality for the Hytale server.

java.lang.Object > EntityUtils

Field Summary

holder

final Holder holder

Field holder.

archetype

final Archetype archetype

Field archetype.

componentType

final ComponentType componentType

Field componentType.

component

final Component component

Field component.

physicsValuesComponent

final PhysicsValues physicsValuesComponent

Field physicsValuesComponent.

modelComponent

final ModelComponent modelComponent

Field modelComponent.

model

final Model model

Field model.

Method Detail

toHolder

static Holder toHolder (final int index, @Nonnull final ArchetypeChunk archetypeChunk)

Method toHolder.

Parameters:
final int index
@Nonnull final ArchetypeChunk archetypeChunk

findComponentType

public T> findComponentType (@Nonnull final Archetype archetype)

Method findComponentType.

Parameters:
@Nonnull final Archetype archetype

getEntity

static Entity getEntity (@Nullable final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method getEntity.

Parameters:
@Nullable final Ref ref
@Nonnull final ComponentAccessor componentAccessor

hasEntity

static boolean hasEntity (@Nonnull final Archetype archetype)

Method hasEntity.

Parameters:
@Nonnull final Archetype archetype

hasLivingEntity

static boolean hasLivingEntity (@Nonnull final Archetype archetype)

Method hasLivingEntity.

Parameters:
@Nonnull final Archetype archetype

getPhysicsValues

static PhysicsValues getPhysicsValues (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method getPhysicsValues.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor