Class ConnectedBlocksUtil
java.lang.Object
com.hypixel.hytale.server.core.universe.world.connectedblocks.ConnectedBlocksUtil
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDesiredConnectedBlockType(World world, Vector3i coordinate, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType currentBlockType, int currentRotation, Vector3i placementNormal, boolean isPlacement) static voidnotifyNeighborsAndCollectChanges(World world, Vector3i origin, Map<Vector3i, ConnectedBlocksUtil.ConnectedBlockResult> desiredChanges, Vector3i placementNormal) static voidsetConnectedBlockAndNotifyNeighbors(int blockTypeId, RotationTuple blockTypeRotation, Vector3i placementNormal, Vector3i blockPosition, WorldChunk worldChunkComponent, BlockChunk blockChunkComponent) private static voidupdateNeighborsWithDepth(WorldChunk worldChunkComponent, Vector3i startCoordinate, Vector3i placementNormal, int settings)
-
Field Details
-
MAX_UPDATE_DEPTH
private static final int MAX_UPDATE_DEPTH- See Also:
-
-
Constructor Details
-
ConnectedBlocksUtil
public ConnectedBlocksUtil()
-
-
Method Details
-
setConnectedBlockAndNotifyNeighbors
public static void setConnectedBlockAndNotifyNeighbors(int blockTypeId, @Nonnull RotationTuple blockTypeRotation, @Nonnull Vector3i placementNormal, @Nonnull Vector3i blockPosition, @Nonnull WorldChunk worldChunkComponent, @Nonnull BlockChunk blockChunkComponent) -
updateNeighborsWithDepth
private static void updateNeighborsWithDepth(@Nonnull WorldChunk worldChunkComponent, @Nonnull Vector3i startCoordinate, @Nonnull Vector3i placementNormal, int settings) -
notifyNeighborsAndCollectChanges
-
getDesiredConnectedBlockType
@Nonnull public static Optional<ConnectedBlocksUtil.ConnectedBlockResult> getDesiredConnectedBlockType(@Nonnull World world, @Nonnull Vector3i coordinate, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType currentBlockType, int currentRotation, @Nonnull Vector3i placementNormal, boolean isPlacement)
-