PrefabPage

public class PrefabPage extends InteractiveCustomUIPage

Class PrefabPage. Provides prefabpage functionality for the Hytale server.

java.lang.Object > InteractiveCustomUIPage > PrefabPage

Field Summary

inAssetsRoot

private boolean inAssetsRoot

Field inAssetsRoot.

assetsCurrentDir

private Path assetsCurrentDir

Field assetsCurrentDir.

prefabStore

final PrefabStore prefabStore

Field prefabStore.

roots

final List roots

Field roots.

config

final FileBrowserConfig config

Field config.

savedSearchQuery

final String savedSearchQuery

Field savedSearchQuery.

initialRoot

final Path initialRoot

Field initialRoot.

commandBuilder

final UICommandBuilder commandBuilder

Field commandBuilder.

eventBuilder

final UIEventBuilder eventBuilder

Field eventBuilder.

selectedPath

final String selectedPath

Field selectedPath.

parent

final Path parent

Field parent.

resolvedPath

final Path resolvedPath

Field resolvedPath.

commandBuilder2

final UICommandBuilder commandBuilder2

Field commandBuilder2.

eventBuilder2

final UIEventBuilder eventBuilder2

Field eventBuilder2.

playerComponent

final Player playerComponent

Field playerComponent.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

prefab

final BlockSelection prefab

Field prefab.

currentDirStr

final String currentDirStr

Field currentDirStr.

root

final Path root

Field root.

rootDisplay

final String rootDisplay

Field rootDisplay.

currentPath

final String currentPath

Field currentPath.

rootStr

final String rootStr

Field rootStr.

entries

final List entries

Field entries.

displayText

final String displayText

Field displayText.

eventKey

final String eventKey

Field eventKey.

inventory

final Inventory inventory

Field inventory.

hotbar

final ItemContainer hotbar

Field hotbar.

storage

final ItemContainer storage

Field storage.

tools

final ItemContainer tools

Field tools.

hotbarSize

final int hotbarSize

Field hotbarSize.

itemStack

final ItemStack itemStack

Field itemStack.

itemStack2

final ItemStack itemStack2

Field itemStack2.

itemStack3

final ItemStack itemStack3

Field itemStack3.

Method Detail

PrefabPage

public public PrefabPage (@Nonnull final PlayerRef playerRef, final Path defaultRoot, @Nonnull final BuilderToolsPlugin.BuilderState builderState)

Method PrefabPage.

Parameters:
@Nonnull final PlayerRef playerRef
final Path defaultRoot
@Nonnull final BuilderToolsPlugin.BuilderState builderState

buildRootEntries

static List buildRootEntries (@Nonnull final PrefabStore prefabStore)

Method buildRootEntries.

Parameters:
@Nonnull final PrefabStore prefabStore

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

handleDataEvent

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

Method handleDataEvent.

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

handleAssetsNavigation

private void handleAssetsNavigation (@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final String selectedPath, final boolean isSearchResult)

Method handleAssetsNavigation.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store
@Nonnull final String selectedPath
final boolean isSearchResult

handleRegularNavigation

private void handleRegularNavigation (@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final String selectedPath, final boolean isSearchResult)

Method handleRegularNavigation.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store
@Nonnull final String selectedPath
final boolean isSearchResult

handlePrefabSelection

private void handlePrefabSelection (@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final Path file, @Nonnull final String displayPath)

Method handlePrefabSelection.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store
@Nonnull final Path file
@Nonnull final String displayPath

buildCurrentPath

private void buildCurrentPath (@Nonnull final UICommandBuilder commandBuilder)

Method buildCurrentPath.

Parameters:
@Nonnull final UICommandBuilder commandBuilder

getRootDisplayName

private String getRootDisplayName (@Nonnull final Path root)

Method getRootDisplayName.

Parameters:
@Nonnull final Path root

buildFileList

private void buildFileList (@Nonnull final UICommandBuilder commandBuilder, @Nonnull final UIEventBuilder eventBuilder)

Method buildFileList.

Parameters:
@Nonnull final UICommandBuilder commandBuilder
@Nonnull final UIEventBuilder eventBuilder

buildAssetsFileList

private void buildAssetsFileList (@Nonnull final UICommandBuilder commandBuilder, @Nonnull final UIEventBuilder eventBuilder)

Method buildAssetsFileList.

Parameters:
@Nonnull final UICommandBuilder commandBuilder
@Nonnull final UIEventBuilder eventBuilder

switchToPasteTool

private void switchToPasteTool (@Nonnull final Player playerComponent, @Nonnull final PlayerRef playerRef)

Method switchToPasteTool.

Parameters:
@Nonnull final Player playerComponent
@Nonnull final PlayerRef playerRef

SetActiveSlot

public new SetActiveSlot (-1, (byte)

Method SetActiveSlot.

Parameters:
-1 -1
(byte (byte

ItemStack

public new ItemStack (pasteToolStack.getItemId()

Method ItemStack.

Parameters:
pasteToolStack.getItemId( pasteToolStack.getItemId(