PrefabUtil

public class PrefabUtil

Class PrefabUtil. Provides prefabutil functionality for the Hytale server.

java.lang.Object > PrefabUtil

Field Summary

xLength

final double xLength

Field xLength.

zLength

final double zLength

Field zLength.

prefabRadius

final int prefabRadius

Field prefabRadius.

chunkAccessor

final LocalCachedChunkAccessor chunkAccessor

Field chunkAccessor.

bx

final int bx

Field bx.

by

final int by

Field by.

bz

final int bz

Field bz.

chunk

final WorldChunk chunk

Field chunk.

blockIdAtPos

final int blockIdAtPos

Field blockIdAtPos.

editorBlock

final int editorBlock

Field editorBlock.

rotation

final PrefabRotation rotation

Field rotation.

prefabId

final int prefabId

Field prefabId.

startEvent

final PrefabPasteEvent startEvent

Field startEvent.

fluidStore

final Store fluidStore

Field fluidStore.

fluidColumn

final ChunkColumn fluidColumn

Field fluidColumn.

section

final Ref section

Field section.

fluidSection

final FluidSection fluidSection

Field fluidSection.

blockKey

final String blockKey

Field blockKey.

index

final int index

Field index.

type

final BlockType type

Field type.

rot

final RotationTuple rot

Field rot.

index2

final int index2

Field index2.

type2

final BlockType type2

Field type2.

ref2

final Ref ref2

Field ref2.

store2

final Store store2

Field store2.

column2

final ChunkColumn column2

Field column2.

ref

final Ref ref

Field ref.

store

final Store store

Field store.

column

final ChunkColumn column

Field column.

entityToAdd

final Holder entityToAdd

Field entityToAdd.

transformComp

final TransformComponent transformComp

Field transformComp.

entityPosition

final Vector3d entityPosition

Field entityPosition.

entityWorldPosition

final Vector3d entityWorldPosition

Field entityWorldPosition.

transformComp2

final TransformComponent transformComp2

Field transformComp2.

entityPosition2

final Vector3d entityPosition2

Field entityPosition2.

prefabPlaceEntityEvent

final PrefabPlaceEntityEvent prefabPlaceEntityEvent

Field prefabPlaceEntityEvent.

endEvent

final PrefabPasteEvent endEvent

Field endEvent.

Method Detail

prefabMatchesAtPosition

static boolean prefabMatchesAtPosition (@Nonnull final IPrefabBuffer prefabBuffer, final World world, @Nonnull final Vector3i position, @Nonnull final Rotation yaw, final Random random)

Method prefabMatchesAtPosition.

Parameters:
@Nonnull final IPrefabBuffer prefabBuffer
final World world
@Nonnull final Vector3i position
@Nonnull final Rotation yaw
final Random random

PrefabBufferCall

public new PrefabBufferCall (random, PrefabRotation.fromRotation(yaw)

Method PrefabBufferCall.

Parameters:
random random
PrefabRotation.fromRotation(yaw PrefabRotation.fromRotation(yaw

canPlacePrefab

static boolean canPlacePrefab (@Nonnull final IPrefabBuffer prefabBuffer, final World world, @Nonnull final Vector3i position, @Nonnull final Rotation yaw, @Nullable final IntSet mask, final Random random, final boolean ignoreOrigin)

Method canPlacePrefab.

Parameters:
@Nonnull final IPrefabBuffer prefabBuffer
final World world
@Nonnull final Vector3i position
@Nonnull final Rotation yaw
@Nullable final IntSet mask
final Random random
final boolean ignoreOrigin

paste

static void paste (@Nonnull final IPrefabBuffer buffer, @Nonnull final World world, @Nonnull final Vector3i position, @Nonnull final Rotation yaw, final boolean force, final Random random, @Nonnull final ComponentAccessor componentAccessor)

Method paste.

Parameters:
@Nonnull final IPrefabBuffer buffer
@Nonnull final World world
@Nonnull final Vector3i position
@Nonnull final Rotation yaw
final boolean force
final Random random
@Nonnull final ComponentAccessor componentAccessor

getNextPrefabId

static int getNextPrefabId ()

Method getNextPrefabId.

if

public else if (!force)

Method if.

Parameters:
!force !force

remove

static void remove (@Nonnull final IPrefabBuffer prefabBuffer, @Nonnull final World world, @Nonnull final Vector3i position, final boolean force, @Nonnull final Random random, final int setBlockSettings)

Method remove.

Parameters:
@Nonnull final IPrefabBuffer prefabBuffer
@Nonnull final World world
@Nonnull final Vector3i position
final boolean force
@Nonnull final Random random
final int setBlockSettings