Interface RegistryWorldView

All Superinterfaces:
BiomeAccess.Storage, BlockRenderView, BlockView, CollisionView, EntityView, HeightLimitView, ModifiableTestableWorld, ModifiableWorld, RedstoneView, TestableWorld, WorldView
All Known Subinterfaces:
ServerWorldAccess, StructureWorldAccess, WorldAccess
All Known Implementing Classes:
ChunkRegion, ClientWorld, ServerWorld, World

public interface RegistryWorldView extends EntityView, WorldView, ModifiableTestableWorld
A world view or World's superinterface that exposes access to a registry manager.
See Also:
Mappings:
Namespace Name
named net/minecraft/world/RegistryWorldView
intermediary net/minecraft/class_5423
official dgs
  • Method Details

    • getBlockEntity

      default <T extends BlockEntity> Optional<T> getBlockEntity(BlockPos pos, BlockEntityType<T> type)
      Specified by:
      getBlockEntity in interface BlockView
      Specified by:
      getBlockEntity in interface TestableWorld
      Mappings:
      Namespace Name Mixin selector
      named getBlockEntity Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/BlockEntityType;)Ljava/util/Optional;
      intermediary method_35230 Lnet/minecraft/class_1922;method_35230(Lnet/minecraft/class_2338;Lnet/minecraft/class_2591;)Ljava/util/Optional;
      official a Ldgm;a(Ljh;Lduy;)Ljava/util/Optional;
    • getEntityCollisions

      default List<VoxelShape> getEntityCollisions(@Nullable @Nullable Entity entity, Box box)
      Specified by:
      getEntityCollisions in interface CollisionView
      Specified by:
      getEntityCollisions in interface EntityView
      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;
    • doesNotIntersectEntities

      default boolean doesNotIntersectEntities(@Nullable @Nullable Entity except, VoxelShape shape)
      Returns true if shape does not intersect with non-spectator entities except except.
      Specified by:
      doesNotIntersectEntities in interface CollisionView
      Specified by:
      doesNotIntersectEntities in interface EntityView
      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
    • getTopPosition

      default BlockPos getTopPosition(Heightmap.Type heightmap, BlockPos pos)
      Returns the position of the topmost block in the column containing pos using heightmap heightmap.
      Specified by:
      getTopPosition in interface TestableWorld
      Specified by:
      getTopPosition in interface WorldView
      Returns:
      the position of the topmost block in the column containing pos using heightmap heightmap
      Mappings:
      Namespace Name Mixin selector
      named getTopPosition Lnet/minecraft/world/WorldView;getTopPosition(Lnet/minecraft/world/Heightmap$Type;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
      intermediary method_8598 Lnet/minecraft/class_4538;method_8598(Lnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
      official a Ldhk;a(Ledp$a;Ljh;)Ljh;