Class EntitySelector

java.lang.Object
net.minecraft.command.EntitySelector

public class EntitySelector extends Object
Mappings:
Namespace Name
named net/minecraft/command/EntitySelector
intermediary net/minecraft/class_2300
official hl
  • Field Details

    • MAX_VALUE

      public static final int MAX_VALUE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_VALUE Lnet/minecraft/command/EntitySelector;MAX_VALUE:I
      intermediary field_33068 Lnet/minecraft/class_2300;field_33068:I
      official a Lhl;a:I
    • ARBITRARY

      public static final BiConsumer<Vec3d,List<? extends Entity>> ARBITRARY
      Mappings:
      Namespace Name Mixin selector
      named ARBITRARY Lnet/minecraft/command/EntitySelector;ARBITRARY:Ljava/util/function/BiConsumer;
      intermediary field_41524 Lnet/minecraft/class_2300;field_41524:Ljava/util/function/BiConsumer;
      official b Lhl;b:Ljava/util/function/BiConsumer;
    • PASSTHROUGH_FILTER

      private static final TypeFilter<Entity,?> PASSTHROUGH_FILTER
      Mappings:
      Namespace Name Mixin selector
      named PASSTHROUGH_FILTER Lnet/minecraft/command/EntitySelector;PASSTHROUGH_FILTER:Lnet/minecraft/util/TypeFilter;
      intermediary field_27774 Lnet/minecraft/class_2300;field_27774:Lnet/minecraft/class_5575;
      official c Lhl;c:Lece;
    • limit

      private final int limit
      Mappings:
      Namespace Name Mixin selector
      named limit Lnet/minecraft/command/EntitySelector;limit:I
      intermediary field_10822 Lnet/minecraft/class_2300;field_10822:I
      official d Lhl;d:I
    • includesNonPlayers

      private final boolean includesNonPlayers
      Mappings:
      Namespace Name Mixin selector
      named includesNonPlayers Lnet/minecraft/command/EntitySelector;includesNonPlayers:Z
      intermediary field_10830 Lnet/minecraft/class_2300;field_10830:Z
      official e Lhl;e:Z
    • localWorldOnly

      private final boolean localWorldOnly
      Mappings:
      Namespace Name Mixin selector
      named localWorldOnly Lnet/minecraft/command/EntitySelector;localWorldOnly:Z
      intermediary field_10829 Lnet/minecraft/class_2300;field_10829:Z
      official f Lhl;f:Z
    • predicates

      private final List<Predicate<Entity>> predicates
      Mappings:
      Namespace Name Mixin selector
      named predicates Lnet/minecraft/command/EntitySelector;predicates:Ljava/util/List;
      intermediary field_52308 Lnet/minecraft/class_2300;field_52308:Ljava/util/List;
      official g Lhl;g:Ljava/util/List;
    • distance

      private final NumberRange.DoubleRange distance
      Mappings:
      Namespace Name Mixin selector
      named distance Lnet/minecraft/command/EntitySelector;distance:Lnet/minecraft/predicate/NumberRange$DoubleRange;
      intermediary field_10825 Lnet/minecraft/class_2300;field_10825:Lnet/minecraft/class_2096$class_2099;
      official h Lhl;h:Ldj$c;
    • positionOffset

      private final Function<Vec3d,Vec3d> positionOffset
      Mappings:
      Namespace Name Mixin selector
      named positionOffset Lnet/minecraft/command/EntitySelector;positionOffset:Ljava/util/function/Function;
      intermediary field_10823 Lnet/minecraft/class_2300;field_10823:Ljava/util/function/Function;
      official i Lhl;i:Ljava/util/function/Function;
    • box

      @Nullable private final @Nullable Box box
      Mappings:
      Namespace Name Mixin selector
      named box Lnet/minecraft/command/EntitySelector;box:Lnet/minecraft/util/math/Box;
      intermediary field_10824 Lnet/minecraft/class_2300;field_10824:Lnet/minecraft/class_238;
      official j Lhl;j:Lfbs;
    • sorter

      private final BiConsumer<Vec3d,List<? extends Entity>> sorter
      Mappings:
      Namespace Name Mixin selector
      named sorter Lnet/minecraft/command/EntitySelector;sorter:Ljava/util/function/BiConsumer;
      intermediary field_10826 Lnet/minecraft/class_2300;field_10826:Ljava/util/function/BiConsumer;
      official k Lhl;k:Ljava/util/function/BiConsumer;
    • senderOnly

      private final boolean senderOnly
      Mappings:
      Namespace Name Mixin selector
      named senderOnly Lnet/minecraft/command/EntitySelector;senderOnly:Z
      intermediary field_10828 Lnet/minecraft/class_2300;field_10828:Z
      official l Lhl;l:Z
    • playerName

      @Nullable private final @Nullable String playerName
      Mappings:
      Namespace Name Mixin selector
      named playerName Lnet/minecraft/command/EntitySelector;playerName:Ljava/lang/String;
      intermediary field_10831 Lnet/minecraft/class_2300;field_10831:Ljava/lang/String;
      official m Lhl;m:Ljava/lang/String;
    • uuid

      @Nullable private final @Nullable UUID uuid
      Mappings:
      Namespace Name Mixin selector
      named uuid Lnet/minecraft/command/EntitySelector;uuid:Ljava/util/UUID;
      intermediary field_10821 Lnet/minecraft/class_2300;field_10821:Ljava/util/UUID;
      official n Lhl;n:Ljava/util/UUID;
    • entityFilter

      private final TypeFilter<Entity,?> entityFilter
      Mappings:
      Namespace Name Mixin selector
      named entityFilter Lnet/minecraft/command/EntitySelector;entityFilter:Lnet/minecraft/util/TypeFilter;
      intermediary field_10832 Lnet/minecraft/class_2300;field_10832:Lnet/minecraft/class_5575;
      official o Lhl;o:Lece;
    • usesAt

      private final boolean usesAt
      Mappings:
      Namespace Name Mixin selector
      named usesAt Lnet/minecraft/command/EntitySelector;usesAt:Z
      intermediary field_10827 Lnet/minecraft/class_2300;field_10827:Z
      official p Lhl;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)V
      intermediary <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)V
      official <init> Lhl;<init>(IZZLjava/util/List;Ldj$c;Ljava/util/function/Function;Lfbs;Ljava/util/function/BiConsumer;ZLjava/lang/String;Ljava/util/UUID;Lbvq;Z)V
  • Method Details

    • getLimit

      public int getLimit()
      Mappings:
      Namespace Name Mixin selector
      named getLimit Lnet/minecraft/command/EntitySelector;getLimit()I
      intermediary method_9815 Lnet/minecraft/class_2300;method_9815()I
      official a Lhl;a()I
    • includesNonPlayers

      public boolean includesNonPlayers()
      Mappings:
      Namespace Name Mixin selector
      named includesNonPlayers Lnet/minecraft/command/EntitySelector;includesNonPlayers()Z
      intermediary method_9819 Lnet/minecraft/class_2300;method_9819()Z
      official b Lhl;b()Z
    • isSenderOnly

      public boolean isSenderOnly()
      Mappings:
      Namespace Name Mixin selector
      named isSenderOnly Lnet/minecraft/command/EntitySelector;isSenderOnly()Z
      intermediary method_9820 Lnet/minecraft/class_2300;method_9820()Z
      official c Lhl;c()Z
    • isLocalWorldOnly

      public boolean isLocalWorldOnly()
      Mappings:
      Namespace Name Mixin selector
      named isLocalWorldOnly Lnet/minecraft/command/EntitySelector;isLocalWorldOnly()Z
      intermediary method_9821 Lnet/minecraft/class_2300;method_9821()Z
      official d Lhl;d()Z
    • usesAt

      public boolean usesAt()
      Mappings:
      Namespace Name Mixin selector
      named usesAt Lnet/minecraft/command/EntitySelector;usesAt()Z
      intermediary method_35815 Lnet/minecraft/class_2300;method_35815()Z
      official e Lhl;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 checkSourcePermission Lnet/minecraft/command/EntitySelector;checkSourcePermission(Lnet/minecraft/server/command/ServerCommandSource;)V
      intermediary method_9818 Lnet/minecraft/class_2300;method_9818(Lnet/minecraft/class_2168;)V
      official e Lhl;e(Lew;)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 getEntity Lnet/minecraft/command/EntitySelector;getEntity(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/entity/Entity;
      intermediary method_9809 Lnet/minecraft/class_2300;method_9809(Lnet/minecraft/class_2168;)Lnet/minecraft/class_1297;
      official a Lhl;a(Lew;)Lbvj;
    • 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 getEntities Lnet/minecraft/command/EntitySelector;getEntities(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/List;
      intermediary method_9816 Lnet/minecraft/class_2300;method_9816(Lnet/minecraft/class_2168;)Ljava/util/List;
      official b Lhl;b(Lew;)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 appendEntitiesFromWorld Lnet/minecraft/command/EntitySelector;appendEntitiesFromWorld(Ljava/util/List;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)V
      intermediary method_9823 Lnet/minecraft/class_2300;method_9823(Ljava/util/List;Lnet/minecraft/class_3218;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)V
      official a Lhl;a(Ljava/util/List;Lash;Lfbs;Ljava/util/function/Predicate;)V
    • getAppendLimit

      private int getAppendLimit()
      Mappings:
      Namespace Name Mixin selector
      named getAppendLimit Lnet/minecraft/command/EntitySelector;getAppendLimit()I
      intermediary method_47803 Lnet/minecraft/class_2300;method_47803()I
      official f Lhl;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 getPlayer Lnet/minecraft/command/EntitySelector;getPlayer(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/server/network/ServerPlayerEntity;
      intermediary method_9811 Lnet/minecraft/class_2300;method_9811(Lnet/minecraft/class_2168;)Lnet/minecraft/class_3222;
      official c Lhl;c(Lew;)Lasi;
    • 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 getPlayers Lnet/minecraft/command/EntitySelector;getPlayers(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/List;
      intermediary method_9813 Lnet/minecraft/class_2300;method_9813(Lnet/minecraft/class_2168;)Ljava/util/List;
      official d Lhl;d(Lew;)Ljava/util/List;
    • getOffsetBox

      @Nullable private @Nullable Box getOffsetBox(Vec3d offset)
      Mappings:
      Namespace Name Mixin selector
      named getOffsetBox Lnet/minecraft/command/EntitySelector;getOffsetBox(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Box;
      intermediary method_61160 Lnet/minecraft/class_2300;method_61160(Lnet/minecraft/class_243;)Lnet/minecraft/class_238;
      official a Lhl;a(Lfbx;)Lfbs;
    • getPositionPredicate

      private Predicate<Entity> getPositionPredicate(Vec3d pos, @Nullable @Nullable Box box, @Nullable @Nullable FeatureSet enabledFeatures)
      Mappings:
      Namespace Name Mixin selector
      named getPositionPredicate Lnet/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_9817 Lnet/minecraft/class_2300;method_9817(Lnet/minecraft/class_243;Lnet/minecraft/class_238;Lnet/minecraft/class_7699;)Ljava/util/function/Predicate;
      official a Lhl;a(Lfbx;Lfbs;Lcss;)Ljava/util/function/Predicate;
    • getEntities

      private <T extends Entity> List<T> getEntities(Vec3d pos, List<T> entities)
      Mappings:
      Namespace Name Mixin selector
      named getEntities Lnet/minecraft/command/EntitySelector;getEntities(Lnet/minecraft/util/math/Vec3d;Ljava/util/List;)Ljava/util/List;
      intermediary method_9814 Lnet/minecraft/class_2300;method_9814(Lnet/minecraft/class_243;Ljava/util/List;)Ljava/util/List;
      official a Lhl;a(Lfbx;Ljava/util/List;)Ljava/util/List;
    • getNames

      public static Text getNames(List<? extends Entity> entities)
      Mappings:
      Namespace Name Mixin selector
      named getNames Lnet/minecraft/command/EntitySelector;getNames(Ljava/util/List;)Lnet/minecraft/text/Text;
      intermediary method_9822 Lnet/minecraft/class_2300;method_9822(Ljava/util/List;)Lnet/minecraft/class_2561;
      official a Lhl;a(Ljava/util/List;)Lxv;