Interface BlockNBTComponent

    • Method Detail

      • pos

        @NotNull
        @NotNull BlockNBTComponent.Pos pos()
        Gets the block position.
        Returns:
        the block position
        Since:
        4.0.0
      • pos

        @Contract(pure=true)
        @NotNull
        @NotNull BlockNBTComponent pos​(@NotNull
                                       @NotNull BlockNBTComponent.Pos pos)
        Sets the block position.
        Parameters:
        pos - the block position
        Returns:
        a block NBT component
        Since:
        4.0.0
      • localPos

        @Contract(pure=true)
        @NotNull
        default @NotNull BlockNBTComponent localPos​(double left,
                                                    double up,
                                                    double forwards)
        Sets the block position to a BlockNBTComponent.LocalPos with the given coordinates.
        Parameters:
        left - the left coordinate
        up - the up coordinate
        forwards - the forwards coordinate
        Returns:
        a block NBT component
        Since:
        4.0.0
      • absoluteWorldPos

        @Contract(pure=true)
        @NotNull
        default @NotNull BlockNBTComponent absoluteWorldPos​(int x,
                                                            int y,
                                                            int z)
        Sets the block position to an absolute BlockNBTComponent.WorldPos with the given coordinates.
        Parameters:
        x - the x coordinate
        y - the y coordinate
        z - the z coordinate
        Returns:
        a block NBT component
        Since:
        4.0.0
      • relativeWorldPos

        @Contract(pure=true)
        @NotNull
        default @NotNull BlockNBTComponent relativeWorldPos​(int x,
                                                            int y,
                                                            int z)
        Sets the block position to an relative BlockNBTComponent.WorldPos with the given coordinates.
        Parameters:
        x - the x coordinate
        y - the y coordinate
        z - the z coordinate
        Returns:
        a block NBT component
        Since:
        4.0.0