public class EntityPredicate
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EntityPredicate.Builder |
Modifier and Type | Field and Description |
---|---|
static EntityPredicate |
ANY |
static EntityPredicate[] |
ANY_ARRAY |
private ResourceLocation |
catType |
private DistancePredicate |
distance |
private MobEffectsPredicate |
effects |
private EntityEquipmentPredicate |
equipment |
private EntityFlagsPredicate |
flags |
private LocationPredicate |
location |
private NBTPredicate |
nbt |
private PlayerPredicate |
player |
private java.lang.String |
team |
private EntityTypePredicate |
type |
Modifier | Constructor and Description |
---|---|
private |
EntityPredicate(EntityTypePredicate p_i225735_1_,
DistancePredicate p_i225735_2_,
LocationPredicate p_i225735_3_,
MobEffectsPredicate p_i225735_4_,
NBTPredicate p_i225735_5_,
EntityFlagsPredicate p_i225735_6_,
EntityEquipmentPredicate p_i225735_7_,
PlayerPredicate p_i225735_8_,
java.lang.String p_i225735_9_,
ResourceLocation p_i225735_10_) |
Modifier and Type | Method and Description |
---|---|
static EntityPredicate |
deserialize(com.google.gson.JsonElement element) |
static EntityPredicate[] |
deserializeArray(com.google.gson.JsonElement array) |
boolean |
func_217993_a(ServerWorld p_217993_1_,
Vec3d p_217993_2_,
Entity p_217993_3_) |
com.google.gson.JsonElement |
serialize() |
static com.google.gson.JsonElement |
serializeArray(EntityPredicate[] predicates) |
boolean |
test(ServerPlayerEntity player,
Entity entity) |
public static final EntityPredicate ANY
public static final EntityPredicate[] ANY_ARRAY
private final EntityTypePredicate type
private final DistancePredicate distance
private final LocationPredicate location
private final MobEffectsPredicate effects
private final NBTPredicate nbt
private final EntityFlagsPredicate flags
private final EntityEquipmentPredicate equipment
private final PlayerPredicate player
@Nullable private final java.lang.String team
@Nullable private final ResourceLocation catType
private EntityPredicate(EntityTypePredicate p_i225735_1_, DistancePredicate p_i225735_2_, LocationPredicate p_i225735_3_, MobEffectsPredicate p_i225735_4_, NBTPredicate p_i225735_5_, EntityFlagsPredicate p_i225735_6_, EntityEquipmentPredicate p_i225735_7_, PlayerPredicate p_i225735_8_, @Nullable java.lang.String p_i225735_9_, @Nullable ResourceLocation p_i225735_10_)
public boolean test(ServerPlayerEntity player, @Nullable Entity entity)
public boolean func_217993_a(ServerWorld p_217993_1_, @Nullable Vec3d p_217993_2_, @Nullable Entity p_217993_3_)
public static EntityPredicate deserialize(@Nullable com.google.gson.JsonElement element)
public static EntityPredicate[] deserializeArray(@Nullable com.google.gson.JsonElement array)
public com.google.gson.JsonElement serialize()
public static com.google.gson.JsonElement serializeArray(EntityPredicate[] predicates)