Package net.minecraft.world
Interface BlockView
- All Superinterfaces:
HeightLimitView
- All Known Subinterfaces:
BlockRenderView
,Chunk
,class_5423
,CollisionView
,LunarWorldView
,ServerWorldAccess
,StructureWorldAccess
,WorldAccess
,WorldView
- All Known Implementing Classes:
ChunkCache
,ChunkRegion
,ChunkRendererRegion
,ClientWorld
,EmptyBlockView
,EmptyChunk
,ProtoChunk
,ReadOnlyChunk
,ServerWorld
,World
,WorldChunk
public interface BlockView extends HeightLimitView
Represents a scoped, read-only view of block states, fluid states and block entities.
- Mappings:
Namespace Name official bsz
intermediary net/minecraft/class_1922
named net/minecraft/world/BlockView
-
Method Summary
Modifier and Type Method Description BlockEntity
getBlockEntity(BlockPos pos)
BlockState
getBlockState(BlockPos pos)
default double
getDismountHeight(BlockPos pos)
default double
getDismountHeight(VoxelShape blockCollisionShape, Supplier<VoxelShape> belowBlockCollisionShapeGetter)
FluidState
getFluidState(BlockPos pos)
default int
getLuminance(BlockPos pos)
default int
getMaxLightLevel()
default Stream<BlockState>
getStatesInBox(Box box)
static <T, C> T
raycast(Vec3d start, Vec3d end, C context, BiFunction<C,BlockPos,T> blockHitFactory, Function<C,T> missFactory)
default BlockHitResult
raycast(BlockStateRaycastContext context)
default BlockHitResult
raycast(RaycastContext context)
default BlockHitResult
raycastBlock(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
Lbsz;c(Lfx;)Lcfr;
intermediary method_8321
Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
named getBlockEntity
Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
-
getBlockState
- Mappings:
Namespace Name Mixin selector official d_
Lbsz;d_(Lfx;)Lcht;
intermediary method_8320
Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
named getBlockState
Lnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getFluidState
- Mappings:
Namespace Name Mixin selector official b
Lbsz;b(Lfx;)Ldal;
intermediary method_8316
Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
named getFluidState
Lnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
-
getLuminance
- Mappings:
Namespace Name Mixin selector official f
Lbsz;f(Lfx;)I
intermediary method_8317
Lnet/minecraft/class_1922;method_8317(Lnet/minecraft/class_2338;)I
named getLuminance
Lnet/minecraft/world/BlockView;getLuminance(Lnet/minecraft/util/math/BlockPos;)I
-
getMaxLightLevel
default int getMaxLightLevel()- Mappings:
Namespace Name Mixin selector official O
Lbsz;O()I
intermediary method_8315
Lnet/minecraft/class_1922;method_8315()I
named getMaxLightLevel
Lnet/minecraft/world/BlockView;getMaxLightLevel()I
-
getStatesInBox
- Mappings:
Namespace Name Mixin selector official a
Lbsz;a(Ldip;)Ljava/util/stream/Stream;
intermediary method_29546
Lnet/minecraft/class_1922;method_29546(Lnet/minecraft/class_238;)Ljava/util/stream/Stream;
named getStatesInBox
Lnet/minecraft/world/BlockView;getStatesInBox(Lnet/minecraft/util/math/Box;)Ljava/util/stream/Stream;
-
raycast
- Mappings:
Namespace Name Mixin selector official a
Lbsz;a(Lbtc;)Ldiq;
intermediary method_32880
Lnet/minecraft/class_1922;method_32880(Lnet/minecraft/class_5702;)Lnet/minecraft/class_3965;
named raycast
Lnet/minecraft/world/BlockView;raycast(Lnet/minecraft/world/BlockStateRaycastContext;)Lnet/minecraft/util/hit/BlockHitResult;
-
raycast
- Mappings:
Namespace Name Mixin selector official a
Lbsz;a(Lbtd;)Ldiq;
intermediary method_17742
Lnet/minecraft/class_1922;method_17742(Lnet/minecraft/class_3959;)Lnet/minecraft/class_3965;
named raycast
Lnet/minecraft/world/BlockView;raycast(Lnet/minecraft/world/RaycastContext;)Lnet/minecraft/util/hit/BlockHitResult;
-
raycastBlock
@Nullable default BlockHitResult raycastBlock(Vec3d start, Vec3d end, BlockPos pos, VoxelShape shape, BlockState state)- Mappings:
Namespace Name Mixin selector official a
Lbsz;a(Ldiu;Ldiu;Lfx;Ldjn;Lcht;)Ldiq;
intermediary method_17745
Lnet/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 raycastBlock
Lnet/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 a
Lbsz;a(Ldjn;Ljava/util/function/Supplier;)D
intermediary method_30346
Lnet/minecraft/class_1922;method_30346(Lnet/minecraft/class_265;Ljava/util/function/Supplier;)D
named getDismountHeight
Lnet/minecraft/world/BlockView;getDismountHeight(Lnet/minecraft/util/shape/VoxelShape;Ljava/util/function/Supplier;)D
-
getDismountHeight
- Mappings:
Namespace Name Mixin selector official g
Lbsz;g(Lfx;)D
intermediary method_30347
Lnet/minecraft/class_1922;method_30347(Lnet/minecraft/class_2338;)D
named getDismountHeight
Lnet/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 a
Lbsz;a(Ldiu;Ldiu;Ljava/lang/Object;Ljava/util/function/BiFunction;Ljava/util/function/Function;)Ljava/lang/Object;
intermediary method_17744
Lnet/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 raycast
Lnet/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;
-