ChangeModelPage

public class ChangeModelPage extends InteractiveCustomUIPage

Class ChangeModelPage. Provides changemodelpage functionality for the Hytale server.

java.lang.Object > InteractiveCustomUIPage > ChangeModelPage

Field Summary

searchQuery

private String searchQuery

Field searchQuery.

models

private List models

Field models.

selectedModel

private String selectedModel

Field selectedModel.

modelPreview

private Ref modelPreview

Field modelPreview.

position

private Vector3d position

Field position.

rotation

private Vector3f rotation

Field rotation.

scale

private float scale

Field scale.

commandBuilder

final UICommandBuilder commandBuilder

Field commandBuilder.

eventBuilder

final UIEventBuilder eventBuilder

Field eventBuilder.

type

final String type

Field type.

commandBuilder2

final UICommandBuilder commandBuilder2

Field commandBuilder2.

model

final Model model

Field model.

skinComponent

final PlayerSkinComponent skinComponent

Field skinComponent.

playerSkinComponent

final PlayerSkinComponent playerSkinComponent

Field playerSkinComponent.

newModel

final Model newModel

Field newModel.

roleTemplateNames

final Set roleTemplateNames

Field roleTemplateNames.

map

final Object2IntMap map

Field map.

fuzzyDistance

final int fuzzyDistance

Field fuzzyDistance.

sorted

final Stream sorted

Field sorted.

obj

final Object2IntMap obj

Field obj.

id

final String id

Field id.

selector

final String selector

Field selector.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

headRotationComponent

final HeadRotation headRotationComponent

Field headRotationComponent.

playerPosition

final Vector3d playerPosition

Field playerPosition.

headRotation

final Vector3f headRotation

Field headRotation.

targetGround

final Vector3d targetGround

Field targetGround.

relativePos

final Vector3d relativePos

Field relativePos.

previewRotation

final Vector3f previewRotation

Field previewRotation.

holder

final Holder holder

Field holder.

modelAsset

final ModelAsset modelAsset

Field modelAsset.

Method Detail

ChangeModelPage

public public ChangeModelPage (@Nonnull final PlayerRef playerRef)

Method ChangeModelPage.

Parameters:
@Nonnull final PlayerRef playerRef

build

public void build (@Nonnull final Ref ref, @Nonnull final UICommandBuilder commandBuilder, @Nonnull final UIEventBuilder eventBuilder, @Nonnull final Store store)

Method build.

Parameters:
@Nonnull final Ref ref
@Nonnull final UICommandBuilder commandBuilder
@Nonnull final UIEventBuilder eventBuilder
@Nonnull final Store store

EventData

public new EventData ()

Method EventData.

handleDataEvent

public void handleDataEvent (@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final PageEventData data)

Method handleDataEvent.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store
@Nonnull final PageEventData data

ModelComponent

public new ModelComponent (this.getModel(this.scale)

Method ModelComponent.

Parameters:
this.getModel(this.scale this.getModel(this.scale

onDismiss

public void onDismiss (@Nonnull final Ref ref, @Nonnull final Store store)

Method onDismiss.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store

buildModelList

private void buildModelList (@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final UICommandBuilder commandBuilder, @Nonnull final UIEventBuilder eventBuilder)

Method buildModelList.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store
@Nonnull final UICommandBuilder commandBuilder
@Nonnull final UIEventBuilder eventBuilder

if

public else if (this.selectedModel != null)

Method if.

Parameters:
this.selectedModel != null

selectModel

private void selectModel (@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final String modelId, @Nonnull final UICommandBuilder commandBuilder)

Method selectModel.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store
@Nonnull final String modelId
@Nonnull final UICommandBuilder commandBuilder

NetworkId

public new NetworkId (store.getExternalData()

Method NetworkId.

Parameters:
store.getExternalData( store.getExternalData(

TransformComponent

public new TransformComponent (previewPosition, previewRotation)

Method TransformComponent.

Parameters:
previewPosition previewPosition
previewRotation previewRotation

HeadRotation

public new HeadRotation (previewRotation)

Method HeadRotation.

Parameters:
previewRotation previewRotation

getModel

private Model getModel (final float scale)

Method getModel.

Parameters:
final float scale