Uses of Class
net.minecraft.util.math.Box
Packages that use Box
Package
Description
The basic AI system for Minecraft living entities.
- 
Uses of Box in net.minecraft.blockFields in net.minecraft.block declared as BoxMethods in net.minecraft.block that return BoxModifier and TypeMethodDescriptionprivate BoxDetectorRailBlock.getCartDetectionBox(BlockPos pos) Methods in net.minecraft.block with parameters of type BoxModifier and TypeMethodDescriptionprotected static intAbstractPressurePlateBlock.getEntityCount(World world, Box box, Class<? extends Entity> entityClass) 
- 
Uses of Box in net.minecraft.block.entityFields in net.minecraft.block.entity declared as BoxMethods in net.minecraft.block.entity that return BoxModifier and TypeMethodDescriptionprivate static BoxConduitBlockEntity.getAttackZone(BlockPos pos) ShulkerBoxBlockEntity.getBoundingBox(BlockState state) default BoxHopper.getInputAreaShape()private static BoxPistonBlockEntity.offsetHeadBox(BlockPos pos, Box box, PistonBlockEntity blockEntity) Methods in net.minecraft.block.entity with parameters of type BoxModifier and TypeMethodDescriptionprivate static booleanPistonBlockEntity.canMoveEntity(Box box, Entity entity, BlockPos pos) private static doublePistonBlockEntity.getIntersectionSize(Box box, Direction direction, Box box2) private static BoxPistonBlockEntity.offsetHeadBox(BlockPos pos, Box box, PistonBlockEntity blockEntity) 
- 
Uses of Box in net.minecraft.block.spawnerMethods in net.minecraft.block.spawner with parameters of type BoxModifier and TypeMethodDescriptionEntityDetector.Selector.getEntities(ServerWorld world, TypeFilter<Entity, T> typeFilter, Box box, Predicate<? super T> predicate) 
- 
Uses of Box in net.minecraft.client.particleFields in net.minecraft.client.particle declared as BoxModifier and TypeFieldDescriptionprivate BoxParticle.boundingBoxprivate static final BoxParticle.EMPTY_BOUNDING_BOXMethods in net.minecraft.client.particle that return BoxModifier and TypeMethodDescriptionParticle.getBoundingBox()Returns the boundingBoxof this particle used for collision and movement logic.Methods in net.minecraft.client.particle with parameters of type Box
- 
Uses of Box in net.minecraft.client.renderMethods in net.minecraft.client.render with parameters of type BoxModifier and TypeMethodDescriptionstatic voidVertexRendering.drawBox(MatrixStack matrices, VertexConsumer vertexConsumers, Box box, float red, float green, float blue, float alpha) boolean
- 
Uses of Box in net.minecraft.client.render.chunkFields in net.minecraft.client.render.chunk declared as BoxMethods in net.minecraft.client.render.chunk that return BoxModifier and TypeMethodDescriptionChunkBuilder.BuiltChunk.getBoundingBox()Octree.Branch.getBoundingBox()Octree.Leaf.getBoundingBox()Octree.Node.getBoundingBox()
- 
Uses of Box in net.minecraft.client.render.debugMethods in net.minecraft.client.render.debug with parameters of type BoxModifier and TypeMethodDescriptionstatic voidDebugRenderer.drawBox(MatrixStack matrices, VertexConsumerProvider vertexConsumers, Box box, float red, float green, float blue, float alpha) private static voidGameEventDebugRenderer.drawBoxIfCameraReady(MatrixStack matrices, VertexConsumerProvider vertexConsumers, Box box, float red, float green, float blue, float alpha) 
- 
Uses of Box in net.minecraft.client.render.entityMethods in net.minecraft.client.render.entity that return BoxModifier and TypeMethodDescriptionprotected BoxAbstractMinecartEntityRenderer.getBoundingBox(T t) protected BoxDisplayEntityRenderer.getBoundingBox(T t) protected BoxEntityRenderer.getBoundingBox(T entity) protected BoxIllusionerEntityRenderer.getBoundingBox(IllusionerEntity illusionerEntity) protected BoxLivingEntityRenderer.getBoundingBox(T t) protected BoxSnifferEntityRenderer.getBoundingBox(SnifferEntity snifferEntity) 
- 
Uses of Box in net.minecraft.commandFields in net.minecraft.command declared as BoxMethods in net.minecraft.command that return BoxModifier and TypeMethodDescriptionprivate BoxEntitySelectorReader.createBox(double x, double y, double z) EntitySelector.getOffsetBox(Vec3d offset) Methods in net.minecraft.command with parameters of type BoxModifier and TypeMethodDescriptionprivate voidEntitySelector.appendEntitiesFromWorld(List<Entity> entities, ServerWorld world, @Nullable Box box, Predicate<Entity> predicate) EntitySelector.getPositionPredicate(Vec3d pos, @Nullable Box box, @Nullable FeatureSet enabledFeatures) Constructors in net.minecraft.command with parameters of type BoxModifierConstructorDescriptionEntitySelector(int count, boolean includesNonPlayers, boolean localWorldOnly, List<Predicate<Entity>> predicates, NumberRange.DoubleRange distance, Function<Vec3d, Vec3d> positionOffset, @Nullable Box box, BiConsumer<Vec3d, List<? extends Entity>> sorter, boolean senderOnly, @Nullable String playerName, @Nullable UUID uuid, @Nullable EntityType<?> type, boolean usesAt) 
- 
Uses of Box in net.minecraft.entityFields in net.minecraft.entity declared as BoxModifier and TypeFieldDescriptionprivate BoxEntity.boundingBoxprivate static final BoxEntity.NULL_BOXMethods in net.minecraft.entity that return BoxModifier and TypeMethodDescriptionprotected final BoxEntity.calculateBoundingBox()protected BoxEntity.calculateDefaultBoundingBox(Vec3d pos) final BoxEntity.getBoundingBox()LivingEntity.getBoundingBox(EntityPose pose) EntityDimensions.getBoxAt(double x, double y, double z) protected BoxLivingEntity.getHitbox()Gets the area in which this entity can be attacked by mobs whose attack box overlaps it.EntityType.getSpawnBox(double x, double y, double z) Methods in net.minecraft.entity with parameters of type BoxModifier and TypeMethodDescriptionstatic Vec3dEntity.adjustMovementForCollisions(@Nullable Entity entity, Vec3d movement, Box entityBoundingBox, World world, List<VoxelShape> collisions) private static Vec3dEntity.adjustMovementForCollisions(Vec3d movement, Box entityBoundingBox, List<VoxelShape> collisions) static booleanDismounting.canPlaceEntityAt(CollisionView world, LivingEntity entity, Box targetBox) private static float[]Entity.collectStepHeights(Box collisionBox, List<VoxelShape> collisions, float float2, float stepHeight) private booleanEntity.doesNotCollide(Box box) private static List<VoxelShape> Entity.findCollisionsForMovement(@Nullable Entity entity, World world, List<VoxelShape> regularCollisions, Box movingEntityBoundingBox) protected static doubleEntityType.getOriginY(WorldView world, BlockPos pos, boolean invertY, Box boundingBox) final voidEntity.setBoundingBox(Box boundingBox) protected voidLivingEntity.tickRiptide(Box a, Box b) 
- 
Uses of Box in net.minecraft.entity.ai.goalMethods in net.minecraft.entity.ai.goal that return Box
- 
Uses of Box in net.minecraft.entity.ai.pathingFields in net.minecraft.entity.ai.pathing with type parameters of type BoxModifier and TypeFieldDescriptionprivate final Object2BooleanMap<Box> LandPathNodeMaker.collidedBoxesMethods in net.minecraft.entity.ai.pathing with parameters of type Box
- 
Uses of Box in net.minecraft.entity.boss.dragonMethods in net.minecraft.entity.boss.dragon with parameters of type BoxModifier and TypeMethodDescriptionprivate booleanEnderDragonEntity.destroyBlocks(ServerWorld world, Box box) 
- 
Uses of Box in net.minecraft.entity.decorationFields in net.minecraft.entity.decoration declared as BoxMethods in net.minecraft.entity.decoration that return BoxModifier and TypeMethodDescriptionprotected abstract BoxAbstractDecorationEntity.calculateBoundingBox(BlockPos pos, Direction side) protected BoxItemFrameEntity.calculateBoundingBox(BlockPos pos, Direction side) protected BoxInteractionEntity.calculateDefaultBoundingBox(Vec3d pos) protected BoxAbstractDecorationEntity.getAttachmentBox()DisplayEntity.getVisibilityBoundingBox()
- 
Uses of Box in net.minecraft.entity.decoration.paintingMethods in net.minecraft.entity.decoration.painting that return BoxModifier and TypeMethodDescriptionprotected BoxPaintingEntity.calculateBoundingBox(BlockPos pos, Direction side) 
- 
Uses of Box in net.minecraft.entity.mobMethods in net.minecraft.entity.mob that return BoxModifier and TypeMethodDescriptionstatic BoxShulkerEntity.calculateBoundingBox(float scale, Direction facing, float prevExtraLength, float extraLength, Vec3d pos) static BoxShulkerEntity.calculateBoundingBox(float scale, Direction facing, float extraLength, Vec3d pos) protected BoxShulkerEntity.calculateDefaultBoundingBox(Vec3d pos) protected BoxMobEntity.getAttackBox()Gets the area in which this mob can attack entities whose hitbox intersects it.protected BoxRavagerEntity.getAttackBox()Gets the area in which this mob can attack entities whose hitbox intersects it.protected BoxShulkerEntity.TargetOtherTeamGoal.getSearchBox(double distance) protected BoxShulkerEntity.TargetPlayerGoal.getSearchBox(double distance) 
- 
Uses of Box in net.minecraft.entity.playerMethods in net.minecraft.entity.player with parameters of type BoxModifier and TypeMethodDescriptionbooleanPlayerEntity.canInteractWithEntityIn(Box box, double additionalRange) Returns whether the player can interact with entity whose bounding box isbox.
- 
Uses of Box in net.minecraft.entity.projectileMethods in net.minecraft.entity.projectile that return BoxModifier and TypeMethodDescriptionprotected BoxAbstractWindChargeEntity.calculateDefaultBoundingBox(Vec3d pos) Methods in net.minecraft.entity.projectile with parameters of type BoxModifier and TypeMethodDescriptionstatic @Nullable EntityHitResultProjectileUtil.getEntityCollision(World world, Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate) static @Nullable EntityHitResultProjectileUtil.getEntityCollision(World world, Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, float margin) static @Nullable EntityHitResultProjectileUtil.raycast(Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, double maxDistance) 
- 
Uses of Box in net.minecraft.entity.vehicleMethods in net.minecraft.entity.vehicle that return BoxMethods in net.minecraft.entity.vehicle with parameters of type BoxModifier and TypeMethodDescriptionbooleanExperimentalMinecartController.pickUpEntities(Box box) booleanExperimentalMinecartController.pushAwayFromEntities(Box box) 
- 
Uses of Box in net.minecraft.server.networkMethods in net.minecraft.server.network with parameters of type BoxModifier and TypeMethodDescriptionprivate booleanServerPlayerEntity.canSpawnIn(ServerWorld world, Box box) private booleanServerPlayNetworkHandler.isPlayerNotCollidingWithBlocks(WorldView world, Box box, double newX, double newY, double newZ) 
- 
Uses of Box in net.minecraft.testFields in net.minecraft.test declared as BoxMethods in net.minecraft.test that return BoxModifier and TypeMethodDescriptionTestContext.getAbsolute(Box box) GameTestState.getBoundingBox()TestContext.getRelative(Box box) private BoxTestContext.getRelativeTestBox()static BoxStructureTestUtil.getStructureBoundingBox(StructureBlockBlockEntity structureBlockEntity) TestContext.getTestBox()Methods in net.minecraft.test with parameters of type BoxModifier and TypeMethodDescriptionstatic voidStructureTestUtil.clearBarrierBox(Box box, ServerWorld world) voidTestContext.dontExpectEntityBetween(EntityType<?> type, Box box) voidTestContext.expectEntityIn(Entity entity, Box box, String message) voidTestContext.expectEntityInside(EntityType<?> type, Box box) TestContext.getAbsolute(Box box) TestContext.getRelative(Box box) static voidStructureTestUtil.placeBarrierBox(Box box, ServerWorld world, boolean noSkyAccess) 
- 
Uses of Box in net.minecraft.util.mathMethods in net.minecraft.util.math that return BoxModifier and TypeMethodDescriptionBox.contract(double value) Box.contract(double x, double y, double z) static BoxReturns a box whose bounds extend to the full block betweenpos1andpos2, both inclusive.ImmutableBlockBox.enclosingBox()Box.expand(double value) Box.expand(double x, double y, double z) static Boxstatic BoxBox.intersection(Box box) Creates the maximum box that this box and the given box contain.static BoxBox.offset(double x, double y, double z) Creates a box that is translated byx,y,zon each axis from this box.Creates a box that is translated byblockPos.getX(),blockPos.getY(),blockPos.getZ()on each axis from this box.Creates a box that is translated byvec.x,vec.y,vec.zon each axis from this box.Box.shrink(double x, double y, double z) Box.stretch(double x, double y, double z) static BoxCreates the minimum box that contains this box and the given box.Box.withMaxX(double maxX) Returns a new box with the maximum X provided and all other coordinates of this box.Box.withMaxY(double maxY) Returns a new box with the maximum Y provided and all other coordinates of this box.Box.withMaxZ(double maxZ) Returns a new box with the maximum Z provided and all other coordinates of this box.Box.withMinX(double minX) Returns a new box with the minimum X provided and all other coordinates of this box.Box.withMinY(double minY) Returns a new box with the minimum Y provided and all other coordinates of this box.Box.withMinZ(double minZ) Returns a new box with the minimum Z provided and all other coordinates of this box.Methods in net.minecraft.util.math with parameters of type BoxModifier and TypeMethodDescriptionBox.intersection(Box box) Creates the maximum box that this box and the given box contain.booleanBox.intersects(Box box) Checks if this box intersects the given box.static booleanMathHelper.method_34945(Vec3d origin, Vec3d direction, Box box) static BoxBox.traceCollisionSide(Box box, Vec3d intersectingVector, double[] traceDistanceResult, @Nullable Direction approachDirection, double deltaX, double deltaY, double deltaZ) Creates the minimum box that contains this box and the given box.Method parameters in net.minecraft.util.math with type arguments of type Box
- 
Uses of Box in net.minecraft.util.shapeMethods in net.minecraft.util.shape that return BoxMethods in net.minecraft.util.shape that return types with arguments of type BoxMethods in net.minecraft.util.shape with parameters of type BoxModifier and TypeMethodDescriptionprotected doubleVoxelShape.calculateMaxDistance(AxisCycleDirection axisCycle, Box box, double maxDist) doubleVoxelShape.calculateMaxDistance(Direction.Axis axis, Box box, double maxDist) static doubleVoxelShapes.calculateMaxOffset(Direction.Axis axis, Box box, Iterable<VoxelShape> shapes, double maxDist) static VoxelShape
- 
Uses of Box in net.minecraft.worldFields in net.minecraft.world declared as BoxMethods in net.minecraft.world with parameters of type BoxModifier and TypeMethodDescriptiondefault booleanCollisionView.canCollide(@Nullable Entity entity, Box box) private static voidBlockView.collectCollisionsBetween(Set<BlockPos> result, Vec3d oldPos, Vec3d newPos, Box boundingBox) BlockView.collectCollisionsBetween(Vec3d oldPos, Vec3d newPos, Box boundingBox) <T extends Entity>
 voidWorld.collectEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate, List<? super T> result) <T extends Entity>
 voidWorld.collectEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate, List<? super T> result, int limit) Collects entities of the given type inbox, up tolimit.default booleanWorldView.containsFluid(Box box) Returnstrueif any of the blocks insideboxcontain fluid.CollisionView.findSupportingBlockPos(Entity entity, Box box) default Iterable<VoxelShape> CollisionView.getBlockCollisions(@Nullable Entity entity, Box box) default Iterable<VoxelShape> CollisionView.getBlockOrFluidCollisions(@Nullable Entity entity, Box box) default <T extends LivingEntity>
 TEntityLookupView.getClosestEntity(Class<? extends T> clazz, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z, Box box) default Iterable<VoxelShape> CollisionView.getCollisions(@Nullable Entity entity, Box box) EntityView.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.ChunkRegion.getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) EntityView.getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) World.getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) CollisionView.getEntityCollisions(@Nullable Entity entity, Box box) default List<VoxelShape> EntityView.getEntityCollisions(@Nullable Entity entity, Box box) default List<VoxelShape> RegistryWorldView.getEntityCollisions(@Nullable Entity entity, Box box) EntityView.getNonSpectatingEntities(Class<T> entityClass, Box box) ChunkRegion.getOtherEntities(@Nullable Entity except, Box box, @Nullable Predicate<? super Entity> predicate) Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.EntityView.getOtherEntities(@Nullable Entity except, Box box) Computes a list of entities within some box, excluding the given entity, that are not spectators.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.default List<PlayerEntity> EntityLookupView.getPlayers(TargetPredicate targetPredicate, LivingEntity entity, Box box) default Stream<BlockState> BlockView.getStatesInBox(Box box) default Stream<BlockState> WorldView.getStatesInBoxIfLoaded(Box box) default <T extends LivingEntity>
 List<T> EntityLookupView.getTargets(Class<T> clazz, TargetPredicate targetPredicate, LivingEntity entity, Box box) private @Nullable VoxelShapeCollisionView.getWorldBorderCollisions(Entity entity, Box box) default booleanCollisionView.isBlockSpaceEmpty(@Nullable Entity entity, Box box) default booleanCollisionView.isSpaceEmpty(@Nullable Entity entity, Box box) default booleanCollisionView.isSpaceEmpty(@Nullable Entity entity, Box box, boolean checkFluid) default booleanCollisionView.isSpaceEmpty(Box box) Constructors in net.minecraft.world with parameters of type BoxModifierConstructorDescriptionBlockCollisionSpliterator(CollisionView world, ShapeContext context, Box box, boolean forEntity, BiFunction<BlockPos.Mutable, VoxelShape, T> resultFunction) BlockCollisionSpliterator(CollisionView world, @Nullable Entity entity, Box box, boolean forEntity, BiFunction<BlockPos.Mutable, VoxelShape, T> resultFunction) 
