classpublicPriority 1
BuilderToolsPlugin
com.hypixel.hytale.builtin.buildertools.BuilderToolsPlugin
extends JavaPlugin
implements SelectionProvider, MetricProvider
84
Methods
84
Public Methods
7
Fields
1
Constructors
Constants
intBLOCKS_COMPONENT= 2
BuilderCodec<BuilderToolsPlugin.BuilderToolsConfig>CODEC= BuilderCodec.builder(
BuilderToolsPlugin.BuilderToolsConfig.class, BuilderToolsPlugin...
StringEDITOR_BLOCK= "Editor_Block"
StringEDITOR_BLOCK_PREFAB_AIR= "Editor_Empty"
StringEDITOR_BLOCK_PREFAB_ANCHOR= "Editor_Anchor"
FeedbackConsumerFEEDBACK_CONSUMER= BuilderToolsPlugin::sendFeedback
intFLUID_COMPONENT= 0
longMIN_CLEANUP_INTERVAL_NANOS= TimeUnit.MINUTES.toNanos(1L)
intPHYSICS_COMPONENT= 1
MetricsRegistry<BuilderToolsPlugin>PLUGIN_METRICS_REGISTRY= new MetricsRegistry<BuilderToolsPlugin>()
.register(
"BuilderStates",
plu...
longRETAIN_BUILDER_STATE_TIMESTAMP= 9223372036854775807L
int[]SMOOTHING_KERNEL= <complex>
floatSMOOTHING_KERNEL_TOTAL= 27.0F
floatSPHERE_SIZE= 1.0F
MetricsRegistry<BuilderToolsPlugin.BuilderState>STATE_METRICS_REGISTRY= new MetricsRegistry<BuilderToolsPlugin.BuilderState>()
.register("Uuid", state -> state....
ThreadLocal<BuilderToolsPlugin.CachedAccessor>THREAD_LOCAL= ThreadLocal.withInitial(BuilderToolsPlugin.CachedAccessor::new)
Constructors
public
BuilderToolsPlugin(JavaPluginInit init)Methods
Public Methods (84)
public
int clear(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, ComponentAccessor<EntityStore> componentAccessor)public
BuilderToolsPlugin.BuilderState clearBuilderState(UUID uuid)@Nullable
public
void clearHistory(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor)public
<T extends Throwable> void computeSelectionCopy(ThrowableConsumer<BlockSelection, T> task)public
void contract(Ref<EntityStore> ref, Vector3i direction, ComponentAccessor<EntityStore> componentAccessor)public
void deselect(ComponentAccessor<EntityStore> componentAccessor)public
int edit(Ref<EntityStore> ref, BuilderToolOnUseInteraction packet, ComponentAccessor<EntityStore> componentAccessor)public
void environment(Ref<EntityStore> ref, int environmentId, ComponentAccessor<EntityStore> componentAccessor)public
void expand(Ref<EntityStore> ref, Vector3i direction, ComponentAccessor<EntityStore> componentAccessor)public
void fill(BlockPattern pattern, ComponentAccessor<EntityStore> componentAccessor)public
void flip(Ref<EntityStore> ref, Axis axis, ComponentAccessor<EntityStore> componentAccessor)public
BuilderToolsPlugin.Action getAction()public
UUID getActivePrefabPath()public
BlockColorIndex getBlockColorIndex()@Nonnull
public
BlockPhysics getBlockPhysics(int cx, int cy, int cz)@Nullable
public
BlockSection getBlockSection(int cx, int cy, int cz)@Nullable
public
BuilderToolsPlugin.BuilderState.BlocksSampleData getBlocksSampleData(ChunkAccessor accessor, int x, int y, int z, int radius)@Nonnull
public
BuilderToolsPlugin.BuilderState.SmoothSampleData getBlocksSmoothData(ChunkAccessor accessor, int x, int y, int z)@Nonnull
public
BuilderToolsPlugin.BuilderState getBuilderState(Player player, PlayerRef playerRef)@Nonnull
public
String getDisplayName()public
FluidSection getFluidSection(int cx, int cy, int cz)@Nullable
public
BlockMask getGlobalMask()public
UUID getNewPathIdOnPrefabPasted(UUID id, String name, int prefabId)@Nonnull
public
Int2ObjectConcurrentHashMap<ConcurrentHashMap<UUID, UUID>> getPastedPrefabPathUUIDMap()public
ComponentType<EntityStore, PrefabAnchor> getPrefabAnchorComponentType()public
PrefabEditSessionManager getPrefabEditSessionManager()public
ResourceType<EntityStore, PrefabEditSession> getPrefabEditSessionResourceType()public
Path getPrefabListPath()@Nullable
public
Path getPrefabListRoot()@Nullable
public
String getPrefabListSearchQuery()@Nullable
public
Random getRandom()@Nonnull
public
int getRedoCount()public
BlockSelection getSelection()publicstatic
BuilderToolsPlugin.BuilderState getState(Player player, PlayerRef playerRef)@Nonnull
public
int getTaskCount()public
CompletableFuture<Void> getTaskFuture()@Nullable
public
int getUndoCount()public
BuilderToolsUserData getUserData()@Nonnull
public
ComponentType<EntityStore, BuilderToolsUserData> getUserDataComponentType()public
void handle(Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer, PrefabPasteEvent event)publicstatic
void invalidateWorldMapForSelection(BlockSelection selection, World world)public
boolean isAsideAir(ChunkAccessor accessor, int x, int y, int z)public
boolean isAsideBlock(ChunkAccessor accessor, int x, int y, int z)public
void load(String name, ComponentAccessor<EntityStore> componentAccessor)public
void load(String name, BlockSelection serverPrefab, ComponentAccessor<EntityStore> componentAccessor)publicstatic
BuilderToolsPlugin.CachedAccessor of(ComponentAccessor<ChunkStore> accessor, int cx, int cy, int cz, int radius)@Nonnull
public
void onPasteEnd(int prefabId, ComponentAccessor<EntityStore> componentAccessor)publicstatic
boolean onPasteStart(int prefabId, ComponentAccessor<EntityStore> componentAccessor)public
void onToolArgUpdate(PlayerRef playerRef, Player player, BuilderToolArgUpdate packet)public
int paste(Ref<EntityStore> ref, int x, int y, int z, ComponentAccessor<EntityStore> componentAccessor)public
void pos1(Vector3i pos1, ComponentAccessor<EntityStore> componentAccessor)public
void pos2(Vector3i pos2, ComponentAccessor<EntityStore> componentAccessor)public
List<BuilderToolsPlugin.ActionEntry> redo(Ref<EntityStore> ref, int count, ComponentAccessor<EntityStore> componentAccessor)@Nonnull
public
void repairFillers(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor)public
void replace(Ref<EntityStore> ref, IntPredicate doReplace, int to, ComponentAccessor<EntityStore> componentAccessor)public
void replace(Ref<EntityStore> ref, Int2IntFunction function, ComponentAccessor<EntityStore> componentAccessor)public
BuilderToolsPlugin.ActionEntry restore(Ref<EntityStore> ref, Player player, World world, ComponentAccessor<EntityStore> componentAccessor)@Nonnull
public
void rotate(Ref<EntityStore> ref, Axis axis, int angle, ComponentAccessor<EntityStore> componentAccessor)public
void rotateArbitrary(Ref<EntityStore> ref, float yaw, float pitch, float roll, ComponentAccessor<EntityStore> componentAccessor)public
void runTask()public
void select(Vector3i pos1, Vector3i pos2, String reason, ComponentAccessor<EntityStore> componentAccessor)public
void sendArea()publicstatic
void sendFeedback(String key, int total, CommandSender feedback, ComponentAccessor<EntityStore> componentAccessor)publicstatic
void sendFeedback(String key, int total, int num, CommandSender feedback, ComponentAccessor<EntityStore> componentAccessor)public
void sendSelectionToClient()public
void set(int blockId, ComponentAccessor<EntityStore> componentAccessor)public
void set(BlockPattern pattern, ComponentAccessor<EntityStore> componentAccessor)public
void setActivePrefabPath(UUID path)public
void setGlobalMask(BlockMask mask, ComponentAccessor<EntityStore> componentAccessor)public
void setPrefabListPath(Path prefabListPath)public
void setPrefabListRoot(Path prefabListRoot)public
void setPrefabListSearchQuery(String prefabListSearchQuery)public
void setSelection(BlockSelection selection)public
void setToolHistorySize(int size)public
void shift(Ref<EntityStore> ref, Vector3i direction, ComponentAccessor<EntityStore> componentAccessor)public
boolean test(int x, int y, int z, Void unused)public
void tint(Ref<EntityStore> ref, int color, ComponentAccessor<EntityStore> componentAccessor)public
void tint(int x, int y, int z, int color, BrushShape shape, int shapeRange, ComponentAccessor<EntityStore> componentAccessor)public
MetricResults toMetricResults()@Nonnull@Override
public
Vector3i transformBlockLocation(Vector3i blockLocation, Matrix4d transformationMatrix, Vector3f rotationOrigin)@Nonnull
publicstatic
RotationTuple transformRotation(RotationTuple prevRot, Matrix4d transformationMatrix)public
void transformSelectionPoints(Matrix4d transformationMatrix, Vector3f rotationOrigin)public
List<BuilderToolsPlugin.ActionEntry> undo(Ref<EntityStore> ref, int count, ComponentAccessor<EntityStore> componentAccessor)@Nonnull
public
void update(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax)Fields
Private/Package Fields (7)
private
int historyCountprivate
BuilderToolsPlugin instanceprivate
ComponentType<EntityStore, PrefabAnchor> prefabAnchorComponentTypeprivate
PrefabEditSessionManager prefabEditSessionManagerprivate
ResourceType<EntityStore, PrefabEditSession> prefabEditSessionResourceTypeprivate
long toolExpireTimeNanosprivate
ComponentType<EntityStore, BuilderToolsUserData> userDataComponentTypeRelated Classes
Used By
BlockTypeAssetMapIndexedLookupTableAssetMapPickupItemInteractionPrefabAnchorPrefabDirtySystemsPrefabEditSessionPrefabEditSessionManagerPrefabMarkerProviderPrefabSelectionInteractionPrefabSetAnchorInteractionBrushConfigCommandExecutorBrushConfigEditStoreScriptedBrushAssetDebugBrushOperationDisableHoldInteractionOperationIgnoreExistingBrushDataOperationBlockPatternOperationBreakpointOperationClearOperationMaskOperationDeleteOperation+165 more