Class PrefabEditSession
java.lang.Object
com.hypixel.hytale.builtin.buildertools.prefabeditor.PrefabEditSession
- All Implemented Interfaces:
Resource<EntityStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<PrefabEditSession> private final Map<UUID, PrefabEditingMetadata> private Vector3iprivate Transformprivate UUIDprivate UUIDprivate StringFields inherited from interface com.hypixel.hytale.component.Resource
EMPTY_ARRAY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrefabEditSession(String worldName, UUID worldCreator, UUID worldArrivedFrom, Transform transformArrivedFrom) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPrefab(Path prefabPath, Vector3i minPoint, Vector3i maxPoint, Vector3i anchorPoint, Vector3i pastePosition) private static booleanboundsIntersect(Vector3i aMin, Vector3i aMax, Vector3i bMin, Vector3i bMax) booleanclearSelectedPrefab(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) clone()static MapMarkercreatePrefabMarker(PrefabEditingMetadata metadata) static ResourceType<EntityStore, PrefabEditSession> getSelectedPrefab(UUID playerUuid) voidhidePrefabAnchors(PacketHandler packetHandler) voidmarkPrefabsDirtyAtPosition(Vector3i position) voidmarkPrefabsDirtyInBounds(Vector3i min, Vector3i max) voidsetSelectedPrefab(Ref<EntityStore> ref, PrefabEditingMetadata prefabEditingMetadata, ComponentAccessor<EntityStore> componentAccessor) updatePrefabBounds(UUID prefab, Vector3i newMin, Vector3i newMax)
-
Field Details
-
CODEC
-
worldName
-
worldArrivedFrom
-
transformArrivedFrom
-
worldCreator
-
loadedPrefabMetadata
-
selectedPrefab
-
spawnPoint
-
-
Constructor Details
-
PrefabEditSession
private PrefabEditSession() -
PrefabEditSession
-
PrefabEditSession
-
-
Method Details
-
getResourceType
-
addPrefab
-
updatePrefabBounds
@Nullable public PrefabEditingMetadata updatePrefabBounds(@Nonnull UUID prefab, @Nonnull Vector3i newMin, @Nonnull Vector3i newMax) -
setSelectedPrefab
public void setSelectedPrefab(@Nonnull Ref<EntityStore> ref, @Nonnull PrefabEditingMetadata prefabEditingMetadata, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
hidePrefabAnchors
-
getSelectedPrefab
-
clearSelectedPrefab
public boolean clearSelectedPrefab(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
getWorldName
-
getWorldArrivedFrom
-
getTransformArrivedFrom
-
getWorldCreator
-
getSpawnPoint
-
getLoadedPrefabMetadata
-
markPrefabsDirtyAtPosition
-
markPrefabsDirtyInBounds
-
boundsIntersect
-
createPrefabMarkers
-
createPrefabMarker
-
clone
- Specified by:
clonein interfaceResource<EntityStore>- Overrides:
clonein classObject
-