Class WorldHandleAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<WorldHandleAssert,@Nullable WorldHandle>
nl.pim16aap2.lightkeeper.framework.assertions.WorldHandleAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<WorldHandleAssert,WorldHandle>, org.assertj.core.api.Descriptable<WorldHandleAssert>, org.assertj.core.api.ExtensionPoints<WorldHandleAssert,WorldHandle>

public final class WorldHandleAssert extends org.assertj.core.api.AbstractAssert<WorldHandleAssert,@Nullable WorldHandle>
Assertions for world handles.
  • Field Summary

    Fields inherited from class org.assertj.core.api.AbstractAssert

    info, throwUnsupportedExceptionOnEquals
  • Method Summary

    Modifier and Type
    Method
    Description
    doesNotHaveLoadedChunkAt(int chunkX, int chunkZ)
    Asserts that a chunk is not loaded at the target coordinates.
    hasBlockAt(int x, int y, int z)
    Starts an assertion chain for a block at the requested coordinates.
    hasBlockAt(BlockPos position)
    Starts an assertion chain for a block at the requested position.
    hasLoadedChunkAt(int chunkX, int chunkZ)
    Asserts that a chunk is loaded at the target coordinates.
    Asserts that the world has the expected name.
    Asserts that the world has a non-blank name.

    Methods inherited from class org.assertj.core.api.AbstractAssert

    actual, asInstanceOf, asList, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, usingComparator, usingComparator, usingDefaultComparator, usingEquals, usingEquals, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.assertj.core.api.Descriptable

    as, as, as, describedAs, describedAs
  • Method Details

    • hasBlockAt

      public WorldBlockAssert hasBlockAt(int x, int y, int z)
      Starts an assertion chain for a block at the requested coordinates.
      Parameters:
      x - Block X coordinate.
      y - Block Y coordinate.
      z - Block Z coordinate.
      Returns:
      Block assertion entrypoint.
    • hasBlockAt

      public WorldBlockAssert hasBlockAt(BlockPos position)
      Starts an assertion chain for a block at the requested position.
      Parameters:
      position - Block position.
      Returns:
      Block assertion entrypoint.
    • hasNameEqualTo

      public WorldHandleAssert hasNameEqualTo(String worldName)
      Asserts that the world has the expected name.
      Parameters:
      worldName - Expected world name.
      Returns:
      This assertion for fluent chaining.
    • hasNonBlankName

      public WorldHandleAssert hasNonBlankName()
      Asserts that the world has a non-blank name.
      Returns:
      This assertion for fluent chaining.
    • hasLoadedChunkAt

      public WorldHandleAssert hasLoadedChunkAt(int chunkX, int chunkZ)
      Asserts that a chunk is loaded at the target coordinates.
      Parameters:
      chunkX - Chunk X coordinate.
      chunkZ - Chunk Z coordinate.
      Returns:
      This assertion for fluent chaining.
    • doesNotHaveLoadedChunkAt

      public WorldHandleAssert doesNotHaveLoadedChunkAt(int chunkX, int chunkZ)
      Asserts that a chunk is not loaded at the target coordinates.
      Parameters:
      chunkX - Chunk X coordinate.
      chunkZ - Chunk Z coordinate.
      Returns:
      This assertion for fluent chaining.