public class ModelSystems
Class ModelSystems. Provides modelsystems functionality for the Hytale server.
java.lang.Object > ModelSystems
Field Summary
persistentModel
Field persistentModel.
model
Field model.
modelBoundingBox
Field modelBoundingBox.
playerSkin
Field playerSkin.
player
Field player.
preset
Field preset.
modelAsset
Field modelAsset.
defaultModelAsset
Field defaultModelAsset.
defaultModel
Field defaultModel.
boundingBox
Field boundingBox.
movementStates
Field movementStates.
newMovementStates
Field newMovementStates.
sentMovementStates
Field sentMovementStates.
movementManagerComponent
Field movementManagerComponent.
visibleComponent
Field visibleComponent.
activeAnimationComponent
Field activeAnimationComponent.
ref
Field ref.
update
Field update.
Method Detail
ModelChange
public
ModelChange
()
Method ModelChange.
componentType
ModelComponent>
componentType
()
Method componentType.
onComponentAdded
void
onComponentAdded
(@Nonnull final Ref ref, @Nonnull final ModelComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentAdded.
- Parameters:
@Nonnull final Refref@Nonnull final ModelComponentcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentSet
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 Refreffinal ModelComponentoldComponent@Nonnull final ModelComponentnewComponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentRemoved
void
onComponentRemoved
(@Nonnull final Ref ref, @Nonnull final ModelComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentRemoved.
- Parameters:
@Nonnull final Refref@Nonnull final ModelComponentcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
ModelSpawned
public
ModelSpawned
()
Method ModelSpawned.
SystemDependency
new
SystemDependency
(Order.AFTER, SetRenderedModel.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERSetRenderedModel.classSetRenderedModel.class
onEntityAdd
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
onEntityRemoved
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore
getDependencies
Set>
getDependencies
()
Method getDependencies.
SetRenderedModel
public
SetRenderedModel
()
Method SetRenderedModel.
ModelComponent
new
ModelComponent
(persistentModel.getModelReference()
Method ModelComponent.
- Parameters:
persistentModel.getModelReference(persistentModel.getModelReference(
AssignNetworkIdToProps
public
AssignNetworkIdToProps
()
Method AssignNetworkIdToProps.
NetworkId
new
NetworkId
(store.getExternalData()
Method NetworkId.
- Parameters:
store.getExternalData(store.getExternalData(
EnsurePropsPrefabCopyable
public
EnsurePropsPrefabCopyable
()
Method EnsurePropsPrefabCopyable.
ApplyRandomSkin
public
ApplyRandomSkin
()
Method ApplyRandomSkin.
PlayerSkinComponent
new
PlayerSkinComponent
(playerSkin)
Method PlayerSkinComponent.
- Parameters:
playerSkinplayerSkin
PlayerConnect
public
PlayerConnect
()
Method PlayerConnect.
UpdateBoundingBox
public
UpdateBoundingBox
()
Method UpdateBoundingBox.
Box
new
Box
()
Method Box.
updateBoundingBox
void
updateBoundingBox
(@Nonnull final Model model, @Nonnull final BoundingBox boundingBox, @Nullable final MovementStatesComponent movementStatesComponent)
Method updateBoundingBox.
- Parameters:
@Nonnull final Modelmodel@Nonnull final BoundingBoxboundingBox@Nullable final MovementStatesComponentmovementStatesComponent
UpdateCrouchingBoundingBox
public
UpdateCrouchingBoundingBox
()
Method UpdateCrouchingBoundingBox.
isParallel
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
tick
void
tick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
PlayerUpdateMovementManager
public
PlayerUpdateMovementManager
()
Method PlayerUpdateMovementManager.
updateMovementController
void
updateMovementController
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method updateMovementController.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
AnimationEntityTrackerUpdate
public
AnimationEntityTrackerUpdate
()
Method AnimationEntityTrackerUpdate.
if
else
if
(!visibleComponent.newlyVisibleTo.isEmpty()
Method if.
- Parameters:
!visibleComponent.newlyVisibleTo.isEmpty(!visibleComponent.newlyVisibleTo.isEmpty(
queueUpdatesFor
void
queueUpdatesFor
(@Nonnull final Ref ref, @Nonnull final ActiveAnimationComponent animationComponent, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo)
Method queueUpdatesFor.
- Parameters:
@Nonnull final Refref@Nonnull final ActiveAnimationComponentanimationComponent@Nonnull final Map, EntityTrackerSystems.EntityViewer>visibleTo