Package net.minecraft.world
Interface BlockView
- All Superinterfaces:
HeightLimitView
- All Known Subinterfaces:
BlockRenderView,Chunk,CollisionView,LunarWorldView,RegistryWorldView,ServerWorldAccess,StructureWorldAccess,WorldAccess,WorldView
- All Known Implementing Classes:
ChunkCache,ChunkRegion,ChunkRendererRegion,ClientWorld,EmptyBlockView,EmptyChunk,ProtoChunk,ReadOnlyChunk,ServerWorld,World,WorldChunk
Represents a scoped, read-only view of block states, fluid states and block entities.
- Mappings:
Namespace Name official bvtintermediary net/minecraft/class_1922named net/minecraft/world/BlockView
-
Method Summary
Modifier and TypeMethodDescriptiongetBlockEntity(BlockPos pos)default <T extends BlockEntity>
Optional<T>getBlockEntity(BlockPos pos, BlockEntityType<T> type)getBlockState(BlockPos pos)default doublegetDismountHeight(BlockPos pos)default doublegetDismountHeight(VoxelShape blockCollisionShape, Supplier<VoxelShape> belowBlockCollisionShapeGetter)getFluidState(BlockPos pos)default intgetLuminance(BlockPos pos)default intdefault Stream<BlockState>getStatesInBox(Box box)static <T, C> Traycast(Vec3d start, Vec3d end, C context, BiFunction<C,BlockPos,T> blockHitFactory, Function<C,T> missFactory)default BlockHitResultraycast(BlockStateRaycastContext context)default BlockHitResultraycast(RaycastContext context)default @Nullable BlockHitResultraycastBlock(Vec3d start, Vec3d end, BlockPos pos, VoxelShape shape, BlockState state)Methods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getBottomY, getHeight, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Method Details
-
getBlockEntity
- Mappings:
Namespace Name Mixin selector official c_Lbvt;c_(Lgg;)Lcip;intermediary method_8321Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;named getBlockEntityLnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
-
getBlockEntity
- Mappings:
Namespace Name Mixin selector official aLbvt;a(Lgg;Lcir;)Ljava/util/Optional;intermediary method_35230Lnet/minecraft/class_1922;method_35230(Lnet/minecraft/class_2338;Lnet/minecraft/class_2591;)Ljava/util/Optional;named getBlockEntityLnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/BlockEntityType;)Ljava/util/Optional;
-
getBlockState
- Mappings:
Namespace Name Mixin selector official a_Lbvt;a_(Lgg;)Lcks;intermediary method_8320Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getBlockStateLnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getFluidState
- Mappings:
Namespace Name Mixin selector official b_Lbvt;b_(Lgg;)Ldes;intermediary method_8316Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;named getFluidStateLnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
-
getLuminance
- Mappings:
Namespace Name Mixin selector official hLbvt;h(Lgg;)Iintermediary method_8317Lnet/minecraft/class_1922;method_8317(Lnet/minecraft/class_2338;)Inamed getLuminanceLnet/minecraft/world/BlockView;getLuminance(Lnet/minecraft/util/math/BlockPos;)I
-
getMaxLightLevel
default int getMaxLightLevel()- Mappings:
Namespace Name Mixin selector official OLbvt;O()Iintermediary method_8315Lnet/minecraft/class_1922;method_8315()Inamed getMaxLightLevelLnet/minecraft/world/BlockView;getMaxLightLevel()I
-
getStatesInBox
- Mappings:
Namespace Name Mixin selector official aLbvt;a(Ldmv;)Ljava/util/stream/Stream;intermediary method_29546Lnet/minecraft/class_1922;method_29546(Lnet/minecraft/class_238;)Ljava/util/stream/Stream;named getStatesInBoxLnet/minecraft/world/BlockView;getStatesInBox(Lnet/minecraft/util/math/Box;)Ljava/util/stream/Stream;
-
raycast
- Mappings:
Namespace Name Mixin selector official aLbvt;a(Lbvw;)Ldmw;intermediary method_32880Lnet/minecraft/class_1922;method_32880(Lnet/minecraft/class_5702;)Lnet/minecraft/class_3965;named raycastLnet/minecraft/world/BlockView;raycast(Lnet/minecraft/world/BlockStateRaycastContext;)Lnet/minecraft/util/hit/BlockHitResult;
-
raycast
- Mappings:
Namespace Name Mixin selector official aLbvt;a(Lbvx;)Ldmw;intermediary method_17742Lnet/minecraft/class_1922;method_17742(Lnet/minecraft/class_3959;)Lnet/minecraft/class_3965;named raycastLnet/minecraft/world/BlockView;raycast(Lnet/minecraft/world/RaycastContext;)Lnet/minecraft/util/hit/BlockHitResult;
-
raycastBlock
@Nullable default @Nullable BlockHitResult raycastBlock(Vec3d start, Vec3d end, BlockPos pos, VoxelShape shape, BlockState state)- Mappings:
Namespace Name Mixin selector official aLbvt;a(Ldna;Ldna;Lgg;Ldnt;Lcks;)Ldmw;intermediary method_17745Lnet/minecraft/class_1922;method_17745(Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_2338;Lnet/minecraft/class_265;Lnet/minecraft/class_2680;)Lnet/minecraft/class_3965;named raycastBlockLnet/minecraft/world/BlockView;raycastBlock(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/hit/BlockHitResult;
-
getDismountHeight
default double getDismountHeight(VoxelShape blockCollisionShape, Supplier<VoxelShape> belowBlockCollisionShapeGetter)- Mappings:
Namespace Name Mixin selector official aLbvt;a(Ldnt;Ljava/util/function/Supplier;)Dintermediary method_30346Lnet/minecraft/class_1922;method_30346(Lnet/minecraft/class_265;Ljava/util/function/Supplier;)Dnamed getDismountHeightLnet/minecraft/world/BlockView;getDismountHeight(Lnet/minecraft/util/shape/VoxelShape;Ljava/util/function/Supplier;)D
-
getDismountHeight
- Mappings:
Namespace Name Mixin selector official iLbvt;i(Lgg;)Dintermediary method_30347Lnet/minecraft/class_1922;method_30347(Lnet/minecraft/class_2338;)Dnamed getDismountHeightLnet/minecraft/world/BlockView;getDismountHeight(Lnet/minecraft/util/math/BlockPos;)D
-
raycast
static <T, C> T raycast(Vec3d start, Vec3d end, C context, BiFunction<C,BlockPos,T> blockHitFactory, Function<C,T> missFactory)- Mappings:
Namespace Name Mixin selector official aLbvt;a(Ldna;Ldna;Ljava/lang/Object;Ljava/util/function/BiFunction;Ljava/util/function/Function;)Ljava/lang/Object;intermediary method_17744Lnet/minecraft/class_1922;method_17744(Lnet/minecraft/class_243;Lnet/minecraft/class_243;Ljava/lang/Object;Ljava/util/function/BiFunction;Ljava/util/function/Function;)Ljava/lang/Object;named raycastLnet/minecraft/world/BlockView;raycast(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Ljava/lang/Object;Ljava/util/function/BiFunction;Ljava/util/function/Function;)Ljava/lang/Object;
-