Class EntityTeleportationMatcher
java.lang.Object
org.hamcrest.BaseMatcher<EntityMock>
org.hamcrest.TypeSafeMatcher<EntityMock>
org.mockbukkit.mockbukkit.matcher.entity.EntityTeleportationMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<EntityMock>,org.hamcrest.SelfDescribing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeMismatchSafely(EntityMock entityMock, org.hamcrest.Description description) voiddescribeTo(org.hamcrest.Description description) static org.hamcrest.Matcher<EntityMock> static @NotNull org.hamcrest.Matcher<EntityMock> hasNotTeleported(@NotNull Location location) static @NotNull org.hamcrest.Matcher<EntityMock> hasNotTeleported(@NotNull Location location, double maximumDistance) static EntityTeleportationMatcherstatic @NotNull EntityTeleportationMatcherhasTeleported(@NotNull Location location) static @NotNull EntityTeleportationMatcherhasTeleported(@NotNull Location location, double maximumDistance) protected booleanmatchesSafely(EntityMock entityMock) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
EntityTeleportationMatcher
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<EntityMock>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
describeMismatchSafely
- Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<EntityMock>
-
hasTeleported
- Returns:
- A matcher which matches if the entity has teleported
-
hasTeleported
@NotNull public static @NotNull EntityTeleportationMatcher hasTeleported(@NotNull @NotNull Location location) - Parameters:
location- The location required for there to be a match- Returns:
- A matcher which matches if the entity has teleported to the specified location
-
hasTeleported
@NotNull public static @NotNull EntityTeleportationMatcher hasTeleported(@NotNull @NotNull Location location, double maximumDistance) - Parameters:
location- The location required for there to be a matchmaximumDistance- The distance around the location considered a valid match- Returns:
- A matcher which matches if the entity has teleported to the specified location within a radius
-
hasNotTeleported
- Returns:
- A matcher which matches if the entity has not teleported
-
hasNotTeleported
@NotNull public static @NotNull org.hamcrest.Matcher<EntityMock> hasNotTeleported(@NotNull @NotNull Location location) - Parameters:
location- The location required for there to be no match- Returns:
- A matcher which matches if the entity has not teleported to the specified location
-
hasNotTeleported
@NotNull public static @NotNull org.hamcrest.Matcher<EntityMock> hasNotTeleported(@NotNull @NotNull Location location, double maximumDistance) - Parameters:
location- The location required for there to be no matchmaximumDistance- The distance around the location considered no valid match- Returns:
- A matcher which matches if the entity has teleported outside a radius of the specified location
-