public class BuilderToolsPlugin extendsJavaPluginimplementsSelectionProvider,MetricProvider
The main plugin class for Buildertools. This plugin provides gameplay features for the Hytale server. Extend this class to create a plugin.
java.lang.Object > JavaPlugin > BuilderToolsPlugin
Field Summary
prefabEditSessionManager
Field prefabEditSessionManager.
historyCount
Field historyCount.
toolExpireTimeNanos
Field toolExpireTimeNanos.
cleanupTask
Field cleanupTask.
affectedChunks
Field affectedChunks.
minChunkX
Field minChunkX.
maxChunkX
Field maxChunkX.
minChunkZ
Field minChunkZ.
maxChunkZ
Field maxChunkZ.
commandRegistry
Field commandRegistry.
eventRegistry
Field eventRegistry.
entityStoreRegistry
Field entityStoreRegistry.
config
Field config.
intervalNanos
Field intervalNanos.
expire
Field expire.
state
Field state.
section
Field section.
itemStack
Field itemStack.
item
Field item.
builderToolData
Field builderToolData.
itemMessage
Field itemMessage.
tool
Field tool.
updatedItemStack
Field updatedItemStack.
ref
Field ref.
playerRefComponent
Field playerRefComponent.
type
Field type.
stateId
Field stateId.
currentType
Field currentType.
currentStateId
Field currentStateId.
position
Field position.
encompassingWidth
Field encompassingWidth.
encompassingHeight
Field encompassingHeight.
encompassingDepth
Field encompassingDepth.
vector
Field vector.
newId
Field newId.
event
Field event.
nextSnapshot
Field nextSnapshot.
player
Field player.
playerRef
Field playerRef.
selection
Field selection.
globalMask
Field globalMask.
random
Field random.
activePrefabPath
Field activePrefabPath.
prefabListRoot
Field prefabListRoot.
prefabListPath
Field prefabListPath.
prefabListSearchQuery
Field prefabListSearchQuery.
stamp
Field stamp.
start
Field start.
oldSelection
Field oldSelection.
diff
Field diff.
store
Field store.
stamp2
Field stamp2.
world
Field world.
uuidComponent
Field uuidComponent.
protoSettings
Field protoSettings.
builderTool
Field builderTool.
brushConfigId
Field brushConfigId.
loadedBrushConfig
Field loadedBrushConfig.
scriptedBrush
Field scriptedBrush.
brushConfigCommandExecutor
Field brushConfigCommandExecutor.
protoSettingsIntl
Field protoSettingsIntl.
currentPosition
Field currentPosition.
lastPosition
Field lastPosition.
positionsToExecute
Field positionsToExecute.
edit
Field edit.
before
Field before.
after
Field after.
end
Field end.
size
Field size.
interpolatedCount
Field interpolatedCount.
prototypePlayerBuilderToolSettings
Field prototypePlayerBuilderToolSettings.
halfWidth
Field halfWidth.
halfHeight
Field halfHeight.
min
Field min.
max
Field max.
accessor
Field accessor.
checkedPositions
Field checkedPositions.
floodPositions
Field floodPositions.
packedPosition
Field packedPosition.
px
Field px.
py
Field py.
pz
Field pz.
blockId
Field blockId.
east
Field east.
west
Field west.
top
Field top.
bottom
Field bottom.
north
Field north.
south
Field south.
x
Field x.
y
Field y.
z
Field z.
blockType
Field blockType.
data
Field data.
blockCounts
Field blockCounts.
currentBlock
Field currentBlock.
block
Field block.
count
Field count.
iHalfWidth
Field iHalfWidth.
iHalfHeight
Field iHalfHeight.
maxRadius
Field maxRadius.
innerHalfWidth
Field innerHalfWidth.
innerHalfHeight
Field innerHalfHeight.
isInShape
Field isInShape.
lineDistX
Field lineDistX.
lineDistZ
Field lineDistZ.
halfLineDistX
Field halfLineDistX.
halfLineDistZ
Field halfLineDistZ.
rel
Field rel.
line
Field line.
coord
Field coord.
blockX
Field blockX.
blockZ
Field blockZ.
chunk
Field chunk.
blockY
Field blockY.
currentBlockId
Field currentBlockId.
currentFluidId
Field currentFluidId.
length
Field length.
hw
Field hw.
hh
Field hh.
ihw
Field ihw.
ihh
Field ihh.
ax
Field ax.
ay
Field ay.
az
Field az.
inOuter
Field inOuter.
inInner
Field inInner.
sx
Field sx.
sy
Field sy.
sz
Field sz.
outerDist
Field outerDist.
inOuter2
Field inOuter2.
innerDist
Field innerDist.
inInner2
Field inInner2.
sx2
Field sx2.
sy2
Field sy2.
sz2
Field sz2.
outerRadialDist
Field outerRadialDist.
inOuterRadius
Field inOuterRadius.
innerRadialDist
Field innerRadialDist.
inInnerRadius
Field inInnerRadius.
sx3
Field sx3.
sy3
Field sy3.
sz3
Field sz3.
normalizedY
Field normalizedY.
currentRadius
Field currentRadius.
radialDist
Field radialDist.
inOuter3
Field inOuter3.
innerRadius
Field innerRadius.
inInner3
Field inInner3.
sx4
Field sx4.
sy4
Field sy4.
sz4
Field sz4.
normalizedY2
Field normalizedY2.
currentRadius2
Field currentRadius2.
radialDist2
Field radialDist2.
inOuter4
Field inOuter4.
innerRadius2
Field innerRadius2.
inInner4
Field inInner4.
sx5
Field sx5.
sy5
Field sy5.
sz5
Field sz5.
normalizedY3
Field normalizedY3.
currentHalfSize
Field currentHalfSize.
inOuter5
Field inOuter5.
innerHalfSize
Field innerHalfSize.
inInner5
Field inInner5.
sx6
Field sx6.
sy6
Field sy6.
sz6
Field sz6.
normalizedY4
Field normalizedY4.
currentHalfSize2
Field currentHalfSize2.
inOuter6
Field inOuter6.
innerHalfSize2
Field innerHalfSize2.
inInner6
Field inInner6.
sx7
Field sx7.
sy7
Field sy7.
sz7
Field sz7.
outerDist2
Field outerDist2.
inOuter7
Field inOuter7.
innerDist2
Field innerDist2.
inInner7
Field inInner7.
sx8
Field sx8.
sy8
Field sy8.
sz8
Field sz8.
outerDist3
Field outerDist3.
inOuter8
Field inOuter8.
innerDist3
Field innerDist3.
inInner8
Field inInner8.
sx9
Field sx9.
sy9
Field sy9.
sz9
Field sz9.
normalizedY5
Field normalizedY5.
currentHalfSize3
Field currentHalfSize3.
inOuter9
Field inOuter9.
innerHalfSize3
Field innerHalfSize3.
inInner9
Field inInner9.
sx10
Field sx10.
sy10
Field sy10.
sz10
Field sz10.
minorRadius
Field minorRadius.
majorRadius
Field majorRadius.
minorRadiusAdjusted
Field minorRadiusAdjusted.
distFromCenter
Field distFromCenter.
distFromRing
Field distFromRing.
distFromTube
Field distFromTube.
inOuter10
Field inOuter10.
innerMinorRadius
Field innerMinorRadius.
inInner10
Field inInner10.
totalBlocks
Field totalBlocks.
offset
Field offset.
testBlock
Field testBlock.
testBlockType
Field testBlockType.
blocks
Field blocks.
minX
Field minX.
minZ
Field minZ.
maxX
Field maxX.
maxZ
Field maxZ.
startX
Field startX.
startZ
Field startZ.
endX
Field endX.
endZ
Field endZ.
dirtyChunks
Field dirtyChunks.
tintBlock
Field tintBlock.
radiusXZ
Field radiusXZ.
cut
Field cut.
empty
Field empty.
entities
Field entities.
keepAnchors
Field keepAnchors.
width
Field width.
height
Field height.
depth
Field depth.
halfDepth
Field halfDepth.
editorBlock
Field editorBlock.
editorBlockPrefabAir
Field editorBlockPrefabAir.
editorBlockPrefabAnchor
Field editorBlockPrefabAnchor.
anchors
Field anchors.
chunkColumn
Field chunkColumn.
fluid
Field fluid.
id
Field id.
sb
Field sb.
snapshotsList
Field snapshotsList.
store2
Field store2.
holder
Field holder.
entityCount
Field entityCount.
newForward
Field newForward.
newUp
Field newUp.
rotForward
Field rotForward.
rotUp
Field rotUp.
score
Field score.
translationEndResult
Field translationEndResult.
vector4d
Field vector4d.
vector4d2
Field vector4d2.
vector4d3
Field vector4d3.
mutable4d
Field mutable4d.
rotatedLocation
Field rotatedLocation.
currentChunk
Field currentChunk.
blockIdInRotatedLocation
Field blockIdInRotatedLocation.
filler
Field filler.
rotation
Field rotation.
originalFluidId
Field originalFluidId.
originalFluidLevel
Field originalFluidLevel.
newRotation
Field newRotation.
hitbox
Field hitbox.
finalYOffsetOutOfGround
Field finalYOffsetOutOfGround.
rotatedLocation2
Field rotatedLocation2.
newMin
Field newMin.
newMax
Field newMax.
relativeOffset
Field relativeOffset.
selMin
Field selMin.
selMax
Field selMax.
origPosX
Field origPosX.
origPosY
Field origPosY.
origPosZ
Field origPosZ.
offsetX
Field offsetX.
offsetY
Field offsetY.
offsetZ
Field offsetZ.
pasteMin
Field pasteMin.
pasteMax
Field pasteMax.
prefabId
Field prefabId.
snapshots
Field snapshots.
message
Field message.
previousX
Field previousX.
previousZ
Field previousZ.
newHolder
Field newHolder.
supportValue
Field supportValue.
material
Field material.
currentFluidLevel
Field currentFluidLevel.
newBlockId
Field newBlockId.
fluidId
Field fluidId.
fluidLevel
Field fluidLevel.
xMin
Field xMin.
xMax
Field xMax.
yMin
Field yMin.
yMax
Field yMax.
zMin
Field zMin.
zMax
Field zMax.
currentFluid
Field currentFluid.
currentFiller
Field currentFiller.
currentFluidId2
Field currentFluidId2.
rotation2
Field rotation2.
supportValue2
Field supportValue2.
oldBlockType
Field oldBlockType.
newBlockType
Field newBlockType.
finalNewHitbox
Field finalNewHitbox.
fillerX
Field fillerX.
fillerY
Field fillerY.
fillerZ
Field fillerZ.
fillerChunk
Field fillerChunk.
fillerBlock
Field fillerBlock.
fillerFiller
Field fillerFiller.
fillerHolder
Field fillerHolder.
willBeFilledByNewStructure
Field willBeFilledByNewStructure.
fillerX2
Field fillerX2.
fillerY2
Field fillerY2.
fillerZ2
Field fillerZ2.
fillerChunk2
Field fillerChunk2.
existingBlock
Field existingBlock.
existingFiller
Field existingFiller.
fillerHolder2
Field fillerHolder2.
newFiller
Field newFiller.
rotationIndex
Field rotationIndex.
replace
Field replace.
selected
Field selected.
xPos
Field xPos.
yPos
Field yPos.
zPos
Field zPos.
cleared
Field cleared.
baseX
Field baseX.
baseY
Field baseY.
baseZ
Field baseZ.
fillerRotation
Field fillerRotation.
beforeCleared
Field beforeCleared.
beforePlace
Field beforePlace.
transformComponent
Field transformComponent.
clipboardSnapshot
Field clipboardSnapshot.
destMin
Field destMin.
destMax
Field destMax.
reasonMessage
Field reasonMessage.
packet
Field packet.
stackOffset
Field stackOffset.
totalMin
Field totalMin.
totalMax
Field totalMax.
chunkStore
Field chunkStore.
cachedAccessor
Field cachedAccessor.
cx
Field cx.
cz
Field cz.
chunkRef
Field chunkRef.
wc
Field wc.
cy
Field cy.
physics
Field physics.
finalX
Field finalX.
finalY
Field finalY.
finalZ
Field finalZ.
list
Field list.
action
Field action.
prefabStore
Field prefabStore.
serverPrefabsPath
Field serverPrefabsPath.
postClone
Field postClone.
tempSelection
Field tempSelection.
e
Field e.
entityStore
Field entityStore.
blockSelection
Field blockSelection.
builderAction
Field builderAction.
mainBlock
Field mainBlock.
mainBlockCount
Field mainBlockCount.
mainBlockNotAir
Field mainBlockNotAir.
mainBlockNotAirCount
Field mainBlockNotAirCount.
solidStrength
Field solidStrength.
solidBlock
Field solidBlock.
solidBlockCount
Field solidBlockCount.
fillerBlockCount
Field fillerBlockCount.
toolExpireTime
Field toolExpireTime.
Method Detail
invalidateWorldMapForSelection
void
invalidateWorldMapForSelection
(@Nonnull final BlockSelection selection, @Nonnull final World world)
Method invalidateWorldMapForSelection.
- Parameters:
@Nonnull final BlockSelectionselection@Nonnull final Worldworld
invalidateWorldMapForBounds
void
invalidateWorldMapForBounds
(@Nonnull final Vector3i min, @Nonnull final Vector3i max, @Nonnull final World world)
Method invalidateWorldMapForBounds.
- Parameters:
@Nonnull final Vector3imin@Nonnull final Vector3imax@Nonnull final Worldworld
getState
Method getState.
- Parameters:
@Nonnull final Playerplayer@Nonnull final PlayerRefplayerRef
addToQueue
void
addToQueue
(@Nonnull final Player player, @Nonnull final PlayerRef playerRef, @Nonnull final ThrowableTriConsumer, BuilderState, ComponentAccessor, T> task)
Method addToQueue.
setup
void
setup
()
Method setup.
PrefabPasteEventSystem
new
PrefabPasteEventSystem
(this)
Method PrefabPasteEventSystem.
- Parameters:
thisthis
PickupItemInteraction
new
PickupItemInteraction
("*PickupItem")
Method PickupItemInteraction.
- Parameters:
"*PickupItem""*PickupItem"
DefaultAssetMap
new
DefaultAssetMap
()
Method DefaultAssetMap.
ClearBlocksCommand
new
ClearBlocksCommand
()
Method ClearBlocksCommand.
ClearEntitiesCommand
new
ClearEntitiesCommand
()
Method ClearEntitiesCommand.
ClearEditHistory
new
ClearEditHistory
()
Method ClearEditHistory.
ContractSelectionCommand
new
ContractSelectionCommand
()
Method ContractSelectionCommand.
CopyCommand
new
CopyCommand
()
Method CopyCommand.
DeselectCommand
new
DeselectCommand
()
Method DeselectCommand.
CutCommand
new
CutCommand
()
Method CutCommand.
EditLineCommand
new
EditLineCommand
()
Method EditLineCommand.
EnvironmentCommand
new
EnvironmentCommand
()
Method EnvironmentCommand.
ExpandCommand
new
ExpandCommand
()
Method ExpandCommand.
ExtendFaceCommand
new
ExtendFaceCommand
()
Method ExtendFaceCommand.
FlipCommand
new
FlipCommand
()
Method FlipCommand.
MoveCommand
new
MoveCommand
()
Method MoveCommand.
PasteCommand
new
PasteCommand
()
Method PasteCommand.
Pos1Command
new
Pos1Command
()
Method Pos1Command.
Pos2Command
new
Pos2Command
()
Method Pos2Command.
PrefabCommand
new
PrefabCommand
()
Method PrefabCommand.
RedoCommand
new
RedoCommand
()
Method RedoCommand.
ReplaceCommand
new
ReplaceCommand
()
Method ReplaceCommand.
RotateCommand
new
RotateCommand
()
Method RotateCommand.
SelectChunkCommand
new
SelectChunkCommand
()
Method SelectChunkCommand.
SelectChunkSectionCommand
new
SelectChunkSectionCommand
()
Method SelectChunkSectionCommand.
SelectionHistoryCommand
new
SelectionHistoryCommand
()
Method SelectionHistoryCommand.
SetCommand
new
SetCommand
()
Method SetCommand.
ShiftCommand
new
ShiftCommand
()
Method ShiftCommand.
StackCommand
new
StackCommand
()
Method StackCommand.
SubmergeCommand
new
SubmergeCommand
()
Method SubmergeCommand.
TintCommand
new
TintCommand
()
Method TintCommand.
UndoCommand
new
UndoCommand
()
Method UndoCommand.
UpdateSelectionCommand
new
UpdateSelectionCommand
()
Method UpdateSelectionCommand.
GlobalMaskCommand
new
GlobalMaskCommand
()
Method GlobalMaskCommand.
RepairFillersCommand
new
RepairFillersCommand
()
Method RepairFillersCommand.
PrefabEditCommand
new
PrefabEditCommand
()
Method PrefabEditCommand.
HotbarSwitchCommand
new
HotbarSwitchCommand
()
Method HotbarSwitchCommand.
WallsCommand
new
WallsCommand
()
Method WallsCommand.
HollowCommand
new
HollowCommand
()
Method HollowCommand.
FillCommand
new
FillCommand
()
Method FillCommand.
BrushConfigCommand
new
BrushConfigCommand
()
Method BrushConfigCommand.
SetToolHistorySizeCommand
new
SetToolHistorySizeCommand
()
Method SetToolHistorySizeCommand.
ObjImportCommand
new
ObjImportCommand
()
Method ObjImportCommand.
ImageImportCommand
new
ImageImportCommand
()
Method ImageImportCommand.
BuilderToolsUserDataSystem
new
BuilderToolsUserDataSystem
()
Method BuilderToolsUserDataSystem.
registerBrushOperations
void
registerBrushOperations
()
Method registerBrushOperations.
getPrefabEditSessionResourceType
PrefabEditSession>
getPrefabEditSessionResourceType
()
Method getPrefabEditSessionResourceType.
start
void
start
()
Method start.
shutdown
void
shutdown
()
Method shutdown.
cleanup
void
cleanup
()
Method cleanup.
setToolHistorySize
void
setToolHistorySize
(final int size)
Method setToolHistorySize.
- Parameters:
final intsize
onPlayerDisconnect
Method onPlayerDisconnect.
- Parameters:
@Nonnull final PlayerDisconnectEventevent
onToolArgUpdate
void
onToolArgUpdate
(@Nonnull final PlayerRef playerRef, @Nonnull final Player player, @Nonnull final BuilderToolArgUpdate packet)
Method onToolArgUpdate.
- Parameters:
@Nonnull final PlayerRefplayerRef@Nonnull final Playerplayer@Nonnull final BuilderToolArgUpdatepacket
getBuilderState
BuilderState
getBuilderState
(@Nonnull final Player player, @Nonnull final PlayerRef playerRef)
Method getBuilderState.
- Parameters:
@Nonnull final Playerplayer@Nonnull final PlayerRefplayerRef
BuilderState
new
BuilderState
(player, playerRef)
Method BuilderState.
- Parameters:
playerplayerplayerRefplayerRef
clearBuilderState
BuilderState
clearBuilderState
(final UUID uuid)
Method clearBuilderState.
- Parameters:
final UUIDuuid
retainBuilderState
Method retainBuilderState.
- Parameters:
@Nonnull final Playerplayer@Nonnull final PlayerRefplayerRef
releaseBuilderState
void
releaseBuilderState
(@Nonnull final UUID uuid)
Method releaseBuilderState.
- Parameters:
@Nonnull final UUIDuuid
getUserDataComponentType
BuilderToolsUserData>
getUserDataComponentType
()
Method getUserDataComponentType.
sendFeedback
void
sendFeedback
(@Nonnull final Message message, @Nullable final CommandSender feedback, @Nonnull final NotificationStyle notificationStyle, @Nonnull final ComponentAccessor componentAccessor)
Method sendFeedback.
- Parameters:
@Nonnull final Messagemessage@Nullable final CommandSenderfeedback@Nonnull final NotificationStylenotificationStyle@Nonnull final ComponentAccessorcomponentAccessor
if
else
if
(feedback != null)
Method if.
- Parameters:
feedback !=null
computeSelectionCopy
void
computeSelectionCopy
(@Nonnull final Ref ref, @Nonnull final Player player, @Nonnull final ThrowableConsumer task, @Nonnull final ComponentAccessor componentAccessor)
Method computeSelectionCopy.
- Parameters:
@Nonnull final Refref@Nonnull final Playerplayer@Nonnull final ThrowableConsumertask@Nonnull final ComponentAccessorcomponentAccessor
getPrefabAnchorComponentType
PrefabAnchor>
getPrefabAnchorComponentType
()
Method getPrefabAnchorComponentType.
getPrefabEditSessionManager
Method getPrefabEditSessionManager.
createBlockComponent
Holder
createBlockComponent
(final WorldChunk chunk, final int x, final int y, final int z, final int newId, final int oldId, @Nullable final Holder oldHolder, final boolean copy)
Method createBlockComponent.
- Parameters:
final WorldChunkchunkfinal intxfinal intyfinal intzfinal intnewIdfinal intoldId@Nullable final HolderoldHolderfinal booleancopy
forEachCopyableInSelection
void
forEachCopyableInSelection
(@Nonnull final World world, final int minX, final int minY, final int minZ, final int width, final int height, final int depth, @Nonnull final Consumer> action)
Method forEachCopyableInSelection.
- Parameters:
@Nonnull final Worldworldfinal intminXfinal intminYfinal intminZfinal intwidthfinal intheightfinal intdepth@Nonnull final Consumer>action
internalForEachCopyableInSelection
>
internalForEachCopyableInSelection
(world, minX, minY, minZ, encompassingWidth, encompassingHeight, encompassingDepth, action)
Method internalForEachCopyableInSelection.
- Parameters:
worldworldminXminXminYminYminZminZencompassingWidthencompassingWidthencompassingHeightencompassingHeightencompassingDepthencompassingDepthactionaction
getNonEmptyNeighbourBlock
int
getNonEmptyNeighbourBlock
(@Nonnull final ChunkAccessor accessor, final int x, final int y, final int z)
Method getNonEmptyNeighbourBlock.
- Parameters:
@Nonnull final ChunkAccessoraccessorfinal intxfinal intyfinal intz
getNewPathIdOnPrefabPasted
UUID
getNewPathIdOnPrefabPasted
(@Nullable final UUID id, final String name, final int prefabId)
Method getNewPathIdOnPrefabPasted.
- Parameters:
@Nullable final UUIDidfinal Stringnamefinal intprefabId
onPasteStart
boolean
onPasteStart
(final int prefabId, @Nonnull final ComponentAccessor componentAccessor)
Method onPasteStart.
- Parameters:
final intprefabId@Nonnull final ComponentAccessorcomponentAccessor
onPasteEnd
Method onPasteEnd.
- Parameters:
final intprefabId@Nonnull final ComponentAccessorcomponentAccessor
getPastedPrefabPathUUIDMap
>
getPastedPrefabPathUUIDMap
()
Method getPastedPrefabPathUUIDMap.
handle
void
handle
(@Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer, @Nonnull final PrefabPasteEvent event)
Method handle.
- Parameters:
@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer@Nonnull final PrefabPasteEventevent
restore
ActionEntry
restore
(final Ref ref, final Player player, final World world, final ComponentAccessor componentAccessor)
Method restore.
- Parameters:
final Refreffinal Playerplayerfinal Worldworldfinal ComponentAccessorcomponentAccessor
QueuedTask
private
QueuedTask
(@Nonnull final ThrowableTriConsumer, BuilderState, ComponentAccessor, ? extends Throwable> biTask)
Method QueuedTask.
execute
void
execute
(@Nonnull final Ref ref, @Nonnull final BuilderState state, @Nonnull final ComponentAccessor defaultComponentAccessor)
Method execute.
- Parameters:
@Nonnull final Refref@Nonnull final BuilderStatestate@Nonnull final ComponentAccessordefaultComponentAccessor
release
void
release
()
Method release.
runTask
void
runTask
()
Method runTask.
getTaskCount
int
getTaskCount
()
Method getTaskCount.
getUndoCount
int
getUndoCount
()
Method getUndoCount.
getRedoCount
int
getRedoCount
()
Method getRedoCount.
getDisplayName
String
getDisplayName
()
Method getDisplayName.
getTaskFuture
CompletableFuture
getTaskFuture
()
Method getTaskFuture.
getRandom
Random
getRandom
()
Method getRandom.
sendSelectionToClient
void
sendSelectionToClient
()
Method sendSelectionToClient.
sendErrorFeedback
void
sendErrorFeedback
(@Nonnull final Ref ref, @Nonnull final Message message, @Nonnull final ComponentAccessor componentAccessor)
Method sendErrorFeedback.
- Parameters:
@Nonnull final Refref@Nonnull final Messagemessage@Nonnull final ComponentAccessorcomponentAccessor
setActivePrefabPath
void
setActivePrefabPath
(final UUID path)
Method setActivePrefabPath.
- Parameters:
final UUIDpath
getActivePrefabPath
UUID
getActivePrefabPath
()
Method getActivePrefabPath.
getPrefabListRoot
Path
getPrefabListRoot
()
Method getPrefabListRoot.
setPrefabListRoot
void
setPrefabListRoot
(@Nullable final Path prefabListRoot)
Method setPrefabListRoot.
- Parameters:
@Nullable final PathprefabListRoot
getPrefabListPath
Path
getPrefabListPath
()
Method getPrefabListPath.
setPrefabListPath
void
setPrefabListPath
(@Nullable final Path prefabListPath)
Method setPrefabListPath.
- Parameters:
@Nullable final PathprefabListPath
getPrefabListSearchQuery
String
getPrefabListSearchQuery
()
Method getPrefabListSearchQuery.
setPrefabListSearchQuery
void
setPrefabListSearchQuery
(@Nullable final String prefabListSearchQuery)
Method setPrefabListSearchQuery.
- Parameters:
@Nullable final StringprefabListSearchQuery
edit
int
edit
(@Nonnull final Ref ref, @Nonnull final BuilderToolOnUseInteraction packet, @Nonnull final ComponentAccessor componentAccessor)
Method edit.
- Parameters:
@Nonnull final Refref@Nonnull final BuilderToolOnUseInteractionpacket@Nonnull final ComponentAccessorcomponentAccessor
BlockSelectionSnapshot
new
BlockSelectionSnapshot
(before)
Method BlockSelectionSnapshot.
- Parameters:
beforebefore
blocks
d
blocks
(%d positions)
Method blocks.
- Parameters:
%dpositions
placeBrushConfig
void
placeBrushConfig
(@Nonnull final Ref ref, final long startTime, @Nonnull final BrushConfigEditStore brushConfigEditStore, @Nonnull final ComponentAccessor componentAccessor)
Method placeBrushConfig.
- Parameters:
@Nonnull final Refreffinal longstartTime@Nonnull final BrushConfigEditStorebrushConfigEditStore@Nonnull final ComponentAccessorcomponentAccessor
flood
void
flood
(@Nonnull final EditOperation editOperation, final int x, final int y, final int z, final int shapeWidth, final int shapeHeight, @Nonnull final BlockPattern pattern, final int targetBlockId)
Method flood.
- Parameters:
@Nonnull final EditOperationeditOperationfinal intxfinal intyfinal intzfinal intshapeWidthfinal intshapeHeight@Nonnull final BlockPatternpatternfinal inttargetBlockId
isFloodPossible
boolean
isFloodPossible
(@Nonnull final ChunkAccessor accessor, final long blockPosition, @Nonnull final Vector3i min, @Nonnull final Vector3i max, final int blockId, final int targetBlockId)
Method isFloodPossible.
- Parameters:
@Nonnull final ChunkAccessoraccessorfinal longblockPosition@Nonnull final Vector3imin@Nonnull final Vector3imaxfinal intblockIdfinal inttargetBlockId
isAsideAir
boolean
isAsideAir
(@Nonnull final ChunkAccessor accessor, final int x, final int y, final int z)
Method isAsideAir.
- Parameters:
@Nonnull final ChunkAccessoraccessorfinal intxfinal intyfinal intz
isAsideBlock
boolean
isAsideBlock
(@Nonnull final ChunkAccessor accessor, final int x, final int y, final int z)
Method isAsideBlock.
- Parameters:
@Nonnull final ChunkAccessoraccessorfinal intxfinal intyfinal intz
getBlocksSampleData
BlocksSampleData
getBlocksSampleData
(@Nonnull final ChunkAccessor accessor, final int x, final int y, final int z, final int radius)
Method getBlocksSampleData.
- Parameters:
@Nonnull final ChunkAccessoraccessorfinal intxfinal intyfinal intzfinal intradius
getBlocksSmoothData
SmoothSampleData
getBlocksSmoothData
(@Nonnull final ChunkAccessor accessor, final int x, final int y, final int z)
Method getBlocksSmoothData.
- Parameters:
@Nonnull final ChunkAccessoraccessorfinal intxfinal intyfinal intz
editLine
void
editLine
(final int x1, final int y1, final int z1, final int x2, final int y2, final int z2, final BlockPattern material, final int lineWidth, final int lineHeight, final int wallThickness, final BrushShape shape, final BrushOrigin origin, final int spacing, final int density, final ComponentAccessor componentAccessor)
Method editLine.
- Parameters:
final intx1final inty1final intz1final intx2final inty2final intz2final BlockPatternmaterialfinal intlineWidthfinal intlineHeightfinal intwallThicknessfinal BrushShapeshapefinal BrushOriginoriginfinal intspacingfinal intdensityfinal ComponentAccessorcomponentAccessor
createShapePredicate
Predicate
createShapePredicate
(final BrushShape shape, final float halfWidth, final float halfHeight, final float innerHalfWidth, final float innerHalfHeight, final boolean hollow)
Method createShapePredicate.
- Parameters:
final BrushShapeshapefinal floathalfWidthfinal floathalfHeightfinal floatinnerHalfWidthfinal floatinnerHalfHeightfinal booleanhollow
switch
return
switch
(shape)
Method switch.
- Parameters:
shapeshape
extendFace
void
extendFace
(final int x, final int y, final int z, final int normalX, final int normalY, final int normalZ, final int extrudeDepth, final int radiusAllowed, final int blockId, @Nullable Vector3i min, @Nullable Vector3i max, final ComponentAccessor componentAccessor)
Method extendFace.
- Parameters:
final intxfinal intyfinal intzfinal intnormalXfinal intnormalYfinal intnormalZfinal intextrudeDepthfinal intradiusAllowedfinal intblockId@Nullable Vector3imin@Nullable Vector3imaxfinal ComponentAccessorcomponentAccessor
extendFaceFindBlocks
void
extendFaceFindBlocks
(@Nonnull final ChunkAccessor accessor, @Nonnull final BlockTypeAssetMap assetMap, @Nonnull final BlockSelection before, @Nonnull final BlockSelection after, final int x, final int y, final int z, final int normalX, final int normalY, final int normalZ, final int extrudeDepth, final int blockId, @Nonnull final Vector3i min, @Nonnull final Vector3i max)
Method extendFaceFindBlocks.
- Parameters:
@Nonnull final ChunkAccessoraccessor@Nonnull final BlockTypeAssetMapassetMap@Nonnull final BlockSelectionbefore@Nonnull final BlockSelectionafterfinal intxfinal intyfinal intzfinal intnormalXfinal intnormalYfinal intnormalZfinal intextrudeDepthfinal intblockId@Nonnull final Vector3imin@Nonnull final Vector3imax
update
void
update
(final int xMin, final int yMin, final int zMin, final int xMax, final int yMax, final int zMax)
Method update.
- Parameters:
final intxMinfinal intyMinfinal intzMinfinal intxMaxfinal intyMaxfinal intzMax
ClipboardBoundsSnapshot
new
ClipboardBoundsSnapshot
(this.selection)
Method ClipboardBoundsSnapshot.
- Parameters:
this.selectionthis.selection
tint
void
tint
(@Nonnull final Ref ref, final int color, @Nonnull final ComponentAccessor componentAccessor)
Method tint.
- Parameters:
@Nonnull final Refreffinal intcolor@Nonnull final ComponentAccessorcomponentAccessor
environment
void
environment
(@Nonnull final Ref ref, final int environmentId, @Nonnull final ComponentAccessor componentAccessor)
Method environment.
- Parameters:
@Nonnull final Refreffinal intenvironmentId@Nonnull final ComponentAccessorcomponentAccessor
copyOrCut
int
copyOrCut
(@Nonnull final Ref ref, final int xMin, final int yMin, final int zMin, final int xMax, final int yMax, final int zMax, final int settings, @Nonnull final ComponentAccessor componentAccessor)
Method copyOrCut.
- Parameters:
@Nonnull final Refreffinal intxMinfinal intyMinfinal intzMinfinal intxMaxfinal intyMaxfinal intzMaxfinal intsettings@Nonnull final ComponentAccessorcomponentAccessor
PrefabCopyException
new
PrefabCopyException
("Prefab has multiple anchor blocks!\n" + String.valueOf(sb)
Method PrefabCopyException.
- Parameters:
"Prefab has multiple anchor blocks!\n" +String.valueOf(sb
EntityRemoveSnapshot
new
EntityRemoveSnapshot
(e)
Method EntityRemoveSnapshot.
- Parameters:
ee
clear
int
clear
(final int xMin, final int yMin, final int zMin, final int xMax, final int yMax, final int zMax, @Nonnull final ComponentAccessor componentAccessor)
Method clear.
- Parameters:
final intxMinfinal intyMinfinal intzMinfinal intxMaxfinal intyMaxfinal intzMax@Nonnull final ComponentAccessorcomponentAccessor
transformRotation
RotationTuple
transformRotation
(final RotationTuple prevRot, final Matrix4d transformationMatrix)
Method transformRotation.
- Parameters:
final RotationTupleprevRotfinal Matrix4dtransformationMatrix
transformThenPasteClipboard
void
transformThenPasteClipboard
(@Nonnull final BlockChange[] blockChanges, @Nullable final PrototypePlayerBuilderToolSettings.FluidChange[] fluidChanges, @Nonnull final Matrix4d transformationMatrix, @Nonnull final Vector3f rotationOrigin, @Nonnull final Vector3i initialPastePoint, final ComponentAccessor componentAccessor)
Method transformThenPasteClipboard.
- Parameters:
@Nonnull final BlockChange[]blockChanges@Nullable final PrototypePlayerBuilderToolSettings.FluidChange[]fluidChanges@Nonnull final Matrix4dtransformationMatrix@Nonnull final Vector3frotationOrigin@Nonnull final Vector3iinitialPastePointfinal ComponentAccessorcomponentAccessor
transformSelectionPoints
void
transformSelectionPoints
(@Nonnull final Matrix4d transformationMatrix, @Nonnull final Vector3f rotationOrigin)
Method transformSelectionPoints.
- Parameters:
@Nonnull final Matrix4dtransformationMatrix@Nonnull final Vector3frotationOrigin
transformBlockLocation
Vector3i
transformBlockLocation
(@Nonnull final Vector3i blockLocation, @Nonnull final Matrix4d transformationMatrix, @Nonnull final Vector3f rotationOrigin)
Method transformBlockLocation.
- Parameters:
@Nonnull final Vector3iblockLocation@Nonnull final Matrix4dtransformationMatrix@Nonnull final Vector3frotationOrigin
paste
int
paste
(@Nonnull final Ref ref, final int x, final int y, final int z, @Nonnull final ComponentAccessor componentAccessor)
Method paste.
- Parameters:
@Nonnull final Refreffinal intxfinal intyfinal intz@Nonnull final ComponentAccessorcomponentAccessor
EntityAddSnapshot
new
EntityAddSnapshot
(e)
Method EntityAddSnapshot.
- Parameters:
ee
rotate
void
rotate
(@Nonnull final Ref ref, @Nonnull final Axis axis, final int angle, @Nonnull final ComponentAccessor componentAccessor)
Method rotate.
- Parameters:
@Nonnull final Refref@Nonnull final Axisaxisfinal intangle@Nonnull final ComponentAccessorcomponentAccessor
rotateArbitrary
void
rotateArbitrary
(@Nonnull final Ref ref, final float yaw, final float pitch, final float roll, @Nonnull final ComponentAccessor componentAccessor)
Method rotateArbitrary.
- Parameters:
@Nonnull final Refreffinal floatyawfinal floatpitchfinal floatroll@Nonnull final ComponentAccessorcomponentAccessor
flip
void
flip
(@Nonnull final Ref ref, @Nonnull final Axis axis, @Nonnull final ComponentAccessor componentAccessor)
Method flip.
- Parameters:
@Nonnull final Refref@Nonnull final Axisaxis@Nonnull final ComponentAccessorcomponentAccessor
hollow
void
hollow
(@Nonnull final Ref ref, final int blockId, final int thickness, final boolean setTop, final boolean setBottom, @Nonnull final ComponentAccessor componentAccessor)
Method hollow.
- Parameters:
@Nonnull final Refreffinal intblockIdfinal intthicknessfinal booleansetTopfinal booleansetBottom@Nonnull final ComponentAccessorcomponentAccessor
test
boolean
test
(final int x, final int y, final int z, final Void unused)
Method test.
- Parameters:
final intxfinal intyfinal intzfinal Voidunused
walls
void
walls
(@Nonnull final Ref ref, final int blockId, final int thickness, final boolean cappedTop, final boolean cappedBottom, @Nonnull final ComponentAccessor componentAccessor)
Method walls.
- Parameters:
@Nonnull final Refreffinal intblockIdfinal intthicknessfinal booleancappedTopfinal booleancappedBottom@Nonnull final ComponentAccessorcomponentAccessor
fill
Method fill.
- Parameters:
@Nonnull final BlockPatternpatternfinal ComponentAccessorcomponentAccessor
replace
void
replace
(@Nonnull final Ref ref, @Nonnull final Material from, @Nonnull final Material to, @Nonnull final ComponentAccessor componentAccessor)
Method replace.
- Parameters:
@Nonnull final Refref@Nonnull final Materialfrom@Nonnull final Materialto@Nonnull final ComponentAccessorcomponentAccessor
clearFillerBlocksIfNeeded
void
clearFillerBlocksIfNeeded
(final int baseX, final int baseY, final int baseZ, final int oldBlockId, final int rotationIndex, final LocalCachedChunkAccessor accessor, final BlockSelection before, final BlockSelection after)
Method clearFillerBlocksIfNeeded.
- Parameters:
final intbaseXfinal intbaseYfinal intbaseZfinal intoldBlockIdfinal introtationIndexfinal LocalCachedChunkAccessoraccessorfinal BlockSelectionbeforefinal BlockSelectionafter
replaceMultiBlockStructure
void
replaceMultiBlockStructure
(final int baseX, final int baseY, final int baseZ, final int oldBlockId, final int newBlockId, final int rotationIndex, final LocalCachedChunkAccessor accessor, final BlockSelection before, final BlockSelection after)
Method replaceMultiBlockStructure.
- Parameters:
final intbaseXfinal intbaseYfinal intbaseZfinal intoldBlockIdfinal intnewBlockIdfinal introtationIndexfinal LocalCachedChunkAccessoraccessorfinal BlockSelectionbeforefinal BlockSelectionafter
move
void
move
(@Nonnull final Ref ref, @Nonnull final Vector3i direction, final boolean empty, final boolean entities, @Nonnull final ComponentAccessor componentAccessor)
Method move.
- Parameters:
@Nonnull final Refref@Nonnull final Vector3idirectionfinal booleanemptyfinal booleanentities@Nonnull final ComponentAccessorcomponentAccessor
EntityTransformSnapshot
new
EntityTransformSnapshot
(targetEntityRef, componentAccessor)
Method EntityTransformSnapshot.
- Parameters:
targetEntityReftargetEntityRefcomponentAccessorcomponentAccessor
shift
void
shift
(@Nonnull final Ref ref, @Nonnull final Vector3i direction, @Nonnull final ComponentAccessor componentAccessor)
Method shift.
- Parameters:
@Nonnull final Refref@Nonnull final Vector3idirection@Nonnull final ComponentAccessorcomponentAccessor
pos1
Method pos1.
- Parameters:
@Nonnull final Vector3ipos1final ComponentAccessorcomponentAccessor
pos2
Method pos2.
- Parameters:
@Nonnull final Vector3ipos2final ComponentAccessorcomponentAccessor
select
void
select
(@Nonnull final Vector3i pos1, @Nonnull final Vector3i pos2, @Nullable final String reason, final ComponentAccessor componentAccessor)
Method select.
- Parameters:
@Nonnull final Vector3ipos1@Nonnull final Vector3ipos2@Nullable final Stringreasonfinal ComponentAccessorcomponentAccessor
stack
void
stack
(@Nonnull final Ref ref, @Nonnull final Vector3i direction, final int count, final boolean empty, final int spacing, @Nonnull final ComponentAccessor componentAccessor)
Method stack.
- Parameters:
@Nonnull final Refref@Nonnull final Vector3idirectionfinal intcountfinal booleanemptyfinal intspacing@Nonnull final ComponentAccessorcomponentAccessor
expand
void
expand
(@Nonnull final Ref ref, @Nonnull final Vector3i direction, @Nonnull final ComponentAccessor componentAccessor)
Method expand.
- Parameters:
@Nonnull final Refref@Nonnull final Vector3idirection@Nonnull final ComponentAccessorcomponentAccessor
contract
void
contract
(@Nonnull final Ref ref, @Nonnull final Vector3i direction, @Nonnull final ComponentAccessor componentAccessor)
Method contract.
- Parameters:
@Nonnull final Refref@Nonnull final Vector3idirection@Nonnull final ComponentAccessorcomponentAccessor
repairFillers
void
repairFillers
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method repairFillers.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
undo
List
undo
(@Nonnull final Ref ref, final int count, @Nonnull final ComponentAccessor componentAccessor)
Method undo.
- Parameters:
@Nonnull final Refreffinal intcount@Nonnull final ComponentAccessorcomponentAccessor
redo
List
redo
(@Nonnull final Ref ref, final int count, @Nonnull final ComponentAccessor componentAccessor)
Method redo.
- Parameters:
@Nonnull final Refreffinal intcount@Nonnull final ComponentAccessorcomponentAccessor
save
void
save
(@Nonnull final Ref ref, @Nonnull String name, final boolean relativize, final boolean overwrite, final ComponentAccessor componentAccessor)
Method save.
- Parameters:
@Nonnull final Refref@Nonnull Stringnamefinal booleanrelativizefinal booleanoverwritefinal ComponentAccessorcomponentAccessor
saveFromSelection
void
saveFromSelection
(@Nonnull final Ref ref, @Nonnull String name, final boolean relativize, final boolean overwrite, final boolean includeEntities, final boolean includeEmpty, @Nonnull final ComponentAccessor componentAccessor)
Method saveFromSelection.
- Parameters:
@Nonnull final Refref@Nonnull Stringnamefinal booleanrelativizefinal booleanoverwritefinal booleanincludeEntitiesfinal booleanincludeEmpty@Nonnull final ComponentAccessorcomponentAccessor
clearHistory
void
clearHistory
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method clearHistory.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
setGlobalMask
void
setGlobalMask
(@Nullable final BlockMask mask, @Nonnull final ComponentAccessor componentAccessor)
Method setGlobalMask.
- Parameters:
@Nullable final BlockMaskmask@Nonnull final ComponentAccessorcomponentAccessor
sendUpdate
void
sendUpdate
()
Method sendUpdate.
sendArea
void
sendArea
()
Method sendArea.
markPrefabsDirtyFromSnapshots
void
markPrefabsDirtyFromSnapshots
(@Nonnull final List> snapshots)
Method markPrefabsDirtyFromSnapshots.
- Parameters:
@Nonnull final Listsnapshots>
historyAction
ActionEntry
historyAction
(final Ref ref, @Nonnull final ObjectArrayFIFOQueue from, @Nonnull final ObjectArrayFIFOQueue to, final ComponentAccessor componentAccessor)
Method historyAction.
- Parameters:
final Refref@Nonnull final ObjectArrayFIFOQueuefrom@Nonnull final ObjectArrayFIFOQueuetofinal ComponentAccessorcomponentAccessor
BuilderToolsConfig
public
BuilderToolsConfig
()
Method BuilderToolsConfig.
KeyedCodec
new
KeyedCodec
("ToolExpireTime", Codec.LONG)
Method KeyedCodec.
- Parameters:
"ToolExpireTime""ToolExpireTime"Codec.LONGCodec.LONG
time
minimum
time
(in seconds)
Method time.
- Parameters:
inseconds
CachedAccessor
public
CachedAccessor
()
Method CachedAccessor.
of
CachedAccessor
of
(final ComponentAccessor accessor, final int cx, final int cy, final int cz, final int radius)
Method of.
- Parameters:
final ComponentAccessoraccessorfinal intcxfinal intcyfinal intczfinal intradius
getFluidSection
Method getFluidSection.
- Parameters:
final intcxfinal intcyfinal intcz
getBlockPhysics
Method getBlockPhysics.
- Parameters:
final intcxfinal intcyfinal intcz
getBlockSection
Method getBlockSection.
- Parameters:
final intcxfinal intcyfinal intcz