Class EntityUtils
java.lang.Object
com.hypixel.hytale.server.core.entity.EntityUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T extends Entity>
ComponentType<EntityStore, T> findComponentType(Archetype<EntityStore> archetype) private static <C extends Component<EntityStore>,T extends C>
ComponentType<EntityStore, T> findComponentType(Archetype<EntityStore> archetype, Class<C> entityClass) static EntitygetEntity(int index, ArchetypeChunk<EntityStore> archetypeChunk) Deprecated.static EntitygetEntity(Holder<EntityStore> holder) Deprecated.static EntitygetEntity(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) Deprecated.static PhysicsValuesgetPhysicsValues(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) Deprecated.static booleanhasEntity(Archetype<EntityStore> archetype) Deprecated.static booleanhasLivingEntity(Archetype<EntityStore> archetype) Deprecated.static Holder<EntityStore> toHolder(int index, ArchetypeChunk<EntityStore> archetypeChunk)
-
Constructor Details
-
EntityUtils
public EntityUtils()
-
-
Method Details
-
toHolder
@Nonnull public static Holder<EntityStore> toHolder(int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk) -
findComponentType
@Nullable private static <T extends Entity> ComponentType<EntityStore,T> findComponentType(@Nonnull Archetype<EntityStore> archetype) -
findComponentType
@Nullable private static <C extends Component<EntityStore>,T extends C> ComponentType<EntityStore,T> findComponentType(@Nonnull Archetype<EntityStore> archetype, @Nonnull Class<C> entityClass) -
getEntity
@Deprecated @Nullable public static Entity getEntity(@Nullable Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Deprecated. -
getEntity
@Nullable @Deprecated public static Entity getEntity(int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk) Deprecated. -
getEntity
Deprecated. -
hasEntity
Deprecated. -
hasLivingEntity
Deprecated. -
getPhysicsValues
@Nonnull @Deprecated public static PhysicsValues getPhysicsValues(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Deprecated.
-