public class ObjImportPage extends InteractiveCustomUIPage
Class ObjImportPage. Provides objimportpage functionality for the Hytale server.
java.lang.Object > InteractiveCustomUIPage > ObjImportPage
Field Summary
objPath
Field objPath.
targetHeight
Field targetHeight.
useScaleMode
Field useScaleMode.
scale
Field scale.
blockPattern
Field blockPattern.
fillSolid
Field fillSolid.
useMaterials
Field useMaterials.
autoDetectTextures
Field autoDetectTextures.
originStr
Field originStr.
origin
Field origin.
rotationStr
Field rotationStr.
rotation
Field rotation.
statusMessage
Field statusMessage.
isError
Field isError.
isProcessing
Field isProcessing.
showBrowser
Field showBrowser.
config
Field config.
sizeModeEntries
Field sizeModeEntries.
originEntries
Field originEntries.
axisEntries
Field axisEntries.
selectedPath
Field selectedPath.
fileName
Field fileName.
targetPath
Field targetPath.
resolvedPath
Field resolvedPath.
commandBuilder
Field commandBuilder.
eventBuilder
Field eventBuilder.
result
Field result.
split
Field split.
parts
Field parts.
pctIdx
Field pctIdx.
blockId
Field blockId.
roll
Field roll.
path
Field path.
normalizedPath
Field normalizedPath.
normalizedImports
Field normalizedImports.
blocks
Field blocks.
playerComponent
Field playerComponent.
playerRefComponent
Field playerRefComponent.
finalHeight
Field finalHeight.
finalUseScaleMode
Field finalUseScaleMode.
finalScale
Field finalScale.
finalPath
Field finalPath.
finalFillSolid
Field finalFillSolid.
finalUseMaterials
Field finalUseMaterials.
finalAutoDetectTextures
Field finalAutoDetectTextures.
finalOrigin
Field finalOrigin.
finalRotation
Field finalRotation.
finalBlocks
Field finalBlocks.
objFilePath
Field objFilePath.
mesh
Field mesh.
bounds
Field bounds.
meshHeight
Field meshHeight.
colorIndex
Field colorIndex.
hasUvTextures
Field hasUvTextures.
preserveOrigin
Field preserveOrigin.
selection
Field selection.
random
Field random.
hasMaterialBlockIds
Field hasMaterialBlockIds.
blockCount
Field blockCount.
textureInfo
Field textureInfo.
inventory
Field inventory.
hotbar
Field hotbar.
storage
Field storage.
tools
Field tools.
hotbarSize
Field hotbarSize.
itemStack
Field itemStack.
itemStack2
Field itemStack2.
itemStack3
Field itemStack3.
mtlPath
Field mtlPath.
textureDir
Field textureDir.
materialName
Field materialName.
material
Field material.
texture
Field texture.
avgColor
Field avgColor.
rgb
Field rgb.
blockId2
Field blockId2.
auto_DETECT_SUFFIXES
Field auto_DETECT_SUFFIXES.
suffix
Field suffix.
auto_DETECT_EXTENSIONS
Field auto_DETECT_EXTENSIONS.
ext
Field ext.
filename
Field filename.
height
Field height.
sizeMode
Field sizeMode.
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.objImport.sizeMode.height")
Method DropdownEntryInfo.
- Parameters:
LocalizableString.fromMessageId("server.customUI.objImport.sizeMode.height"LocalizableString.fromMessageId("server.customUI.objImport.sizeMode.height"
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]
parseBlockPattern
List
parseBlockPattern
(@Nonnull final String pattern)
Method parseBlockPattern.
- Parameters:
@Nonnull final Stringpattern
WeightedBlock
new
WeightedBlock
(blockId, weight)
Method WeightedBlock.
- Parameters:
blockIdblockIdweightweight
selectRandomBlock
int
selectRandomBlock
(@Nonnull final List blocks, @Nonnull final Random random)
Method selectRandomBlock.
- Parameters:
@Nonnull final Listblocks@Nonnull final Randomrandom
BlockSelection
new
BlockSelection
(result.countSolid()
Method BlockSelection.
- Parameters:
result.countSolid(result.countSolid(
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(
loadMaterialData
void
loadMaterialData
(@Nonnull final Path objPath, @Nonnull final ObjParser.ObjMesh mesh, @Nonnull final BlockColorIndex colorIndex, @Nonnull final Map materialTextures, @Nonnull final Map materialToBlockId, final boolean autoDetectTextures)
Method loadMaterialData.
- Parameters:
@Nonnull final PathobjPath@Nonnull final ObjParser.ObjMeshmesh@Nonnull final BlockColorIndexcolorIndex@Nonnull final MapmaterialTextures@Nonnull final MapmaterialToBlockIdfinal booleanautoDetectTextures
findMatchingTexture
String
findMatchingTexture
(@Nonnull final Path directory, @Nonnull final String materialName)
Method findMatchingTexture.
- Parameters:
@Nonnull final Pathdirectory@Nonnull final StringmaterialName