Interface EntityView

All Known Subinterfaces:
EntityLookupView, RegistryWorldView, ServerWorldAccess, StructureWorldAccess, WorldAccess
All Known Implementing Classes:
ChunkRegion, ClientWorld, ServerWorld, World

public interface EntityView
Mappings:
Namespace Name
named net/minecraft/world/EntityView
intermediary net/minecraft/class_1924
official dgy
  • Method Details

    • getOtherEntities

      List<Entity> getOtherEntities(@Nullable @Nullable Entity except, Box box, Predicate<? super Entity> predicate)
      Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.
      Parameters:
      except - the entity the box logically surrounds; this entity is ignored if it is inside the box
      box - the box in which to search for entities
      predicate - a predicate which entities must satisfy in order to be included in the returned list
      Returns:
      a list of entities within a box, excluding the given entity, all satisfying the given predicate
      Mappings:
      Namespace Name Mixin selector
      named getOtherEntities Lnet/minecraft/world/EntityView;getOtherEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;
      intermediary method_8333 Lnet/minecraft/class_1924;method_8333(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;
      official a Ldgy;a(Lbvj;Lfbs;Ljava/util/function/Predicate;)Ljava/util/List;
    • getEntitiesByType

      <T extends Entity> List<T> getEntitiesByType(TypeFilter<Entity,T> filter, Box box, Predicate<? super T> predicate)
      Mappings:
      Namespace Name Mixin selector
      named getEntitiesByType Lnet/minecraft/world/EntityView;getEntitiesByType(Lnet/minecraft/util/TypeFilter;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;
      intermediary method_18023 Lnet/minecraft/class_1924;method_18023(Lnet/minecraft/class_5575;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;
      official a Ldgy;a(Lece;Lfbs;Ljava/util/function/Predicate;)Ljava/util/List;
    • getEntitiesByClass

      default <T extends Entity> List<T> getEntitiesByClass(Class<T> entityClass, Box box, Predicate<? super T> predicate)
      Computes a list of entities within some box whose runtime Java class is the same as or is a subclass of the given class.
      Parameters:
      entityClass - the class the list of entities must extend
      box - the box in which to search for entities
      predicate - a predicate which entities must satisfy in order to be included in the returned list
      Returns:
      a list of entities within the box whose runtime class is a subclass of the given class
      Mappings:
      Namespace Name Mixin selector
      named getEntitiesByClass Lnet/minecraft/world/EntityView;getEntitiesByClass(Ljava/lang/Class;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/List;
      intermediary method_8390 Lnet/minecraft/class_1924;method_8390(Ljava/lang/Class;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/List;
      official a Ldgy;a(Ljava/lang/Class;Lfbs;Ljava/util/function/Predicate;)Ljava/util/List;
    • getPlayers

      List<? extends PlayerEntity> getPlayers()
      Mappings:
      Namespace Name Mixin selector
      named getPlayers Lnet/minecraft/world/EntityView;getPlayers()Ljava/util/List;
      intermediary method_18456 Lnet/minecraft/class_1924;method_18456()Ljava/util/List;
      official y Ldgy;y()Ljava/util/List;
    • getOtherEntities

      default List<Entity> getOtherEntities(@Nullable @Nullable Entity except, Box box)
      Computes a list of entities within some box, excluding the given entity, that are not spectators.
      Parameters:
      except - the entity the box logically surrounds; this entity is ignored if it is inside the box
      box - the box in which to search for entities
      Returns:
      a list of entities within a box, excluding the given entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getOtherEntities Lnet/minecraft/world/EntityView;getOtherEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/List;
      intermediary method_8335 Lnet/minecraft/class_1924;method_8335(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/List;
      official a_ Ldgy;a_(Lbvj;Lfbs;)Ljava/util/List;
    • doesNotIntersectEntities

      default boolean doesNotIntersectEntities(@Nullable @Nullable Entity except, VoxelShape shape)
      Returns true if shape does not intersect with non-spectator entities except except.
      Returns:
      true if shape does not intersect with non-spectator entities except except
      Implementation Note:
      This always returns true if shape is empty.
      Mappings:
      Namespace Name Mixin selector
      named doesNotIntersectEntities Lnet/minecraft/world/EntityView;doesNotIntersectEntities(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/shape/VoxelShape;)Z
      intermediary method_8611 Lnet/minecraft/class_1924;method_8611(Lnet/minecraft/class_1297;Lnet/minecraft/class_265;)Z
      official a Ldgy;a(Lbvj;Lfcr;)Z
    • getNonSpectatingEntities

      default <T extends Entity> List<T> getNonSpectatingEntities(Class<T> entityClass, Box box)
      Mappings:
      Namespace Name Mixin selector
      named getNonSpectatingEntities Lnet/minecraft/world/EntityView;getNonSpectatingEntities(Ljava/lang/Class;Lnet/minecraft/util/math/Box;)Ljava/util/List;
      intermediary method_18467 Lnet/minecraft/class_1924;method_18467(Ljava/lang/Class;Lnet/minecraft/class_238;)Ljava/util/List;
      official a Ldgy;a(Ljava/lang/Class;Lfbs;)Ljava/util/List;
    • getEntityCollisions

      default List<VoxelShape> getEntityCollisions(@Nullable @Nullable Entity entity, Box box)
      Mappings:
      Namespace Name Mixin selector
      named getEntityCollisions Lnet/minecraft/world/EntityView;getEntityCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/List;
      intermediary method_20743 Lnet/minecraft/class_1924;method_20743(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/List;
      official c Ldgy;c(Lbvj;Lfbs;)Ljava/util/List;
    • getClosestPlayer

      @Nullable default @Nullable PlayerEntity getClosestPlayer(double x, double y, double z, double maxDistance, @Nullable @Nullable Predicate<Entity> targetPredicate)
      Mappings:
      Namespace Name Mixin selector
      named getClosestPlayer Lnet/minecraft/world/EntityView;getClosestPlayer(DDDDLjava/util/function/Predicate;)Lnet/minecraft/entity/player/PlayerEntity;
      intermediary method_8604 Lnet/minecraft/class_1924;method_8604(DDDDLjava/util/function/Predicate;)Lnet/minecraft/class_1657;
      official a Ldgy;a(DDDDLjava/util/function/Predicate;)Lcpw;
    • getClosestPlayer

      @Nullable default @Nullable PlayerEntity getClosestPlayer(Entity entity, double maxDistance)
      Mappings:
      Namespace Name Mixin selector
      named getClosestPlayer Lnet/minecraft/world/EntityView;getClosestPlayer(Lnet/minecraft/entity/Entity;D)Lnet/minecraft/entity/player/PlayerEntity;
      intermediary method_18460 Lnet/minecraft/class_1924;method_18460(Lnet/minecraft/class_1297;D)Lnet/minecraft/class_1657;
      official a Ldgy;a(Lbvj;D)Lcpw;
    • getClosestPlayer

      @Nullable default @Nullable PlayerEntity getClosestPlayer(double x, double y, double z, double maxDistance, boolean ignoreCreative)
      Mappings:
      Namespace Name Mixin selector
      named getClosestPlayer Lnet/minecraft/world/EntityView;getClosestPlayer(DDDDZ)Lnet/minecraft/entity/player/PlayerEntity;
      intermediary method_18459 Lnet/minecraft/class_1924;method_18459(DDDDZ)Lnet/minecraft/class_1657;
      official a Ldgy;a(DDDDZ)Lcpw;
    • isPlayerInRange

      default boolean isPlayerInRange(double x, double y, double z, double range)
      Mappings:
      Namespace Name Mixin selector
      named isPlayerInRange Lnet/minecraft/world/EntityView;isPlayerInRange(DDDD)Z
      intermediary method_18458 Lnet/minecraft/class_1924;method_18458(DDDD)Z
      official a Ldgy;a(DDDD)Z
    • getPlayerByUuid

      @Nullable default @Nullable PlayerEntity getPlayerByUuid(UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      named getPlayerByUuid Lnet/minecraft/world/EntityView;getPlayerByUuid(Ljava/util/UUID;)Lnet/minecraft/entity/player/PlayerEntity;
      intermediary method_18470 Lnet/minecraft/class_1924;method_18470(Ljava/util/UUID;)Lnet/minecraft/class_1657;
      official b Ldgy;b(Ljava/util/UUID;)Lcpw;