net.minecraft.commands.arguments.selector

public class EntitySelectorParser

hm
net.minecraft.commands.arguments.selector.EntitySelectorParser
net.minecraft.class_2303
net.minecraft.command.EntitySelectorReader
net.minecraft.commands.arguments.selector.ArgumentParserSelector

Field summary

Modifier and TypeField
public static final char
a
SYNTAX_SELECTOR_START
field_33069
SELECTOR_PREFIX
private static final char
o
SYNTAX_OPTIONS_START
field_33073
ARGUMENTS_OPENING
private static final char
p
SYNTAX_OPTIONS_END
field_33074
ARGUMENTS_CLOSING
public static final char
b
SYNTAX_OPTIONS_KEY_VALUE_SEPARATOR
field_33070
ARGUMENT_DEFINER
private static final char
q
SYNTAX_OPTIONS_SEPARATOR
field_33075
ARGUMENT_SEPARATOR
public static final char
c
SYNTAX_NOT
field_33071
INVERT_MODIFIER
public static final char
d
SYNTAX_TAG
field_33072
TAG_MODIFIER
private static final char
r
SELECTOR_NEAREST_PLAYER
field_33076
NEAREST_PLAYER
private static final char
s
SELECTOR_ALL_PLAYERS
field_33077
ALL_PLAYERS
private static final char
t
SELECTOR_RANDOM_PLAYERS
field_33078
RANDOM_PLAYER
private static final char
u
SELECTOR_CURRENT_ENTITY
field_33079
SELF
private static final char
v
SELECTOR_ALL_ENTITIES
field_33080
ALL_ENTITIES
private static final char
w
SELECTOR_NEAREST_ENTITY
field_52174
NEAREST_ENTITY
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
e
ERROR_INVALID_NAME_OR_UUID
field_10875
INVALID_ENTITY_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
f
ERROR_UNKNOWN_SELECTOR_TYPE
field_10853
UNKNOWN_SELECTOR_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
g
ERROR_SELECTORS_NOT_ALLOWED
field_10880
NOT_ALLOWED_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
h
ERROR_MISSING_SELECTOR_TYPE
field_10844
MISSING_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
i
ERROR_EXPECTED_END_OF_OPTIONS
field_10837
UNTERMINATED_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
j
ERROR_EXPECTED_OPTION_VALUE
field_10855
VALUELESS_EXCEPTION
public static final BiConsumer<Vec3, List<? extends Entity>>
k
ORDER_NEAREST
field_10869
NEAREST
public static final BiConsumer<Vec3, List<? extends Entity>>
l
ORDER_FURTHEST
field_10882
FURTHEST
public static final BiConsumer<Vec3, List<? extends Entity>>
m
ORDER_RANDOM
field_10850
RANDOM
public static final BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder>, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
n
SUGGEST_NOTHING
field_10867
DEFAULT_SUGGESTION_PROVIDER
private final com.mojang.brigadier.StringReader
x
reader
field_10860
reader
private final boolean
y
allowSelectors
field_10846
atAllowed
private int
z
maxResults
field_10858
limit
private boolean
A
includesEntities
field_10843
includesNonPlayers
private boolean
B
worldLimited
field_10866
localWorldOnly
private MinMaxBounds$Doubles
C
distance
field_10838
distance
private MinMaxBounds$Ints
D
level
field_10842
levelRange
private Double
E
x
field_10857
x
private Double
F
y
field_10872
y
private Double
G
z
field_10839
z
private Double
H
deltaX
field_10862
dx
private Double
I
deltaY
field_10852
dy
private Double
J
deltaZ
field_10881
dz
private WrappedMinMaxBounds
K
rotX
field_10877
pitchRange
private WrappedMinMaxBounds
L
rotY
field_10859
yawRange
private final List<Predicate<Entity>>
M
predicates
field_10870
predicates
private BiConsumer<Vec3, List<? extends Entity>>
N
order
field_10847
sorter
private boolean
O
currentEntity
field_10879
senderOnly
private String
P
playerName
field_10876
playerName
private int
Q
startPosition
field_10861
startCursor
private UUID
R
entityUUID
field_10878
uuid
private BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder>, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>>
S
suggestions
field_10848
suggestionProvider
private boolean
T
hasNameEquals
field_10854
selectsName
private boolean
U
hasNameNotEquals
field_10874
excludesName
private boolean
V
isLimited
field_10851
hasLimit
private boolean
W
isSorted
field_10873
hasSorter
private boolean
X
hasGamemodeEquals
field_10849
selectsGameMode
private boolean
Y
hasGamemodeNotEquals
field_10871
excludesGameMode
private boolean
Z
hasTeamEquals
field_10845
selectsTeam
private boolean
aa
hasTeamNotEquals
field_10868
excludesTeam
private EntityType<?>
ab
type
field_10863
entityType
private boolean
ac
typeInverse
field_10865
excludesEntityType
private boolean
ad
hasScores
field_10841
selectsScores
private boolean
ae
hasAdvancements
field_10864
selectsAdvancements
private boolean
af
usesSelectors
field_10840
usesAt

