Package net.minecraft.util
Class EntitySelectors.ArmoredMob
- java.lang.Object
-
- net.minecraft.util.EntitySelectors.ArmoredMob
-
- Enclosing class:
- EntitySelectors
public static class EntitySelectors.ArmoredMob extends java.lang.Object implements Predicate<Entity>
-
-
Constructor Summary
Constructors Constructor Description ArmoredMob(ItemStack armor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(Entity entity)
Returns the result of applying this predicate toinput
.
-
-
-
Constructor Detail
-
ArmoredMob
public ArmoredMob(ItemStack armor)
-
-
Method Detail
-
apply
public boolean apply(Entity entity)
Description copied from interface:Predicate
Returns the result of applying this predicate toinput
. This method is generally expected, but not absolutely required, to have the following properties:- Its execution does not cause any observable side effects.
- The computation is consistent with equals; that is,
Objects.equal
(a, b)
implies thatpredicate.apply(a) == predicate.apply(b))
.
-
-