ImageImportPage

public class ImageImportPage extends InteractiveCustomUIPage

Class ImageImportPage. Provides imageimportpage functionality for the Hytale server.

java.lang.Object > InteractiveCustomUIPage > ImageImportPage

Field Summary

imagePath

private String imagePath

Field imagePath.

maxDimension

private int maxDimension

Field maxDimension.

orientationStr

private String orientationStr

Field orientationStr.

orientation

private Orientation orientation

Field orientation.

originStr

private String originStr

Field originStr.

origin

private Origin origin

Field origin.

statusMessage

private String statusMessage

Field statusMessage.

isError

private boolean isError

Field isError.

isProcessing

private boolean isProcessing

Field isProcessing.

showBrowser

private boolean showBrowser

Field showBrowser.

config

final FileBrowserConfig config

Field config.

orientationEntries

final List orientationEntries

Field orientationEntries.

originEntries

final List originEntries

Field originEntries.

selectedPath

final String selectedPath

Field selectedPath.

fileName

final String fileName

Field fileName.

targetPath

final Path targetPath

Field targetPath.

resolvedPath

final Path resolvedPath

Field resolvedPath.

commandBuilder

final UICommandBuilder commandBuilder

Field commandBuilder.

eventBuilder

final UIEventBuilder eventBuilder

Field eventBuilder.

path

final Path path

Field path.

normalizedPath

final Path normalizedPath

Field normalizedPath.

normalizedImports

final Path normalizedImports

Field normalizedImports.

playerComponent

final Player playerComponent

Field playerComponent.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

finalPath

final String finalPath

Field finalPath.

finalMaxSize

final int finalMaxSize

Field finalMaxSize.

finalOrientation

final Orientation finalOrientation

Field finalOrientation.

finalOrigin

final Origin finalOrigin

Field finalOrigin.

colorIndex

final BlockColorIndex colorIndex

Field colorIndex.

selection

final BlockSelection selection

Field selection.

finalScale

final float finalScale

Field finalScale.

srcX

final int srcX

Field srcX.

srcY

final int srcY

Field srcY.

rgba

final int rgba

Field rgba.

alpha

final int alpha

Field alpha.

red

final int red

Field red.

green

final int green

Field green.

blue

final int blue

Field blue.

blockId

final int blockId

Field blockId.

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.

maxSize

private Integer maxSize

Field maxSize.

doImport

private Boolean doImport

Field doImport.

browse

private Boolean browse

Field browse.

browserSelect

private Boolean browserSelect

Field browserSelect.

browserCancel

private Boolean browserCancel

Field browserCancel.

file

private String file

Field file.

searchQuery

private String searchQuery

Field searchQuery.

searchResult

private String searchResult

Field searchResult.

Method Detail

ImageImportPage

public public ImageImportPage (@Nonnull final PlayerRef playerRef)

Method ImageImportPage.

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

buildBrowserPage

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

Method buildBrowserPage.

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

updateStatus

private void updateStatus (@Nonnull final UICommandBuilder commandBuilder)

Method updateStatus.

Parameters:
@Nonnull final UICommandBuilder commandBuilder

setError

private void setError (@Nonnull final String message)

Method setError.

Parameters:
@Nonnull final String message

setStatus

private void setStatus (@Nonnull final String message)

Method setStatus.

Parameters:
@Nonnull final String message

handleDataEvent

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

Method handleDataEvent.

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

if

public else if (targetPath != null && Files.isRegularFile(targetPath, new LinkOption[0])

Method if.

Parameters:
targetPath != null && Files.isRegularFile(targetPath
new LinkOption[0]

performImport

private void performImport (@Nonnull final Ref ref, @Nonnull final Store store)

Method performImport.

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

file

public image file (unsupported format or corrupted)

Method file.

Parameters:
unsupported format or corrupted

Vector3i

public new Vector3i (offsetX, offsetY, offsetZ)

Method Vector3i.

Parameters:
offsetX offsetX
offsetY offsetY
offsetZ offsetZ

clipboard

public to clipboard (%dx%dx%d)

Method clipboard.

Parameters:
%dx%dx%d %dx%dx%d

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(