public class ImageImportPage extends InteractiveCustomUIPage
Class ImageImportPage. Provides imageimportpage functionality for the Hytale server.
java.lang.Object > InteractiveCustomUIPage > ImageImportPage
Field Summary
imagePath
Field imagePath.
maxDimension
Field maxDimension.
orientationStr
Field orientationStr.
orientation
Field orientation.
originStr
Field originStr.
origin
Field origin.
statusMessage
Field statusMessage.
isError
Field isError.
isProcessing
Field isProcessing.
showBrowser
Field showBrowser.
config
Field config.
orientationEntries
Field orientationEntries.
originEntries
Field originEntries.
selectedPath
Field selectedPath.
fileName
Field fileName.
targetPath
Field targetPath.
resolvedPath
Field resolvedPath.
commandBuilder
Field commandBuilder.
eventBuilder
Field eventBuilder.
path
Field path.
normalizedPath
Field normalizedPath.
normalizedImports
Field normalizedImports.
playerComponent
Field playerComponent.
playerRefComponent
Field playerRefComponent.
finalPath
Field finalPath.
finalMaxSize
Field finalMaxSize.
finalOrientation
Field finalOrientation.
finalOrigin
Field finalOrigin.
colorIndex
Field colorIndex.
selection
Field selection.
finalScale
Field finalScale.
srcX
Field srcX.
srcY
Field srcY.
rgba
Field rgba.
alpha
Field alpha.
red
Field red.
green
Field green.
blue
Field blue.
blockId
Field blockId.
inventory
Field inventory.
hotbar
Field hotbar.
storage
Field storage.
tools
Field tools.
hotbarSize
Field hotbarSize.
itemStack
Field itemStack.
itemStack2
Field itemStack2.
itemStack3
Field itemStack3.
maxSize
Field maxSize.
doImport
Field doImport.
browse
Field browse.
browserSelect
Field browserSelect.
browserCancel
Field browserCancel.
file
Field file.
searchQuery
Field searchQuery.
searchResult
Field searchResult.
Method Detail
build
void
build
(@Nonnull final Ref ref, @Nonnull final UICommandBuilder commandBuilder, @Nonnull final UIEventBuilder eventBuilder, @Nonnull final Store store)
Method build.
- Parameters:
@Nonnull final Refref@Nonnull final UICommandBuildercommandBuilder@Nonnull final UIEventBuildereventBuilder@Nonnull final Storestore
DropdownEntryInfo
new
DropdownEntryInfo
(LocalizableString.fromMessageId("server.customUI.imageImport.orientation.wall_xy")
Method DropdownEntryInfo.
- Parameters:
LocalizableString.fromMessageId("server.customUI.imageImport.orientation.wall_xy"LocalizableString.fromMessageId("server.customUI.imageImport.orientation.wall_xy"
buildBrowserPage
void
buildBrowserPage
(@Nonnull final UICommandBuilder commandBuilder, @Nonnull final UIEventBuilder eventBuilder)
Method buildBrowserPage.
- Parameters:
@Nonnull final UICommandBuildercommandBuilder@Nonnull final UIEventBuildereventBuilder
setError
void
setError
(@Nonnull final String message)
Method setError.
- Parameters:
@Nonnull final Stringmessage
setStatus
void
setStatus
(@Nonnull final String message)
Method setStatus.
- Parameters:
@Nonnull final Stringmessage
handleDataEvent
void
handleDataEvent
(@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final PageData data)
Method handleDataEvent.
- Parameters:
@Nonnull final Refref@Nonnull final Storestore@Nonnull final PageDatadata
if
else
if
(targetPath != null && Files.isRegularFile(targetPath, new LinkOption[0])
Method if.
- Parameters:
targetPath != null &&Files.isRegularFile(targetPathnewLinkOption[0]
file
image
file
(unsupported format or corrupted)
Method file.
- Parameters:
unsupported format orcorrupted
Vector3i
new
Vector3i
(offsetX, offsetY, offsetZ)
Method Vector3i.
- Parameters:
offsetXoffsetXoffsetYoffsetYoffsetZoffsetZ
clipboard
to
clipboard
(%dx%dx%d)
Method clipboard.
- Parameters:
%dx%dx%d%dx%dx%d
switchToPasteTool
void
switchToPasteTool
(@Nonnull final Player playerComponent, @Nonnull final PlayerRef playerRef)
Method switchToPasteTool.
- Parameters:
@Nonnull final PlayerplayerComponent@Nonnull final PlayerRefplayerRef
SetActiveSlot
new
SetActiveSlot
(-1, (byte)
Method SetActiveSlot.
- Parameters:
-1-1(byte(byte
ItemStack
new
ItemStack
(pasteToolStack.getItemId()
Method ItemStack.
- Parameters:
pasteToolStack.getItemId(pasteToolStack.getItemId(