Class EntitySelector

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

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

    • field_33068

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

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

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

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

      private final boolean localWorldOnly
      Mappings:
      Namespace Name Mixin selector
      official e Lfm;e:Z
      intermediary field_10829 Lnet/minecraft/class_2300;field_10829:Z
      named localWorldOnly Lnet/minecraft/command/EntitySelector;localWorldOnly:Z
    • basePredicate

      private final Predicate<Entity> basePredicate
      Mappings:
      Namespace Name Mixin selector
      official f Lfm;f:Ljava/util/function/Predicate;
      intermediary field_10820 Lnet/minecraft/class_2300;field_10820:Ljava/util/function/Predicate;
      named basePredicate Lnet/minecraft/command/EntitySelector;basePredicate:Ljava/util/function/Predicate;
    • distance

      private final NumberRange.FloatRange distance
      Mappings:
      Namespace Name Mixin selector
      official g Lfm;g:Lch$c;
      intermediary field_10825 Lnet/minecraft/class_2300;field_10825:Lnet/minecraft/class_2096$class_2099;
      named distance Lnet/minecraft/command/EntitySelector;distance:Lnet/minecraft/predicate/NumberRange$FloatRange;
    • positionOffset

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

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

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

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

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

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

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

      private final boolean usesAt
      Mappings:
      Namespace Name Mixin selector
      official o Lfm;o:Z
      intermediary field_10827 Lnet/minecraft/class_2300;field_10827:Z
      named usesAt Lnet/minecraft/command/EntitySelector;usesAt:Z
  • Constructor Details

    • EntitySelector

      public EntitySelector(int count, boolean includesNonPlayers, boolean localWorldOnly, Predicate<Entity> basePredicate, NumberRange.FloatRange 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
      official <init> Lfm;<init>(IZZLjava/util/function/Predicate;Lch$c;Ljava/util/function/Function;Ldmv;Ljava/util/function/BiConsumer;ZLjava/lang/String;Ljava/util/UUID;Latj;Z)V
      intermediary <init> Lnet/minecraft/class_2300;<init>(IZZLjava/util/function/Predicate;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
      named <init> Lnet/minecraft/command/EntitySelector;<init>(IZZLjava/util/function/Predicate;Lnet/minecraft/predicate/NumberRange$FloatRange;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
  • Method Details

    • getLimit

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

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

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

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

      public boolean usesAt()
      Mappings:
      Namespace Name Mixin selector
      official e Lfm;e()Z
      intermediary method_35815 Lnet/minecraft/class_2300;method_35815()Z
      named usesAt Lnet/minecraft/command/EntitySelector;usesAt()Z
    • checkSourcePermission

      private void checkSourcePermission(ServerCommandSource serverCommandSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official e Lfm;e(Ldl;)V
      intermediary method_9818 Lnet/minecraft/class_2300;method_9818(Lnet/minecraft/class_2168;)V
      named checkSourcePermission Lnet/minecraft/command/EntitySelector;checkSourcePermission(Lnet/minecraft/server/command/ServerCommandSource;)V
    • getEntity

      public Entity getEntity(ServerCommandSource serverCommandSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lfm;a(Ldl;)Latf;
      intermediary method_9809 Lnet/minecraft/class_2300;method_9809(Lnet/minecraft/class_2168;)Lnet/minecraft/class_1297;
      named getEntity Lnet/minecraft/command/EntitySelector;getEntity(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/entity/Entity;
    • getEntities

      public List<? extends Entity> getEntities(ServerCommandSource serverCommandSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official b Lfm;b(Ldl;)Ljava/util/List;
      intermediary method_9816 Lnet/minecraft/class_2300;method_9816(Lnet/minecraft/class_2168;)Ljava/util/List;
      named getEntities Lnet/minecraft/command/EntitySelector;getEntities(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/List;
    • appendEntitiesFromWorld

      private void appendEntitiesFromWorld(List<Entity> list, ServerWorld serverWorld, Vec3d vec3d, Predicate<Entity> predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lfm;a(Ljava/util/List;Labr;Ldna;Ljava/util/function/Predicate;)V
      intermediary method_9823 Lnet/minecraft/class_2300;method_9823(Ljava/util/List;Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Ljava/util/function/Predicate;)V
      named appendEntitiesFromWorld Lnet/minecraft/command/EntitySelector;appendEntitiesFromWorld(Ljava/util/List;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;Ljava/util/function/Predicate;)V
    • getPlayer

      public ServerPlayerEntity getPlayer(ServerCommandSource serverCommandSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official c Lfm;c(Ldl;)Labs;
      intermediary method_9811 Lnet/minecraft/class_2300;method_9811(Lnet/minecraft/class_2168;)Lnet/minecraft/class_3222;
      named getPlayer Lnet/minecraft/command/EntitySelector;getPlayer(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/server/network/ServerPlayerEntity;
    • getPlayers

      public List<ServerPlayerEntity> getPlayers(ServerCommandSource serverCommandSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official d Lfm;d(Ldl;)Ljava/util/List;
      intermediary method_9813 Lnet/minecraft/class_2300;method_9813(Lnet/minecraft/class_2168;)Ljava/util/List;
      named getPlayers Lnet/minecraft/command/EntitySelector;getPlayers(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/List;
    • getPositionPredicate

      private Predicate<Entity> getPositionPredicate(Vec3d vec3d)
      Mappings:
      Namespace Name Mixin selector
      official a Lfm;a(Ldna;)Ljava/util/function/Predicate;
      intermediary method_9817 Lnet/minecraft/class_2300;method_9817(Lnet/minecraft/class_243;)Ljava/util/function/Predicate;
      named getPositionPredicate Lnet/minecraft/command/EntitySelector;getPositionPredicate(Lnet/minecraft/util/math/Vec3d;)Ljava/util/function/Predicate;
    • getEntities

      private <T extends Entity> List<T> getEntities(Vec3d vec3d, List<T> list)
      Mappings:
      Namespace Name Mixin selector
      official a Lfm;a(Ldna;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;
      named getEntities Lnet/minecraft/command/EntitySelector;getEntities(Lnet/minecraft/util/math/Vec3d;Ljava/util/List;)Ljava/util/List;
    • getNames

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