Class EntityLocationMatcher
java.lang.Object
org.hamcrest.BaseMatcher<EntityMock>
org.hamcrest.TypeSafeMatcher<EntityMock>
org.mockbukkit.mockbukkit.matcher.entity.EntityLocationMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<EntityMock>,org.hamcrest.SelfDescribing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddescribeMismatchSafely(EntityMock entityMock, org.hamcrest.Description description) voiddescribeTo(org.hamcrest.Description description) static @NotNull EntityLocationMatcherisInLocation(@NotNull Location location, double maxDistance) static @NotNull org.hamcrest.Matcher<EntityMock> isNotInLocation(@NotNull Location location, double maxDistance) 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
-
EntityLocationMatcher
-
-
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>
-
isInLocation
@NotNull public static @NotNull EntityLocationMatcher isInLocation(@NotNull @NotNull Location location, double maxDistance) - Parameters:
location- The location required for a matchmaxDistance- The radius away from the location which gives a match- Returns:
- A matcher which matches with any entity within a radius of specified location
-
isNotInLocation
@NotNull public static @NotNull org.hamcrest.Matcher<EntityMock> isNotInLocation(@NotNull @NotNull Location location, double maxDistance) - Parameters:
location- The location required for no matchmaxDistance- The radius away from the location which withdraws a match- Returns:
- A matcher which matches with any entity outside a radius of specified location
-