PrefabEditingMetadata

public class PrefabEditingMetadata

Class PrefabEditingMetadata. Provides prefabeditingmetadata functionality for the Hytale server.

java.lang.Object > PrefabEditingMetadata

Field Summary

uuid

private UUID uuid

Field uuid.

prefabPath

private Path prefabPath

Field prefabPath.

minPoint

private Vector3i minPoint

Field minPoint.

maxPoint

private Vector3i maxPoint

Field maxPoint.

anchorPoint

private Vector3i anchorPoint

Field anchorPoint.

pastePosition

private Vector3i pastePosition

Field pastePosition.

anchorEntityUuid

private UUID anchorEntityUuid

Field anchorEntityUuid.

anchorEntityPosition

private Vector3i anchorEntityPosition

Field anchorEntityPosition.

originalFileAnchor

private Vector3i originalFileAnchor

Field originalFileAnchor.

dirty

private boolean dirty

Field dirty.

store

final Store store

Field store.

entityReference

final Ref entityReference

Field entityReference.

timeResource

final TimeResource timeResource

Field timeResource.

blockEntityHolder

final Holder blockEntityHolder

Field blockEntityHolder.

deltaX

final int deltaX

Field deltaX.

deltaY

final int deltaY

Field deltaY.

deltaZ

final int deltaZ

Field deltaZ.

Method Detail

PrefabEditingMetadata

public private PrefabEditingMetadata ()

Method PrefabEditingMetadata.

IllegalStateException

public new IllegalStateException ("minX must be less than or equal to maxX: " + String.valueOf(prefabPath)

Method IllegalStateException.

Parameters:
"minX must be less than or equal to maxX: " + String.valueOf(prefabPath

createAnchorEntityAt

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

Method createAnchorEntityAt.

Parameters:
@Nonnull final Vector3i position
@Nonnull final World world

EntityScaleComponent

public new EntityScaleComponent (2.1f)

Method EntityScaleComponent.

Parameters:
2.1f 2.1f

setPrefabPath

public void setPrefabPath (@Nonnull final Path prefabPath)

Method setPrefabPath.

Parameters:
@Nonnull final Path prefabPath

setAnchorPoint

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

Method setAnchorPoint.

Parameters:
@Nonnull final Vector3i newEntityPosition
@Nonnull final World world

recreateAnchorEntity

public void recreateAnchorEntity (@Nonnull final World world)

Method recreateAnchorEntity.

Parameters:
@Nonnull final World world

sendAnchorHighlightingPacket

public void sendAnchorHighlightingPacket (@Nonnull final PacketHandler displayTo)

Method sendAnchorHighlightingPacket.

Parameters:
@Nonnull final PacketHandler displayTo

BuilderToolShowAnchor

public new BuilderToolShowAnchor (this.anchorEntityPosition.x, this.anchorEntityPosition.y, this.anchorEntityPosition.z)

Method BuilderToolShowAnchor.

Parameters:
this.anchorEntityPosition.x this.anchorEntityPosition.x
this.anchorEntityPosition.y this.anchorEntityPosition.y
this.anchorEntityPosition.z this.anchorEntityPosition.z

isLocationWithinPrefabBoundingBox

public boolean isLocationWithinPrefabBoundingBox (@Nonnull final Vector3i location)

Method isLocationWithinPrefabBoundingBox.

Parameters:
@Nonnull final Vector3i location

setMinPoint

public void setMinPoint (final Vector3i minPoint)

Method setMinPoint.

Parameters:
final Vector3i minPoint

setMaxPoint

public void setMaxPoint (final Vector3i maxPoint)

Method setMaxPoint.

Parameters:
final Vector3i maxPoint

getAnchorPoint

public Vector3i getAnchorPoint ()

Method getAnchorPoint.

getPastePosition

public Vector3i getPastePosition ()

Method getPastePosition.

getOriginalFileAnchor

public Vector3i getOriginalFileAnchor ()

Method getOriginalFileAnchor.

getPrefabPath

public Path getPrefabPath ()

Method getPrefabPath.

getMinPoint

public Vector3i getMinPoint ()

Method getMinPoint.

getMaxPoint

public Vector3i getMaxPoint ()

Method getMaxPoint.

getAnchorEntityUuid

public UUID getAnchorEntityUuid ()

Method getAnchorEntityUuid.

getAnchorEntityPosition

public Vector3i getAnchorEntityPosition ()

Method getAnchorEntityPosition.

getUuid

public UUID getUuid ()

Method getUuid.

isDirty

public boolean isDirty ()

Method isDirty.

setDirty

public void setDirty (final boolean dirty)

Method setDirty.

Parameters:
final boolean dirty

isReadOnly

public boolean isReadOnly ()

Method isReadOnly.