Class ItemPrePhysicsSystem
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.component.system.tick.ArchetypeTickingSystem<EntityStore>
com.hypixel.hytale.component.system.tick.EntityTickingSystem<EntityStore>
com.hypixel.hytale.server.core.modules.entity.item.ItemPrePhysicsSystem
- All Implemented Interfaces:
ISystem<EntityStore>,QuerySystem<EntityStore>,TickableSystem<EntityStore>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.component.system.tick.EntityTickingSystem
EntityTickingSystem.SystemTaskData<ECS_TYPE> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ComponentType<EntityStore, BoundingBox> private final ComponentType<EntityStore, PhysicsValues> private final Query<EntityStore> static final NearestBlockUtil.IterationElement[]private final ComponentType<EntityStore, TransformComponent> private final ComponentType<EntityStore, Velocity> static final doubleFields inherited from interface com.hypixel.hytale.component.system.ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionItemPrePhysicsSystem(ComponentType<EntityStore, ItemComponent> itemComponentType, ComponentType<EntityStore, BoundingBox> boundingBoxComponentType, ComponentType<EntityStore, Velocity> velocityComponentType, ComponentType<EntityStore, TransformComponent> transformComponentType, ComponentType<EntityStore, PhysicsValues> physicsValuesComponentType) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyGravity(float dt, Box boundingBox, PhysicsValues values, Vector3d position, Velocity velocity) getQuery()booleanisParallel(int archetypeChunkSize, int taskCount) static voidmoveOutOfBlock(WorldChunk chunk, Vector3d position, Velocity velocityComponent, Box boundingBox) voidtick(float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) Methods inherited from class com.hypixel.hytale.component.system.tick.EntityTickingSystem
doTick, maybeUseParallel, tick, useParallelMethods inherited from class com.hypixel.hytale.component.system.tick.ArchetypeTickingSystem
isExplicitQuery, test, tickMethods inherited from class com.hypixel.hytale.component.system.System
getComponentRegistrations, getResourceRegistrations, registerComponent, registerComponent, registerComponent, registerResource, registerResourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.system.ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregistered
-
Field Details
-
SEARCH_ELEMENTS
-
VERTICAL_CLIMB_SCALE
public static final double VERTICAL_CLIMB_SCALE- See Also:
-
boundingBoxComponentType
-
velocityComponentType
-
transformComponentType
-
physicsValuesComponentType
-
query
-
-
Constructor Details
-
ItemPrePhysicsSystem
public ItemPrePhysicsSystem(@Nonnull ComponentType<EntityStore, ItemComponent> itemComponentType, @Nonnull ComponentType<EntityStore, BoundingBox> boundingBoxComponentType, @Nonnull ComponentType<EntityStore, Velocity> velocityComponentType, @Nonnull ComponentType<EntityStore, TransformComponent> transformComponentType, @Nonnull ComponentType<EntityStore, PhysicsValues> physicsValuesComponentType)
-
-
Method Details
-
getQuery
-
isParallel
public boolean isParallel(int archetypeChunkSize, int taskCount) - Overrides:
isParallelin classEntityTickingSystem<EntityStore>
-
tick
public void tick(float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
tickin classEntityTickingSystem<EntityStore>
-
moveOutOfBlock
public static void moveOutOfBlock(@Nullable WorldChunk chunk, @Nonnull Vector3d position, @Nonnull Velocity velocityComponent, @Nonnull Box boundingBox) -
applyGravity
public static void applyGravity(float dt, @Nullable Box boundingBox, @Nonnull PhysicsValues values, @Nonnull Vector3d position, @Nonnull Velocity velocity)
-