Package net.minecraft.command.arguments
Class EntitySelector
java.lang.Object
net.minecraft.command.arguments.EntitySelector
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AxisAlignedBB
private final boolean
private final UUID
private final boolean
private final int
private final BiConsumer<Vector3d,
List<? extends Entity>> private final String
private final MinMaxBounds.FloatBound
private final EntityType<?>
private final boolean
private final boolean
-
Constructor Summary
ConstructorDescriptionEntitySelector
(int p_i50800_1_, boolean p_i50800_2_, boolean p_i50800_3_, Predicate<Entity> p_i50800_4_, MinMaxBounds.FloatBound p_i50800_5_, Function<Vector3d, Vector3d> p_i50800_6_, AxisAlignedBB p_i50800_7_, BiConsumer<Vector3d, List<? extends Entity>> p_i50800_8_, boolean p_i50800_9_, String p_i50800_10_, UUID p_i50800_11_, EntityType<?> p_i50800_12_, boolean p_i50800_13_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addEntities
(List<Entity> p_197348_1_, ServerWorld p_197348_2_, Vector3d p_197348_3_, Predicate<Entity> p_197348_4_) private void
checkPermissions
(CommandSource p_210324_1_) findEntities
(CommandSource p_197341_1_) findPlayers
(CommandSource p_197342_1_) findSingleEntity
(CommandSource p_197340_1_) findSinglePlayer
(CommandSource p_197347_1_) int
getPredicate
(Vector3d p_197349_1_) boolean
boolean
boolean
static IFormattableTextComponent
sortAndLimit
(Vector3d p_197345_1_, List<T> p_197345_2_)
-
Field Details
-
maxResults
private final int maxResults -
includesEntities
private final boolean includesEntities -
worldLimited
private final boolean worldLimited -
predicate
-
range
-
position
-
aabb
-
order
-
currentEntity
private final boolean currentEntity -
playerName
-
entityUUID
-
type
-
usesSelector
private final boolean usesSelector
-
-
Constructor Details
-
EntitySelector
public EntitySelector(int p_i50800_1_, boolean p_i50800_2_, boolean p_i50800_3_, Predicate<Entity> p_i50800_4_, MinMaxBounds.FloatBound p_i50800_5_, Function<Vector3d, Vector3d> p_i50800_6_, @Nullable AxisAlignedBB p_i50800_7_, BiConsumer<Vector3d, List<? extends Entity>> p_i50800_8_, boolean p_i50800_9_, @Nullable String p_i50800_10_, @Nullable UUID p_i50800_11_, @Nullable EntityType<?> p_i50800_12_, boolean p_i50800_13_)
-
-
Method Details
-
getMaxResults
public int getMaxResults() -
includesEntities
public boolean includesEntities() -
isSelfSelector
public boolean isSelfSelector() -
isWorldLimited
public boolean isWorldLimited() -
checkPermissions
private void checkPermissions(CommandSource p_210324_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
findSingleEntity
public Entity findSingleEntity(CommandSource p_197340_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
findEntities
public List<? extends Entity> findEntities(CommandSource p_197341_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
addEntities
-
findSinglePlayer
public ServerPlayerEntity findSinglePlayer(CommandSource p_197347_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
findPlayers
public List<ServerPlayerEntity> findPlayers(CommandSource p_197342_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getPredicate
-
sortAndLimit
-
joinNames
-