Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getBlockMask()
- getSelectionMin()
- getSelectionMax()
- getBefore()
- getAfter()
- getAccessor()
- getSkippedUnloaded()
- getBlock(int, int, int)
- setBlock(int, int, int, int)
- setBlock(int, int, int, int, int)
- setMaterialWithFiller(int, int, int, Material)
- clearFluid(int, int, int)
- getFluid(int, int, int)
- setMaterial(int, int, int, Material)
- setTint(int, int, int, double)
- hasColumn(int, int)
- getTint(int, int)
- removeEntity(Ref, Holder)
- trackSpawnedEntity(Ref)
- getSpawnedEntityRefs()
- trackMovedEntity(Ref, ComponentAccessor)
- getMovedEntitySnapshots()
Class EditOperation
java.lang.Object
com.hypixel.hytale.builtin.buildertools.EditOperation
-
Constructor Summary
ConstructorsConstructorDescriptionEditOperation(World world, int x, int y, int z, int editRange, org.joml.Vector3i min, org.joml.Vector3i max, org.joml.Vector3i selectionMin, org.joml.Vector3i selectionMax, BlockMask blockMask) -
Method Summary
Modifier and TypeMethodDescriptionbooleanclearFluid(int x, int y, int z) getAfter()intgetBlock(int x, int y, int z) intgetFluid(int x, int y, int z) Gets the fluid ID at the given coordinates.org.joml.Vector3iorg.joml.Vector3ilongintgetTint(int x, int z) booleanhasColumn(int x, int z) Whether the column holding the position is in memory, so a tint has somewhere to go.voidremoveEntity(Ref<EntityStore> entityRef, Holder<EntityStore> entityStoreHolder) booleansetBlock(int x, int y, int z, int blockId) booleansetBlock(int x, int y, int z, int blockId, int rotation) Sets a block at the given world coordinates with rotation.booleansetMaterial(int x, int y, int z, Material material) Sets a material (block or fluid) at the given world coordinates.booleansetMaterialWithFiller(int x, int y, int z, Material material) Places a material likesetMaterial(int, int, int, Material), except blocks are stamped with full multi-cell filler and tiled against this edit's occupancy so multi-cell footprints never overlap or leave orphaned filler behind.booleansetTint(int x, int z, int color, double opacity) voidtrackMovedEntity(Ref<EntityStore> entityRef, ComponentAccessor<EntityStore> componentAccessor) voidtrackSpawnedEntity(Ref<EntityStore> ref)
-
Constructor Details
-
EditOperation
public EditOperation(@Nonnull World world, int x, int y, int z, int editRange, @Nullable org.joml.Vector3i min, @Nullable org.joml.Vector3i max, @Nullable org.joml.Vector3i selectionMin, @Nullable org.joml.Vector3i selectionMax, BlockMask blockMask) - Parameters:
min- lower corner of the area this edit covers, used to track which prefabs it dirtiesmax- upper corner of the area this edit covers, used to track which prefabs it dirtiesselectionMin- lower corner of the player's selection, which the#mask filter matches againstselectionMax- upper corner of the player's selection, which the#mask filter matches against
-
-
Method Details
-
getBlockMask
-
getSelectionMin
@Nullable public org.joml.Vector3i getSelectionMin() -
getSelectionMax
@Nullable public org.joml.Vector3i getSelectionMax() -
getBefore
-
getAfter
-
getAccessor
-
getSkippedUnloaded
public long getSkippedUnloaded() -
getBlock
public int getBlock(int x, int y, int z) -
setBlock
public boolean setBlock(int x, int y, int z, int blockId) -
setBlock
public boolean setBlock(int x, int y, int z, int blockId, int rotation) Sets a block at the given world coordinates with rotation.- Parameters:
x- the world X coordinatey- the world Y coordinatez- the world Z coordinateblockId- the block type IDrotation- the rotation tuple index- Returns:
- true if the block was set, false otherwise
-
setMaterialWithFiller
Places a material likesetMaterial(int, int, int, Material), except blocks are stamped with full multi-cell filler and tiled against this edit's occupancy so multi-cell footprints never overlap or leave orphaned filler behind. Brushes that paint arbitrary block types use this; copy and transform operations keepsetMaterial(int, int, int, Material)so they can write cells (including pre-resolved filler) verbatim. -
clearFluid
public boolean clearFluid(int x, int y, int z) -
getFluid
public int getFluid(int x, int y, int z) Gets the fluid ID at the given coordinates.- Parameters:
x- the world X coordinatey- the world Y coordinatez- the world Z coordinate- Returns:
- the fluid ID
-
setMaterial
Sets a material (block or fluid) at the given world coordinates.If the material is a fluid, it sets the fluid layer. If the material is a block, it sets the block with rotation (and clears fluids if empty).
- Parameters:
x- the world X coordinatey- the world Y coordinatez- the world Z coordinatematerial- the material to set- Returns:
- true if the material was set, false otherwise
-
setTint
public boolean setTint(int x, int z, int color, double opacity) -
hasColumn
public boolean hasColumn(int x, int z) Whether the column holding the position is in memory, so a tint has somewhere to go. -
getTint
public int getTint(int x, int z) -
removeEntity
-
trackSpawnedEntity
-
getSpawnedEntityRefs
-
trackMovedEntity
public void trackMovedEntity(Ref<EntityStore> entityRef, ComponentAccessor<EntityStore> componentAccessor) -
getMovedEntitySnapshots
-