AssetSpecificFunctionality

public class AssetSpecificFunctionality

Class AssetSpecificFunctionality. Provides assetspecificfunctionality functionality for the Hytale server.

java.lang.Object > AssetSpecificFunctionality

Field Summary

playerRef

final PlayerRef playerRef

Field playerRef.

path

final Path path

Field path.

assetType

final AssetTypeHandler assetType

Field assetType.

id

final String id

Field id.

modelPacket

final com.hypixel.hytale.protocol.Model modelPacket

Field modelPacket.

packet

final AssetEditorUpdateModelPreview packet

Field packet.

rebuildCache

final AssetUpdateQuery.RebuildCache rebuildCache

Field rebuildCache.

currentAssetPath

final AssetPath currentAssetPath

Field currentAssetPath.

currentPreviewSettings

final PlayerPreviewData currentPreviewSettings

Field currentPreviewSettings.

editorClient

final EditorClient editorClient

Field editorClient.

ref

final Ref ref

Field ref.

store

final Store store

Field store.

world

final World world

Field world.

message

final Message message

Field message.

player

final Player player

Field player.

key

final String key

Field key.

item

final Item item

Field item.

itemArmor

final ItemArmor itemArmor

Field itemArmor.

modelAsset

final ModelAsset modelAsset

Field modelAsset.

unknownModelMessage

final Message unknownModelMessage

Field unknownModelMessage.

model

final Model model

Field model.

results

final ObjectArrayList results

Field results.

query

final String query

Field query.

messageKeys

final Set messageKeys

Field messageKeys.

itemModule

final ItemModule itemModule

Field itemModule.

plugin

final AssetEditorPlugin plugin

Field plugin.

uuid

final UUID uuid

Field uuid.

editorClients

final Set editorClients

Field editorClients.

openAssetPath

final AssetPath openAssetPath

Field openAssetPath.

playerComponent

final Player playerComponent

Field playerComponent.

worldTimeResource

final WorldTimeResource worldTimeResource

Field worldTimeResource.

packetHandler

final PacketHandler packetHandler

Field packetHandler.

settingsPacket

final AssetEditorUpdateSecondsPerGameDay settingsPacket

Field settingsPacket.

gameTime

final Instant gameTime

Field gameTime.

weatherIndex

final int weatherIndex

Field weatherIndex.

assetPath

final AssetPath assetPath

Field assetPath.

key2

final String key2

Field key2.

previousAssetType

final String previousAssetType

Field previousAssetType.

wasWeather

final boolean wasWeather

Field wasWeather.

isWeather

final boolean isWeather

Field isWeather.

defaultIconProperties

final AssetIconProperties defaultIconProperties

Field defaultIconProperties.

camera

final AssetEditorPreviewCameraSettings camera

Field camera.

translation

final Vector2f translation

Field translation.

rotation

final Vector3f rotation

Field rotation.

blockType

final com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType

Field blockType.

assetEditorPreviewCameraSettings

final AssetEditorPreviewCameraSettings assetEditorPreviewCameraSettings

Field assetEditorPreviewCameraSettings.

weatherAssetPath

private Path weatherAssetPath

Field weatherAssetPath.

keepPreview

private boolean keepPreview

Field keepPreview.

Method Detail

setup

static void setup ()

Method setup.

tryGetPlayer

static PlayerRef tryGetPlayer (@Nonnull final EditorClient editorClient)

Method tryGetPlayer.

Parameters:
@Nonnull final EditorClient editorClient

onModelAssetLoaded

static void onModelAssetLoaded (@Nonnull final LoadedAssetsEvent event)

Method onModelAssetLoaded.

Parameters:
@Nonnull final LoadedAssetsEvent event

AssetEditorUpdateModelPreview

public new AssetEditorUpdateModelPreview (editor.getValue()

Method AssetEditorUpdateModelPreview.

Parameters:
editor.getValue( editor.getValue(

onItemAssetLoaded

static void onItemAssetLoaded (@Nonnull final LoadedAssetsEvent event)

Method onItemAssetLoaded.

Parameters:
@Nonnull final LoadedAssetsEvent event

onItemAssetCreated

static void onItemAssetCreated (@Nonnull final AssetEditorAssetCreatedEvent event)

Method onItemAssetCreated.

Parameters:
@Nonnull final AssetEditorAssetCreatedEvent event

onModelAssetCreated

static void onModelAssetCreated (@Nonnull final AssetEditorAssetCreatedEvent event)

Method onModelAssetCreated.

Parameters:
@Nonnull final AssetEditorAssetCreatedEvent event

onEquipItem

static void onEquipItem (@Nonnull final AssetEditorActivateButtonEvent event)

Method onEquipItem.

Parameters:
@Nonnull final AssetEditorActivateButtonEvent event

onUseModel

static void onUseModel (@Nonnull final AssetEditorActivateButtonEvent event)

Method onUseModel.

Parameters:
@Nonnull final AssetEditorActivateButtonEvent event

onUpdateWeatherPreviewLockEvent

static void onUpdateWeatherPreviewLockEvent (@Nonnull final AssetEditorUpdateWeatherPreviewLockEvent event)

Method onUpdateWeatherPreviewLockEvent.

Parameters:
@Nonnull final AssetEditorUpdateWeatherPreviewLockEvent event

PlayerPreviewData

public new PlayerPreviewData ()

Method PlayerPreviewData.

onResetModel

static void onResetModel (@Nonnull final AssetEditorActivateButtonEvent event)

Method onResetModel.

Parameters:
@Nonnull final AssetEditorActivateButtonEvent event

equipItem

static void equipItem (@Nonnull final Path assetPath, @Nonnull final EditorClient editorClient)

Method equipItem.

Parameters:
@Nonnull final Path assetPath
@Nonnull final EditorClient editorClient

ItemStack

public new ItemStack (key)

Method ItemStack.

Parameters:
key key

useModel

static void useModel (@Nonnull final Path assetPath, @Nonnull final EditorClient editorClient)

Method useModel.

Parameters:
@Nonnull final Path assetPath
@Nonnull final EditorClient editorClient

ModelComponent

public new ModelComponent (model)

Method ModelComponent.

Parameters:
model model

onRequestLocalizationKeyDataSet

static void onRequestLocalizationKeyDataSet (@Nonnull final AssetEditorFetchAutoCompleteDataEvent event)

Method onRequestLocalizationKeyDataSet.

Parameters:
@Nonnull final AssetEditorFetchAutoCompleteDataEvent event

onRequestBlockGroupsDataSet

static void onRequestBlockGroupsDataSet (@Nonnull final AssetEditorFetchAutoCompleteDataEvent event)

Method onRequestBlockGroupsDataSet.

Parameters:
@Nonnull final AssetEditorFetchAutoCompleteDataEvent event

onRequestItemCategoriesDataSet

static void onRequestItemCategoriesDataSet (@Nonnull final AssetEditorRequestDataSetEvent event)

Method onRequestItemCategoriesDataSet.

Parameters:
@Nonnull final AssetEditorRequestDataSetEvent event

onClientDisconnected

static void onClientDisconnected (@Nonnull final AssetEditorClientDisconnectEvent event)

Method onClientDisconnected.

Parameters:
@Nonnull final AssetEditorClientDisconnectEvent event

UpdateEditorWeatherOverride

public new UpdateEditorWeatherOverride (0)

Method UpdateEditorWeatherOverride.

Parameters:
0 0

resetTimeSettings

static void resetTimeSettings (@Nonnull final EditorClient editorClient, @Nonnull final PlayerRef playerRef)

Method resetTimeSettings.

Parameters:
@Nonnull final EditorClient editorClient
@Nonnull final PlayerRef playerRef

AssetEditorUpdateSecondsPerGameDay

public new AssetEditorUpdateSecondsPerGameDay (world.getDaytimeDurationSeconds()

Method AssetEditorUpdateSecondsPerGameDay.

Parameters:
world.getDaytimeDurationSeconds( world.getDaytimeDurationSeconds(

UpdateEditorTimeOverride

public new UpdateEditorTimeOverride (new InstantData(gameTime.getEpochSecond()

Method UpdateEditorTimeOverride.

Parameters:
new InstantData(gameTime.getEpochSecond(

handleWeatherOrEnvironmentUnselected

static void handleWeatherOrEnvironmentUnselected (@Nonnull final EditorClient editorClient, @Nonnull final Path assetPath, final boolean wasWeather)

Method handleWeatherOrEnvironmentUnselected.

Parameters:
@Nonnull final EditorClient editorClient
@Nonnull final Path assetPath
final boolean wasWeather

handleWeatherOrEnvironmentSelected

static void handleWeatherOrEnvironmentSelected (@Nonnull final EditorClient editorClient, @Nonnull final Path assetPath, final boolean isWeather)

Method handleWeatherOrEnvironmentSelected.

Parameters:
@Nonnull final EditorClient editorClient
@Nonnull final Path assetPath
final boolean isWeather

onSelectAsset

static void onSelectAsset (@Nonnull final AssetEditorSelectAssetEvent event)

Method onSelectAsset.

Parameters:
@Nonnull final AssetEditorSelectAssetEvent event

getModelPreviewPacketForItem

static AssetEditorUpdateModelPreview getModelPreviewPacketForItem (@Nonnull final AssetPath assetPath, @Nullable final Item item)

Method getModelPreviewPacketForItem.

Parameters:
@Nonnull final AssetPath assetPath
@Nullable final Item item

getDefaultItemIconProperties

static AssetIconProperties getDefaultItemIconProperties (@Nonnull final Item item)

Method getDefaultItemIconProperties.

Parameters:
@Nonnull final Item item

AssetIconProperties

public new AssetIconProperties (0.37f, new Vector2f(-24.6f, -24.6f)

Method AssetIconProperties.

Parameters:
0.37f 0.37f
new Vector2f(-24.6f
-24.6f -24.6f

switch

public return switch (item.getArmor()

Method switch.

Parameters:
item.getArmor( item.getArmor(

convertToModelPacket

static com.hypixel.hytale.protocol.Model convertToModelPacket (@Nonnull final Item item)

Method convertToModelPacket.

Parameters:
@Nonnull final Item item

getEventRegistry

static EventRegistry getEventRegistry ()

Method getEventRegistry.