ModelSystems

public class ModelSystems

Class ModelSystems. Provides modelsystems functionality for the Hytale server.

java.lang.Object > ModelSystems

Field Summary

persistentModel

final PersistentModel persistentModel

Field persistentModel.

model

final Model model

Field model.

modelBoundingBox

final Box modelBoundingBox

Field modelBoundingBox.

playerSkin

final PlayerSkin playerSkin

Field playerSkin.

player

final Player player

Field player.

preset

final String preset

Field preset.

modelAsset

final ModelAsset modelAsset

Field modelAsset.

defaultModelAsset

final ModelAsset defaultModelAsset

Field defaultModelAsset.

defaultModel

final Model defaultModel

Field defaultModel.

boundingBox

final BoundingBox boundingBox

Field boundingBox.

movementStates

final MovementStatesComponent movementStates

Field movementStates.

newMovementStates

final MovementStates newMovementStates

Field newMovementStates.

sentMovementStates

final MovementStates sentMovementStates

Field sentMovementStates.

movementManagerComponent

final MovementManager movementManagerComponent

Field movementManagerComponent.

visibleComponent

final EntityTrackerSystems.Visible visibleComponent

Field visibleComponent.

activeAnimationComponent

final ActiveAnimationComponent activeAnimationComponent

Field activeAnimationComponent.

ref

final Ref ref

Field ref.

update

final ComponentUpdate update

Field update.

Method Detail

ModelChange

public public ModelChange ()

Method ModelChange.

getQuery

public Query getQuery ()

Method getQuery.

componentType

public ModelComponent> componentType ()

Method componentType.

onComponentAdded

public void onComponentAdded (@Nonnull final Ref ref, @Nonnull final ModelComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final ModelComponent component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentSet

public void onComponentSet (@Nonnull final Ref ref, final ModelComponent oldComponent, @Nonnull final ModelComponent newComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentSet.

Parameters:
@Nonnull final Ref ref
final ModelComponent oldComponent
@Nonnull final ModelComponent newComponent
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentRemoved

public void onComponentRemoved (@Nonnull final Ref ref, @Nonnull final ModelComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentRemoved.

Parameters:
@Nonnull final Ref ref
@Nonnull final ModelComponent component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

ModelSpawned

public public ModelSpawned ()

Method ModelSpawned.

SystemDependency

public new SystemDependency (Order.AFTER, SetRenderedModel.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
SetRenderedModel.class SetRenderedModel.class

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

getDependencies

public Set> getDependencies ()

Method getDependencies.

SetRenderedModel

public public SetRenderedModel ()

Method SetRenderedModel.

ModelComponent

public new ModelComponent (persistentModel.getModelReference()

Method ModelComponent.

Parameters:
persistentModel.getModelReference( persistentModel.getModelReference(

AssignNetworkIdToProps

public public AssignNetworkIdToProps ()

Method AssignNetworkIdToProps.

NetworkId

public new NetworkId (store.getExternalData()

Method NetworkId.

Parameters:
store.getExternalData( store.getExternalData(

EnsurePropsPrefabCopyable

public public EnsurePropsPrefabCopyable ()

Method EnsurePropsPrefabCopyable.

ApplyRandomSkin

public public ApplyRandomSkin ()

Method ApplyRandomSkin.

PlayerSkinComponent

public new PlayerSkinComponent (playerSkin)

Method PlayerSkinComponent.

Parameters:
playerSkin playerSkin

PlayerConnect

public public PlayerConnect ()

Method PlayerConnect.

UpdateBoundingBox

public public UpdateBoundingBox ()

Method UpdateBoundingBox.

Box

public new Box ()

Method Box.

updateBoundingBox

static void updateBoundingBox (@Nonnull final Model model, @Nonnull final BoundingBox boundingBox, @Nullable final MovementStatesComponent movementStatesComponent)

Method updateBoundingBox.

Parameters:
@Nonnull final Model model
@Nonnull final BoundingBox boundingBox
@Nullable final MovementStatesComponent movementStatesComponent

UpdateCrouchingBoundingBox

public public UpdateCrouchingBoundingBox ()

Method UpdateCrouchingBoundingBox.

isParallel

public boolean isParallel (final int archetypeChunkSize, final int taskCount)

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

tick

public void tick (final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method tick.

Parameters:
final float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

PlayerUpdateMovementManager

public public PlayerUpdateMovementManager ()

Method PlayerUpdateMovementManager.

updateMovementController

private void updateMovementController (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method updateMovementController.

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

AnimationEntityTrackerUpdate

public public AnimationEntityTrackerUpdate ()

Method AnimationEntityTrackerUpdate.

getGroup

public SystemGroup getGroup ()

Method getGroup.

if

public else if (!visibleComponent.newlyVisibleTo.isEmpty()

Method if.

Parameters:
!visibleComponent.newlyVisibleTo.isEmpty( !visibleComponent.newlyVisibleTo.isEmpty(

queueUpdatesFor

static void queueUpdatesFor (@Nonnull final Ref ref, @Nonnull final ActiveAnimationComponent animationComponent, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo)

Method queueUpdatesFor.

Parameters:
@Nonnull final Ref ref
@Nonnull final ActiveAnimationComponent animationComponent
@Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo