public class PrefabEditSession implements Resource
Class PrefabEditSession. Provides prefabeditsession functionality for the Hytale server.
java.lang.Object > PrefabEditSession
Field Summary
worldName
Field worldName.
worldArrivedFrom
Field worldArrivedFrom.
transformArrivedFrom
Field transformArrivedFrom.
worldCreator
Field worldCreator.
spawnPoint
Field spawnPoint.
prefabEditingMetadata
Field prefabEditingMetadata.
uuidComponent
Field uuidComponent.
playerComponent
Field playerComponent.
playerRefComponent
Field playerRefComponent.
playerUUID
Field playerUUID.
selection
Field selection.
prefabUuid
Field prefabUuid.
fileName
Field fileName.
prefabName
Field prefabName.
Method Detail
getResourceType
PrefabEditSession>
getResourceType
()
Method getResourceType.
PrefabEditSession
private
PrefabEditSession
()
Method PrefabEditSession.
addPrefab
void
addPrefab
(@Nonnull final Path prefabPath, @Nonnull final Vector3i minPoint, @Nonnull final Vector3i maxPoint, @Nonnull final Vector3i anchorPoint, @Nonnull final Vector3i pastePosition)
Method addPrefab.
- Parameters:
@Nonnull final PathprefabPath@Nonnull final Vector3iminPoint@Nonnull final Vector3imaxPoint@Nonnull final Vector3ianchorPoint@Nonnull final Vector3ipastePosition
PrefabEditingMetadata
new
PrefabEditingMetadata
(prefabPath, minPoint, maxPoint, anchorPoint, pastePosition, Universe.get()
Method PrefabEditingMetadata.
- Parameters:
prefabPathprefabPathminPointminPointmaxPointmaxPointanchorPointanchorPointpastePositionpastePositionUniverse.get(Universe.get(
updatePrefabBounds
PrefabEditingMetadata
updatePrefabBounds
(@Nonnull final UUID prefab, @Nonnull final Vector3i newMin, @Nonnull final Vector3i newMax)
Method updatePrefabBounds.
- Parameters:
@Nonnull final UUIDprefab@Nonnull final Vector3inewMin@Nonnull final Vector3inewMax
setSelectedPrefab
void
setSelectedPrefab
(@Nonnull final Ref ref, @Nonnull final PrefabEditingMetadata prefabEditingMetadata, @Nonnull final ComponentAccessor componentAccessor)
Method setSelectedPrefab.
- Parameters:
@Nonnull final Refref@Nonnull final PrefabEditingMetadataprefabEditingMetadata@Nonnull final ComponentAccessorcomponentAccessor
BuilderToolHideAnchors
new
BuilderToolHideAnchors
()
Method BuilderToolHideAnchors.
getSelectedPrefab
Method getSelectedPrefab.
- Parameters:
@Nonnull final UUIDplayerUuid
clearSelectedPrefab
boolean
clearSelectedPrefab
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method clearSelectedPrefab.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
getWorldName
String
getWorldName
()
Method getWorldName.
getWorldArrivedFrom
UUID
getWorldArrivedFrom
()
Method getWorldArrivedFrom.
getWorldCreator
UUID
getWorldCreator
()
Method getWorldCreator.
getLoadedPrefabMetadata
PrefabEditingMetadata>
getLoadedPrefabMetadata
()
Method getLoadedPrefabMetadata.
markPrefabsDirtyAtPosition
Method markPrefabsDirtyAtPosition.
- Parameters:
@Nonnull final Vector3iposition
markPrefabsDirtyInBounds
Method markPrefabsDirtyInBounds.
- Parameters:
@Nonnull final Vector3imin@Nonnull final Vector3imax
boundsIntersect
boolean
boundsIntersect
(@Nonnull final Vector3i aMin, @Nonnull final Vector3i aMax, @Nonnull final Vector3i bMin, @Nonnull final Vector3i bMax)
Method boundsIntersect.
- Parameters:
@Nonnull final Vector3iaMin@Nonnull final Vector3iaMax@Nonnull final Vector3ibMin@Nonnull final Vector3ibMax
createPrefabMarkers
MapMarker[]
createPrefabMarkers
()
Method createPrefabMarkers.
createPrefabMarker
Method createPrefabMarker.
- Parameters:
@Nonnull final PrefabEditingMetadatametadata
MapMarker
new
MapMarker
("prefab-" + String.valueOf(metadata.getUuid()
Method MapMarker.
- Parameters:
"prefab-" +String.valueOf(metadata.getUuid(
Transform
new
Transform
(metadata.getAnchorEntityPosition()
Method Transform.
- Parameters:
metadata.getAnchorEntityPosition(metadata.getAnchorEntityPosition(