java.lang.Object
com.hypixel.hytale.server.core.universe.world.connectedblocks.ConnectedBlocksUtil

public class ConnectedBlocksUtil extends Object
  • Field Details

  • 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

      public static void notifyNeighborsAndCollectChanges(@Nonnull World world, @Nonnull Vector3i origin, @Nonnull Map<Vector3i,ConnectedBlocksUtil.ConnectedBlockResult> desiredChanges, Vector3i placementNormal)
    • 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)