Constructor summary

ModifierConstructor
public (com.mojang.brigadier.StringReader reader, boolean atAllowed)

Method summary

Modifier and TypeMethod
public static <S> boolean
a(S arg0)
allowSelectors(S arg0)
method_61185(S arg0)
shouldAllowAtSelectors(S source)
public EntitySelector
a()
getSelector()
method_9871()
build()
private AABB
a(double arg0, double arg1, double arg2)
createAabb(double arg0, double arg1, double arg2)
method_9894(double arg0, double arg1, double arg2)
createBox(double x, double y, double z)
private void
I()
finalizePredicates()
method_9878()
buildPredicate()
private Predicate<Entity>
a(en arg0, ToDoubleFunction<bvk> arg1)
createRotationPredicate(WrappedMinMaxBounds arg0, ToDoubleFunction<Entity> arg1)
method_9859(class_2152 arg0, ToDoubleFunction<class_1297> arg1)
rotationPredicate(FloatRangeArgument angleRange, ToDoubleFunction<Entity> entityToAngle)
protected void
b()
parseSelector()
method_9917()
readAtVariable()
protected void
c()
parseNameOrUUID()
method_9849()
readRegular()
protected void
d()
parseOptions()
method_9874()
readArguments()
public boolean
e()
shouldInvertValue()
method_9892()
readNegationCharacter()
public boolean
f()
isTag()
method_9915()
readTagCharacter()
public com.mojang.brigadier.StringReader
g()
getReader()
method_9835()
getReader()
public void
a(Predicate<bvk> arg0)
addPredicate(Predicate<Entity> arg0)
method_9916(Predicate<class_1297> arg0)
addPredicate(Predicate<Entity> predicate)
public void
h()
setWorldLimited()
method_9852()
setLocalWorldOnly()
public MinMaxBounds$Doubles
i()
getDistance()
method_9873()
getDistance()
public void
a(dj$c arg0)
setDistance(MinMaxBounds$Doubles arg0)
method_9870(class_2096$class_2099 arg0)
setDistance(NumberRange$DoubleRange distance)
public MinMaxBounds$Ints
j()
getLevel()
method_9895()
getLevelRange()
public void
a(dj$d arg0)
setLevel(MinMaxBounds$Ints arg0)
method_9846(class_2096$class_2100 arg0)
setLevelRange(NumberRange$IntRange levelRange)
public WrappedMinMaxBounds
k()
getRotX()
method_9883()
getPitchRange()
public void
a(en arg0)
setRotX(WrappedMinMaxBounds arg0)
method_9898(class_2152 arg0)
setPitchRange(FloatRangeArgument pitchRange)
public WrappedMinMaxBounds
l()
getRotY()
method_9853()
getYawRange()
public void
b(en arg0)
setRotY(WrappedMinMaxBounds arg0)
method_9855(class_2152 arg0)
setYawRange(FloatRangeArgument yawRange)
public Double
m()
getX()
method_9902()
getX()
public Double
n()
getY()
method_9884()
getY()
public Double
o()
getZ()
method_9868()
getZ()
public void
a(double arg0)
setX(double arg0)
method_9850(double arg0)
setX(double x)
public void
b(double arg0)
setY(double arg0)
method_9864(double arg0)
setY(double y)
public void
c(double arg0)
setZ(double arg0)
method_9879(double arg0)
setZ(double z)
public void
d(double arg0)
setDeltaX(double arg0)
method_9891(double arg0)
setDx(double dx)
public void
e(double arg0)
setDeltaY(double arg0)
method_9905(double arg0)
setDy(double dy)
public void
f(double arg0)
setDeltaZ(double arg0)
method_9918(double arg0)
setDz(double dz)
public Double
p()
getDeltaX()
method_9851()
getDx()
public Double
q()
getDeltaY()
method_9840()
getDy()
public Double
r()
getDeltaZ()
method_9907()
getDz()
public void
a(int arg0)
setMaxResults(int arg0)
method_9900(int arg0)
setLimit(int limit)
public void
a(boolean arg0)
setIncludesEntities(boolean arg0)
method_9841(boolean arg0)
setIncludesNonPlayers(boolean includesNonPlayers)
public BiConsumer<Vec3, List<? extends Entity>>
s()
getOrder()
method_35818()
getSorter()
public void
a(BiConsumer<fby, List<? extends bvk>> arg0)
setOrder(BiConsumer<Vec3, List<? extends Entity>> arg0)
method_9845(BiConsumer<class_243, List<? extends class_1297>> arg0)
setSorter(BiConsumer<Vec3d, List<? extends Entity>> sorter)
public EntitySelector
t()
parse()
method_9882()
read()
private static void
a(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
fillSelectorSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
method_9896(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0)
suggestSelector(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
b(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestNameOrSelector(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
method_9880(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestSelector(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> consumer)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
c(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestName(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
method_9858(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestNormal(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> consumer)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
d(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestSelector(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
method_9834(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestSelectorRest(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> consumer)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
e(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestOpenOptions(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
method_9893(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestOpen(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> consumer)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
f(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestOptionsKeyOrClose(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
method_9911(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestOptionOrEnd(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> consumer)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
g(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestOptionsKey(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
method_9909(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestOption(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> consumer)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
h(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestOptionsNextOrClose(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
method_9847(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestEndNext(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> consumer)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
i(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestEquals(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
method_35817(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
suggestDefinerNext(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> consumer)
public boolean
u()
isCurrentEntity()
method_9885()
isSenderOnly()
public void
a(BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder>, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> arg0)
setSuggestions(BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder>, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> arg0)
method_9875(BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder>, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> arg0)
setSuggestionProvider(BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder>, CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> suggestionProvider)
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
fillSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
method_9908(com.mojang.brigadier.suggestion.SuggestionsBuilder arg0, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> arg1)
listSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Consumer<com.mojang.brigadier.suggestion.SuggestionsBuilder> consumer)
public boolean
v()
hasNameEquals()
method_9912()
selectsName()
public void
b(boolean arg0)
setHasNameEquals(boolean arg0)
method_9899(boolean arg0)
setSelectsName(boolean selectsName)
public boolean
w()
hasNameNotEquals()
method_9844()
excludesName()
public void
c(boolean arg0)
setHasNameNotEquals(boolean arg0)
method_9913(boolean arg0)
setExcludesName(boolean excludesName)
public boolean
x()
isLimited()
method_9866()
hasLimit()
public void
d(boolean arg0)
setLimited(boolean arg0)
method_9877(boolean arg0)
setHasLimit(boolean hasLimit)
public boolean
y()
isSorted()
method_9889()
hasSorter()
public void
e(boolean arg0)
setSorted(boolean arg0)
method_9887(boolean arg0)
setHasSorter(boolean hasSorter)
public boolean
z()
hasGamemodeEquals()
method_9839()
selectsGameMode()
public void
f(boolean arg0)
setHasGamemodeEquals(boolean arg0)
method_9890(boolean arg0)
setSelectsGameMode(boolean selectsGameMode)
public boolean
A()
hasGamemodeNotEquals()
method_9837()
excludesGameMode()
public void
g(boolean arg0)
setHasGamemodeNotEquals(boolean arg0)
method_9857(boolean arg0)
setExcludesGameMode(boolean excludesGameMode)
public boolean
B()
hasTeamEquals()
method_9904()
selectsTeam()
public void
h(boolean arg0)
setHasTeamEquals(boolean arg0)
method_9865(boolean arg0)
setSelectsTeam(boolean selectsTeam)
public boolean
C()
hasTeamNotEquals()
method_35816()
excludesTeam()
public void
i(boolean arg0)
setHasTeamNotEquals(boolean arg0)
method_9833(boolean arg0)
setExcludesTeam(boolean excludesTeam)
public void
a(bvr<?> arg0)
limitToType(EntityType<?> arg0)
method_9842(class_1299<?> arg0)
setEntityType(EntityType<?> entityType)
public void
D()
setTypeLimitedInversely()
method_9860()
setExcludesEntityType()
public boolean
E()
isTypeLimited()
method_9886()
selectsEntityType()
public boolean
F()
isTypeLimitedInversely()
method_9910()
excludesEntityType()
public boolean
G()
hasScores()
method_9843()
selectsScores()
public void
j(boolean arg0)
setHasScores(boolean arg0)
method_9848(boolean arg0)
setSelectsScores(boolean selectsScores)
public boolean
H()
hasAdvancements()
method_9861()
selectsAdvancements()
public void
k(boolean arg0)
setHasAdvancements(boolean arg0)
method_9906(boolean arg0)
setSelectsAdvancements(boolean selectsAdvancements)