- 
Uses of Box in net.minecraft.world.borderMethods in net.minecraft.world.border with parameters of type Box
- 
Uses of Box in net.minecraft.world.chunkMethods in net.minecraft.world.chunk with parameters of type BoxModifier and TypeMethodDescriptionChunkCache.getEntityCollisions(@Nullable Entity entity, Box box) 
- 
Uses of Box in net.minecraft.world.entityMethods in net.minecraft.world.entity that return BoxMethods in net.minecraft.world.entity with parameters of type BoxModifier and TypeMethodDescriptionEntityTrackingSection.forEach(Box box, LazyIterationConsumer<T> consumer) <U extends T>
 LazyIterationConsumer.NextIterationEntityTrackingSection.forEach(TypeFilter<T, U> type, Box box, LazyIterationConsumer<? super U> consumer) voidSectionedEntityCache.forEachInBox(Box box, LazyIterationConsumer<EntityTrackingSection<T>> consumer) Runs the given action on each collection of entities in the chunk sections within the given box.voidEntityLookup.forEachIntersects(Box box, Consumer<T> action) <U extends T>
 voidEntityLookup.forEachIntersects(TypeFilter<T, U> filter, Box box, LazyIterationConsumer<U> consumer) voidSectionedEntityCache.forEachIntersects(Box box, LazyIterationConsumer<T> consumer) <U extends T>
 voidSectionedEntityCache.forEachIntersects(TypeFilter<T, U> filter, Box box, LazyIterationConsumer<U> consumer) voidSimpleEntityLookup.forEachIntersects(Box box, Consumer<T> action) <U extends T>
 voidSimpleEntityLookup.forEachIntersects(TypeFilter<T, U> filter, Box box, LazyIterationConsumer<U> consumer) 
- 
Uses of Box in net.minecraft.world.gen.featureFields in net.minecraft.world.gen.feature declared as BoxMethods in net.minecraft.world.gen.feature that return Box