Package net.minecraft.command
Class EntitySelector
java.lang.Object
net.minecraft.command.EntitySelector
- Mappings:
Namespace Name named net/minecraft/command/EntitySelectorintermediary net/minecraft/class_2300official hi
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BiConsumer<Vec3d, List<? extends Entity>> private final NumberRange.DoubleRangeprivate final TypeFilter<Entity, ?> private final booleanprivate final intprivate final booleanstatic final intprivate static final TypeFilter<Entity, ?> private final booleanprivate final BiConsumer<Vec3d, List<? extends Entity>> private final boolean -
Constructor Summary
ConstructorsConstructorDescriptionEntitySelector(int count, boolean includesNonPlayers, boolean localWorldOnly, List<Predicate<Entity>> predicates, NumberRange.DoubleRange distance, Function<Vec3d, Vec3d> positionOffset, @Nullable Box box, BiConsumer<Vec3d, List<? extends Entity>> sorter, boolean senderOnly, @Nullable String playerName, @Nullable UUID uuid, @Nullable EntityType<?> type, boolean usesAt) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidappendEntitiesFromWorld(List<Entity> entities, ServerWorld world, @Nullable Box box, Predicate<Entity> predicate) private voidprivate intgetEntities(ServerCommandSource source) getEntities(Vec3d pos, List<T> entities) getEntity(ServerCommandSource source) intgetLimit()static TextgetOffsetBox(Vec3d offset) getPlayer(ServerCommandSource source) getPlayers(ServerCommandSource source) getPositionPredicate(Vec3d pos, @Nullable Box box, @Nullable FeatureSet enabledFeatures) booleanbooleanbooleanbooleanusesAt()
-
Field Details
-
MAX_VALUE
public static final int MAX_VALUE- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_VALUELnet/minecraft/command/EntitySelector;MAX_VALUE:Iintermediary field_33068Lnet/minecraft/class_2300;field_33068:Iofficial aLhi;a:I
-
ARBITRARY
- Mappings:
Namespace Name Mixin selector named ARBITRARYLnet/minecraft/command/EntitySelector;ARBITRARY:Ljava/util/function/BiConsumer;intermediary field_41524Lnet/minecraft/class_2300;field_41524:Ljava/util/function/BiConsumer;official bLhi;b:Ljava/util/function/BiConsumer;
-
PASSTHROUGH_FILTER
- Mappings:
Namespace Name Mixin selector named PASSTHROUGH_FILTERLnet/minecraft/command/EntitySelector;PASSTHROUGH_FILTER:Lnet/minecraft/util/TypeFilter;intermediary field_27774Lnet/minecraft/class_2300;field_27774:Lnet/minecraft/class_5575;official cLhi;c:Ldxn;
-
limit
private final int limit- Mappings:
Namespace Name Mixin selector named limitLnet/minecraft/command/EntitySelector;limit:Iintermediary field_10822Lnet/minecraft/class_2300;field_10822:Iofficial dLhi;d:I
-
includesNonPlayers
private final boolean includesNonPlayers- Mappings:
Namespace Name Mixin selector named includesNonPlayersLnet/minecraft/command/EntitySelector;includesNonPlayers:Zintermediary field_10830Lnet/minecraft/class_2300;field_10830:Zofficial eLhi;e:Z
-
localWorldOnly
private final boolean localWorldOnly- Mappings:
Namespace Name Mixin selector named localWorldOnlyLnet/minecraft/command/EntitySelector;localWorldOnly:Zintermediary field_10829Lnet/minecraft/class_2300;field_10829:Zofficial fLhi;f:Z
-
predicates
- Mappings:
Namespace Name Mixin selector named predicatesLnet/minecraft/command/EntitySelector;predicates:Ljava/util/List;intermediary field_52308Lnet/minecraft/class_2300;field_52308:Ljava/util/List;official gLhi;g:Ljava/util/List;
-
distance
- Mappings:
Namespace Name Mixin selector named distanceLnet/minecraft/command/EntitySelector;distance:Lnet/minecraft/predicate/NumberRange$DoubleRange;intermediary field_10825Lnet/minecraft/class_2300;field_10825:Lnet/minecraft/class_2096$class_2099;official hLhi;h:Ldh$c;
-
positionOffset
- Mappings:
Namespace Name Mixin selector named positionOffsetLnet/minecraft/command/EntitySelector;positionOffset:Ljava/util/function/Function;intermediary field_10823Lnet/minecraft/class_2300;field_10823:Ljava/util/function/Function;official iLhi;i:Ljava/util/function/Function;
-
box
- Mappings:
Namespace Name Mixin selector named boxLnet/minecraft/command/EntitySelector;box:Lnet/minecraft/util/math/Box;intermediary field_10824Lnet/minecraft/class_2300;field_10824:Lnet/minecraft/class_238;official jLhi;j:Lewx;
-
sorter
- Mappings:
Namespace Name Mixin selector named sorterLnet/minecraft/command/EntitySelector;sorter:Ljava/util/function/BiConsumer;intermediary field_10826Lnet/minecraft/class_2300;field_10826:Ljava/util/function/BiConsumer;official kLhi;k:Ljava/util/function/BiConsumer;
-
senderOnly
private final boolean senderOnly- Mappings:
Namespace Name Mixin selector named senderOnlyLnet/minecraft/command/EntitySelector;senderOnly:Zintermediary field_10828Lnet/minecraft/class_2300;field_10828:Zofficial lLhi;l:Z
-
playerName
- Mappings:
Namespace Name Mixin selector named playerNameLnet/minecraft/command/EntitySelector;playerName:Ljava/lang/String;intermediary field_10831Lnet/minecraft/class_2300;field_10831:Ljava/lang/String;official mLhi;m:Ljava/lang/String;
-
uuid
- Mappings:
Namespace Name Mixin selector named uuidLnet/minecraft/command/EntitySelector;uuid:Ljava/util/UUID;intermediary field_10821Lnet/minecraft/class_2300;field_10821:Ljava/util/UUID;official nLhi;n:Ljava/util/UUID;
-
entityFilter
- Mappings:
Namespace Name Mixin selector named entityFilterLnet/minecraft/command/EntitySelector;entityFilter:Lnet/minecraft/util/TypeFilter;intermediary field_10832Lnet/minecraft/class_2300;field_10832:Lnet/minecraft/class_5575;official oLhi;o:Ldxn;
-
usesAt
private final boolean usesAt- Mappings:
Namespace Name Mixin selector named usesAtLnet/minecraft/command/EntitySelector;usesAt:Zintermediary field_10827Lnet/minecraft/class_2300;field_10827:Zofficial pLhi;p:Z
-
-
Constructor Details
-
EntitySelector
public EntitySelector(int count, boolean includesNonPlayers, boolean localWorldOnly, List<Predicate<Entity>> predicates, NumberRange.DoubleRange distance, Function<Vec3d, Vec3d> positionOffset, @Nullable @Nullable Box box, BiConsumer<Vec3d, List<? extends Entity>> sorter, boolean senderOnly, @Nullable @Nullable String playerName, @Nullable @Nullable UUID uuid, @Nullable @Nullable EntityType<?> type, boolean usesAt) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/command/EntitySelector;<init>(IZZLjava/util/List;Lnet/minecraft/predicate/NumberRange$DoubleRange;Ljava/util/function/Function;Lnet/minecraft/util/math/Box;Ljava/util/function/BiConsumer;ZLjava/lang/String;Ljava/util/UUID;Lnet/minecraft/entity/EntityType;Z)Vintermediary <init>Lnet/minecraft/class_2300;<init>(IZZLjava/util/List;Lnet/minecraft/class_2096$class_2099;Ljava/util/function/Function;Lnet/minecraft/class_238;Ljava/util/function/BiConsumer;ZLjava/lang/String;Ljava/util/UUID;Lnet/minecraft/class_1299;Z)Vofficial <init>Lhi;<init>(IZZLjava/util/List;Ldh$c;Ljava/util/function/Function;Lewx;Ljava/util/function/BiConsumer;ZLjava/lang/String;Ljava/util/UUID;Lbsx;Z)V
-
-
Method Details
-
getLimit
public int getLimit()- Mappings:
Namespace Name Mixin selector named getLimitLnet/minecraft/command/EntitySelector;getLimit()Iintermediary method_9815Lnet/minecraft/class_2300;method_9815()Iofficial aLhi;a()I
-
includesNonPlayers
public boolean includesNonPlayers()- Mappings:
Namespace Name Mixin selector named includesNonPlayersLnet/minecraft/command/EntitySelector;includesNonPlayers()Zintermediary method_9819Lnet/minecraft/class_2300;method_9819()Zofficial bLhi;b()Z
-
isSenderOnly
public boolean isSenderOnly()- Mappings:
Namespace Name Mixin selector named isSenderOnlyLnet/minecraft/command/EntitySelector;isSenderOnly()Zintermediary method_9820Lnet/minecraft/class_2300;method_9820()Zofficial cLhi;c()Z
-
isLocalWorldOnly
public boolean isLocalWorldOnly()- Mappings:
Namespace Name Mixin selector named isLocalWorldOnlyLnet/minecraft/command/EntitySelector;isLocalWorldOnly()Zintermediary method_9821Lnet/minecraft/class_2300;method_9821()Zofficial dLhi;d()Z
-
usesAt
public boolean usesAt()- Mappings:
Namespace Name Mixin selector named usesAtLnet/minecraft/command/EntitySelector;usesAt()Zintermediary method_35815Lnet/minecraft/class_2300;method_35815()Zofficial eLhi;e()Z
-
checkSourcePermission
private void checkSourcePermission(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named checkSourcePermissionLnet/minecraft/command/EntitySelector;checkSourcePermission(Lnet/minecraft/server/command/ServerCommandSource;)Vintermediary method_9818Lnet/minecraft/class_2300;method_9818(Lnet/minecraft/class_2168;)Vofficial eLhi;e(Let;)V
-
getEntity
public Entity getEntity(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getEntityLnet/minecraft/command/EntitySelector;getEntity(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/entity/Entity;intermediary method_9809Lnet/minecraft/class_2300;method_9809(Lnet/minecraft/class_2168;)Lnet/minecraft/class_1297;official aLhi;a(Let;)Lbsr;
-
getEntities
public List<? extends Entity> getEntities(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getEntitiesLnet/minecraft/command/EntitySelector;getEntities(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/List;intermediary method_9816Lnet/minecraft/class_2300;method_9816(Lnet/minecraft/class_2168;)Ljava/util/List;official bLhi;b(Let;)Ljava/util/List;
-
appendEntitiesFromWorld
private void appendEntitiesFromWorld(List<Entity> entities, ServerWorld world, @Nullable @Nullable Box box, Predicate<Entity> predicate) - Mappings:
Namespace Name Mixin selector named appendEntitiesFromWorldLnet/minecraft/command/EntitySelector;appendEntitiesFromWorld(Ljava/util/List;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Vintermediary method_9823Lnet/minecraft/class_2300;method_9823(Ljava/util/List;Lnet/minecraft/class_3218;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Vofficial aLhi;a(Ljava/util/List;Laqu;Lewx;Ljava/util/function/Predicate;)V
-
getAppendLimit
private int getAppendLimit()- Mappings:
Namespace Name Mixin selector named getAppendLimitLnet/minecraft/command/EntitySelector;getAppendLimit()Iintermediary method_47803Lnet/minecraft/class_2300;method_47803()Iofficial fLhi;f()I
-
getPlayer
public ServerPlayerEntity getPlayer(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getPlayerLnet/minecraft/command/EntitySelector;getPlayer(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/server/network/ServerPlayerEntity;intermediary method_9811Lnet/minecraft/class_2300;method_9811(Lnet/minecraft/class_2168;)Lnet/minecraft/class_3222;official cLhi;c(Let;)Laqv;
-
getPlayers
public List<ServerPlayerEntity> getPlayers(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getPlayersLnet/minecraft/command/EntitySelector;getPlayers(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/List;intermediary method_9813Lnet/minecraft/class_2300;method_9813(Lnet/minecraft/class_2168;)Ljava/util/List;official dLhi;d(Let;)Ljava/util/List;
-
getOffsetBox
- Mappings:
Namespace Name Mixin selector named getOffsetBoxLnet/minecraft/command/EntitySelector;getOffsetBox(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Box;intermediary method_61160Lnet/minecraft/class_2300;method_61160(Lnet/minecraft/class_243;)Lnet/minecraft/class_238;official aLhi;a(Lexc;)Lewx;
-
getPositionPredicate
private Predicate<Entity> getPositionPredicate(Vec3d pos, @Nullable @Nullable Box box, @Nullable @Nullable FeatureSet enabledFeatures) - Mappings:
Namespace Name Mixin selector named getPositionPredicateLnet/minecraft/command/EntitySelector;getPositionPredicate(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Box;Lnet/minecraft/resource/featuretoggle/FeatureSet;)Ljava/util/function/Predicate;intermediary method_9817Lnet/minecraft/class_2300;method_9817(Lnet/minecraft/class_243;Lnet/minecraft/class_238;Lnet/minecraft/class_7699;)Ljava/util/function/Predicate;official aLhi;a(Lexc;Lewx;Lcpl;)Ljava/util/function/Predicate;
-
getEntities
- Mappings:
Namespace Name Mixin selector named getEntitiesLnet/minecraft/command/EntitySelector;getEntities(Lnet/minecraft/util/math/Vec3d;Ljava/util/List;)Ljava/util/List;intermediary method_9814Lnet/minecraft/class_2300;method_9814(Lnet/minecraft/class_243;Ljava/util/List;)Ljava/util/List;official aLhi;a(Lexc;Ljava/util/List;)Ljava/util/List;
-
getNames
- Mappings:
Namespace Name Mixin selector named getNamesLnet/minecraft/command/EntitySelector;getNames(Ljava/util/List;)Lnet/minecraft/text/Text;intermediary method_9822Lnet/minecraft/class_2300;method_9822(Ljava/util/List;)Lnet/minecraft/class_2561;official aLhi;a(Ljava/util/List;)Lwz;
-