public class AssetSpecificFunctionality
Class AssetSpecificFunctionality. Provides assetspecificfunctionality functionality for the Hytale server.
java.lang.Object > AssetSpecificFunctionality
Field Summary
playerRef
Field playerRef.
path
Field path.
assetType
Field assetType.
id
Field id.
modelPacket
Field modelPacket.
packet
Field packet.
rebuildCache
Field rebuildCache.
currentAssetPath
Field currentAssetPath.
currentPreviewSettings
Field currentPreviewSettings.
editorClient
Field editorClient.
ref
Field ref.
store
Field store.
world
Field world.
message
Field message.
player
Field player.
key
Field key.
item
Field item.
itemArmor
Field itemArmor.
modelAsset
Field modelAsset.
unknownModelMessage
Field unknownModelMessage.
model
Field model.
results
Field results.
query
Field query.
messageKeys
Field messageKeys.
itemModule
Field itemModule.
plugin
Field plugin.
uuid
Field uuid.
editorClients
Field editorClients.
openAssetPath
Field openAssetPath.
playerComponent
Field playerComponent.
worldTimeResource
Field worldTimeResource.
packetHandler
Field packetHandler.
settingsPacket
Field settingsPacket.
gameTime
Field gameTime.
weatherIndex
Field weatherIndex.
assetPath
Field assetPath.
key2
Field key2.
previousAssetType
Field previousAssetType.
wasWeather
Field wasWeather.
isWeather
Field isWeather.
defaultIconProperties
Field defaultIconProperties.
camera
Field camera.
translation
Field translation.
rotation
Field rotation.
blockType
Field blockType.
assetEditorPreviewCameraSettings
Field assetEditorPreviewCameraSettings.
weatherAssetPath
Field weatherAssetPath.
keepPreview
Field keepPreview.
Method Detail
setup
void
setup
()
Method setup.
AssetEditorUpdateModelPreview
new
AssetEditorUpdateModelPreview
(editor.getValue()
Method AssetEditorUpdateModelPreview.
- Parameters:
editor.getValue(editor.getValue(
onItemAssetCreated
Method onItemAssetCreated.
- Parameters:
@Nonnull final AssetEditorAssetCreatedEventevent
onModelAssetCreated
Method onModelAssetCreated.
- Parameters:
@Nonnull final AssetEditorAssetCreatedEventevent
onUpdateWeatherPreviewLockEvent
void
onUpdateWeatherPreviewLockEvent
(@Nonnull final AssetEditorUpdateWeatherPreviewLockEvent event)
Method onUpdateWeatherPreviewLockEvent.
- Parameters:
@Nonnull final AssetEditorUpdateWeatherPreviewLockEventevent
PlayerPreviewData
new
PlayerPreviewData
()
Method PlayerPreviewData.
equipItem
Method equipItem.
- Parameters:
@Nonnull final PathassetPath@Nonnull final EditorClienteditorClient
ItemStack
new
ItemStack
(key)
Method ItemStack.
- Parameters:
keykey
useModel
Method useModel.
- Parameters:
@Nonnull final PathassetPath@Nonnull final EditorClienteditorClient
ModelComponent
new
ModelComponent
(model)
Method ModelComponent.
- Parameters:
modelmodel
onRequestLocalizationKeyDataSet
void
onRequestLocalizationKeyDataSet
(@Nonnull final AssetEditorFetchAutoCompleteDataEvent event)
Method onRequestLocalizationKeyDataSet.
- Parameters:
@Nonnull final AssetEditorFetchAutoCompleteDataEventevent
onRequestBlockGroupsDataSet
void
onRequestBlockGroupsDataSet
(@Nonnull final AssetEditorFetchAutoCompleteDataEvent event)
Method onRequestBlockGroupsDataSet.
- Parameters:
@Nonnull final AssetEditorFetchAutoCompleteDataEventevent
onRequestItemCategoriesDataSet
Method onRequestItemCategoriesDataSet.
- Parameters:
@Nonnull final AssetEditorRequestDataSetEventevent
onClientDisconnected
Method onClientDisconnected.
- Parameters:
@Nonnull final AssetEditorClientDisconnectEventevent
UpdateEditorWeatherOverride
new
UpdateEditorWeatherOverride
(0)
Method UpdateEditorWeatherOverride.
- Parameters:
00
resetTimeSettings
void
resetTimeSettings
(@Nonnull final EditorClient editorClient, @Nonnull final PlayerRef playerRef)
Method resetTimeSettings.
- Parameters:
@Nonnull final EditorClienteditorClient@Nonnull final PlayerRefplayerRef
AssetEditorUpdateSecondsPerGameDay
new
AssetEditorUpdateSecondsPerGameDay
(world.getDaytimeDurationSeconds()
Method AssetEditorUpdateSecondsPerGameDay.
- Parameters:
world.getDaytimeDurationSeconds(world.getDaytimeDurationSeconds(
UpdateEditorTimeOverride
new
UpdateEditorTimeOverride
(new InstantData(gameTime.getEpochSecond()
Method UpdateEditorTimeOverride.
- Parameters:
newInstantData(gameTime.getEpochSecond(
handleWeatherOrEnvironmentUnselected
void
handleWeatherOrEnvironmentUnselected
(@Nonnull final EditorClient editorClient, @Nonnull final Path assetPath, final boolean wasWeather)
Method handleWeatherOrEnvironmentUnselected.
- Parameters:
@Nonnull final EditorClienteditorClient@Nonnull final PathassetPathfinal booleanwasWeather
handleWeatherOrEnvironmentSelected
void
handleWeatherOrEnvironmentSelected
(@Nonnull final EditorClient editorClient, @Nonnull final Path assetPath, final boolean isWeather)
Method handleWeatherOrEnvironmentSelected.
- Parameters:
@Nonnull final EditorClienteditorClient@Nonnull final PathassetPathfinal booleanisWeather
getModelPreviewPacketForItem
AssetEditorUpdateModelPreview
getModelPreviewPacketForItem
(@Nonnull final AssetPath assetPath, @Nullable final Item item)
Method getModelPreviewPacketForItem.
- Parameters:
@Nonnull final AssetPathassetPath@Nullable final Itemitem
getDefaultItemIconProperties
Method getDefaultItemIconProperties.
- Parameters:
@Nonnull final Itemitem
AssetIconProperties
new
AssetIconProperties
(0.37f, new Vector2f(-24.6f, -24.6f)
Method AssetIconProperties.
- Parameters:
0.37f0.37fnewVector2f(-24.6f-24.6f-24.6f
switch
return
switch
(item.getArmor()
Method switch.
- Parameters:
item.getArmor(item.getArmor(