public class EntityPredicate extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EntityPredicate.Builder |
static class |
EntityPredicate.Extended |
Modifier and Type | Field and Description |
---|---|
static EntityPredicate |
ANY |
private Identifier |
catType |
private DistancePredicate |
distance |
private EntityEffectPredicate |
effects |
private EntityEquipmentPredicate |
equipment |
private FishingHookPredicate |
fishingHook |
private EntityFlagsPredicate |
flags |
private LocationPredicate |
location |
private NbtPredicate |
nbt |
private PlayerPredicate |
player |
private EntityPredicate |
targetedEntity |
private String |
team |
private EntityTypePredicate |
type |
private EntityPredicate |
vehicle |
Modifier | Constructor and Description |
---|---|
private |
EntityPredicate(EntityTypePredicate type,
DistancePredicate distance,
LocationPredicate location,
EntityEffectPredicate effects,
NbtPredicate nbt,
EntityFlagsPredicate flags,
EntityEquipmentPredicate equipment,
PlayerPredicate player,
FishingHookPredicate fishingHook,
EntityPredicate vehicle,
EntityPredicate targetedEntity,
String team,
Identifier catType) |
private |
EntityPredicate(EntityTypePredicate entityTypePredicate,
DistancePredicate distancePredicate,
LocationPredicate locationPredicate,
EntityEffectPredicate entityEffectPredicate,
NbtPredicate nbtPredicate,
EntityFlagsPredicate entityFlagsPredicate,
EntityEquipmentPredicate entityEquipmentPredicate,
PlayerPredicate playerPredicate,
FishingHookPredicate fishingHookPredicate,
String string,
Identifier identifier) |
Modifier and Type | Method and Description |
---|---|
static LootContext |
createAdvancementEntityLootContext(ServerPlayerEntity player,
Entity target) |
static EntityPredicate |
fromJson(JsonElement json) |
boolean |
test(ServerPlayerEntity player,
Entity entity) |
boolean |
test(ServerWorld world,
Vec3d pos,
Entity entity) |
JsonElement |
toJson() |
public static final EntityPredicate ANY
private final EntityTypePredicate type
private final DistancePredicate distance
private final LocationPredicate location
private final EntityEffectPredicate effects
private final NbtPredicate nbt
private final EntityFlagsPredicate flags
private final EntityEquipmentPredicate equipment
private final PlayerPredicate player
private final FishingHookPredicate fishingHook
private final EntityPredicate vehicle
private final EntityPredicate targetedEntity
@Nullable private final Identifier catType
private EntityPredicate(EntityTypePredicate entityTypePredicate, DistancePredicate distancePredicate, LocationPredicate locationPredicate, EntityEffectPredicate entityEffectPredicate, NbtPredicate nbtPredicate, EntityFlagsPredicate entityFlagsPredicate, EntityEquipmentPredicate entityEquipmentPredicate, PlayerPredicate playerPredicate, FishingHookPredicate fishingHookPredicate, @Nullable String string, @Nullable Identifier identifier)
private EntityPredicate(EntityTypePredicate type, DistancePredicate distance, LocationPredicate location, EntityEffectPredicate effects, NbtPredicate nbt, EntityFlagsPredicate flags, EntityEquipmentPredicate equipment, PlayerPredicate player, FishingHookPredicate fishingHook, EntityPredicate vehicle, EntityPredicate targetedEntity, @Nullable String team, @Nullable Identifier catType)
public boolean test(ServerPlayerEntity player, @Nullable Entity entity)
public boolean test(ServerWorld world, @Nullable Vec3d pos, @Nullable Entity entity)
public static EntityPredicate fromJson(@Nullable JsonElement json)
public JsonElement toJson()
public static LootContext createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)