Class PrefabEditingMetadata

java.lang.Object
com.hypixel.hytale.builtin.buildertools.prefabeditor.PrefabEditingMetadata

public class PrefabEditingMetadata extends Object
  • Field Details

    • PREFAB_ANCHOR_ENTITY_SCALE

      private static final float PREFAB_ANCHOR_ENTITY_SCALE
      See Also:
    • CODEC

      @Nonnull public static final BuilderCodec<PrefabEditingMetadata> CODEC
    • uuid

      private UUID uuid
    • prefabPath

      private Path prefabPath
    • minPoint

      private Vector3i minPoint
    • maxPoint

      private Vector3i maxPoint
    • anchorPoint

      private Vector3i anchorPoint
    • pastePosition

      private Vector3i pastePosition
    • anchorEntityUuid

      @Nullable private UUID anchorEntityUuid
    • anchorEntityPosition

      private Vector3i anchorEntityPosition
    • originalFileAnchor

      private Vector3i originalFileAnchor
    • dirty

      private boolean dirty
  • Constructor Details

    • PrefabEditingMetadata

      private PrefabEditingMetadata()
    • PrefabEditingMetadata

      public PrefabEditingMetadata(@Nonnull Path prefabPath, @Nonnull Vector3i minPoint, @Nonnull Vector3i maxPoint, @Nonnull Vector3i anchorPoint, @Nonnull Vector3i pastePosition, @Nonnull World world)
  • Method Details

    • createAnchorEntityAt

      private void createAnchorEntityAt(@Nonnull Vector3i position, @Nonnull World world)
    • setPrefabPath

      public void setPrefabPath(@Nonnull Path prefabPath)
    • setAnchorPoint

      public void setAnchorPoint(@Nonnull Vector3i newEntityPosition, @Nonnull World world)
    • recreateAnchorEntity

      public void recreateAnchorEntity(@Nonnull World world)
    • sendAnchorHighlightingPacket

      public void sendAnchorHighlightingPacket(@Nonnull PacketHandler displayTo)
    • isLocationWithinPrefabBoundingBox

      public boolean isLocationWithinPrefabBoundingBox(@Nonnull Vector3i location)
    • setMinPoint

      void setMinPoint(Vector3i minPoint)
    • setMaxPoint

      void setMaxPoint(Vector3i maxPoint)
    • getAnchorPoint

      public Vector3i getAnchorPoint()
    • getPastePosition

      public Vector3i getPastePosition()
    • getOriginalFileAnchor

      public Vector3i getOriginalFileAnchor()
    • getPrefabPath

      public Path getPrefabPath()
    • getMinPoint

      public Vector3i getMinPoint()
    • getMaxPoint

      public Vector3i getMaxPoint()
    • getAnchorEntityUuid

      @Nullable public UUID getAnchorEntityUuid()
    • getAnchorEntityPosition

      public Vector3i getAnchorEntityPosition()
    • getUuid

      public UUID getUuid()
    • isDirty

      public boolean isDirty()
    • setDirty

      public void setDirty(boolean dirty)
    • isReadOnly

      public boolean isReadOnly()