``mciwb.imports`` ================= .. automodule:: mciwb.imports :no-members: The tables below list every name in ``mciwb.imports``. Each name links to where it is documented: in this reference, or in the documentation of `mcipc `_ for the two names that come from that library. World ----- .. autosummary:: :nosignatures: ~mciwb.Iwb ~mciwb.get_world ~mciwb.Client ~mciwb.get_client See :doc:`world`. Positions, blocks and shapes ---------------------------- .. autosummary:: :nosignatures: ~mciwb.geometry.Vec3 ~mciwb.geometry.Direction ~mciwb.item.Item ~mciwb.geometry.Volume ~mciwb.geometry.Anchor3 ~mciwb.shapes.polygon See :doc:`geometry`, :doc:`item` and :doc:`shapes`. In short: - ``Vec3(x, y, z)`` is a position or an offset. Y is up. It supports ``+``, ``-`` and ``* number``. - ``Direction`` holds the unit vectors ``NORTH`` (0, 0, -1), ``SOUTH`` (0, 0, 1), ``EAST`` (1, 0, 0), ``WEST`` (-1, 0, 0), ``UP`` and ``DOWN``. ``Direction.cardinals()`` lists the four compass directions. - ``Item`` has a member for every block and item of the Minecraft release that mciwb supports, for example ``Item.STONE_BRICKS``. - ``Volume.from_corners(a, b)`` is a box of blocks, and its ``fill(client, item)`` fills it. ``Anchor3`` says which corner or face of a box a position refers to, for example ``Anchor3.BOTTOM_NW``. - ``polygon(client, center, height, diameter, sides=4, direction=UP, item=..., mode=FillMode.KEEP)`` builds a hollow prism. Cuboids (frozen) ---------------- .. autosummary:: :nosignatures: ~mciwb.cuboids.Blocks ~mciwb.cuboids.grab ~mciwb.cuboids.save_items ~mciwb.cuboids.load_items ~mciwb.geometry.Planes3d and :data:`~mciwb.geometry.Cuboid`, the type of a 3D array of :class:`~mciwb.item.Item`. ``Blocks(client, position, cuboid)`` places one in the world, and ``grab(client, vol)`` reads one. See :doc:`cuboids`. :class:`~mciwb.builders.Schematic` is their successor. Command modes ------------- These come from mcipc. :class:`~mcipc.rcon.enumerations.FillMode` is the *mode* of :func:`~mciwb.shapes.polygon` and of :meth:`Placer.fill() `. .. autosummary:: :nosignatures: ~mcipc.rcon.enumerations.FillMode ~mcipc.rcon.enumerations.SetblockMode Builders -------- .. autosummary:: :nosignatures: ~mciwb.builders.Placer ~mciwb.builders.BuildError ~mciwb.builders.gable_roof ~mciwb.builders.hip_roof ~mciwb.builders.flat_roof ~mciwb.builders.arch ~mciwb.builders.arch_profile ~mciwb.builders.column ~mciwb.builders.stairway ~mciwb.builders.road ~mciwb.builders.trace_path ~mciwb.builders.PathStep ~mciwb.builders.foundation ~mciwb.builders.ground_height ~mciwb.builders.ground_heights ~mciwb.builders.Heightmap ~mciwb.builders.BlockState ~mciwb.builders.facing_name ~mciwb.builders.stair_shapes ~mciwb.builders.slab_of ~mciwb.builders.full_block_of ~mciwb.builders.Schematic and two that are not functions or classes: :data:`~mciwb.builders.Block`, the type of every argument that takes a block, and :data:`~mciwb.builders.DATA_VERSION`, the Minecraft data version written in saved schematics. See :doc:`builders`. Scan and render --------------- .. autosummary:: :nosignatures: mciwb.render.scan mciwb.render.render ~mciwb.BlockGrid See :doc:`render`. Interactive (frozen) -------------------- .. autosummary:: :nosignatures: ~mciwb.Player ~mciwb.Monitor ~mciwb.Switch ~mciwb.Signs ~mciwb.CopyPaste ~mciwb.Wall ~mciwb.WallMaker ~mciwb.parse_nbt See :doc:`interactive`. Not in ``mciwb.imports`` ------------------------ A few names that scripts sometimes need are imported from elsewhere: - from ``mciwb``: :class:`~mciwb.Backup`, :class:`~mciwb.MinecraftServer`, :class:`~mciwb.Palette`, :func:`~mciwb.set_client`, :func:`~mciwb.new_thread` and :exc:`~mciwb.PlayerNotInWorldError`; - from ``mciwb.palette``: :func:`~mciwb.palette.set_colour`; - from ``mciwb.render``: :func:`~mciwb.render.render_view` and :func:`~mciwb.render.auto_scale`.