fake-entity-lib/src/main/java/ru/progrm_jarvis/minecraft/fakeentitylib/entity/ArmorStandBlockItem.java
public static ArmorStandBlockItem create(final @Nullable UUID uuid,
                                             final boolean concurrent,
                                             final boolean global, final int viewDistance, final boolean visible,
                                             final @Own @NonNull Location location,
                                             final @Own @NonNull Vector3F rotation,
                                             final boolean small, final boolean marker, final @NonNull ItemStack item) {
        final double itemCenterYOffset;
        final Offset offset;
        (offset = rotationOffsets(
                rotation, itemCenterYOffset = small ? ITEM_CENTER_Y_OFFSET * 0x1p-1 : ITEM_CENTER_Y_OFFSET)
        ).applyTo(location);

        return new ArmorStandBlockItem(
                uuid, concurrent ? new ConcurrentHashMap<>() : new HashMap<>(),
                global, viewDistance, visible,
                location.add(0, -(small ? ARMOR_STAND_HEAD_ROOT_OFFSET / 2 : ARMOR_STAND_HEAD_ROOT_OFFSET), 0),
                rotation, itemCenterYOffset, offset, small, marker, item
        );
    }
/**
     * Creates new armor stand block-item by parameters specified.
     *
     * @param uuid unique ID of the created entity
     * @param concurrent whether created block-item supports concurrent modification of players related to it
     * @param global whether created block-item is global (the value returned by {@link #isGlobal()})
     * @param viewDistance view distance of created block-item
     * @param visible whether created block-item should be visible
     * @param location location of created block-item
     * @param rotation rotation of created block item
     * @param small whether created block-item is small
     * @param marker whether created block-item is marker
     * @param item item to be displayed by this block-item
     * @return newly created armor stand block-item
     */
Creates new armor stand block-item by parameters specified.
Creates new armor stand block - item by parameters specified .
public static ArmorStandBlockItem create(final @Nullable UUID uuid,
                                             final boolean concurrent,
                                             final boolean global, final int viewDistance, final boolean visible,
                                             final @Own @NonNull Location location,
                                             final @Own @NonNull Vector3F rotation,
                                             final boolean small, final boolean marker, final @NonNull ItemStack item) {
        final double itemCenterYOffset;
        final Offset offset;
        (offset = rotationOffsets(
                rotation, itemCenterYOffset = small ? ITEM_CENTER_Y_OFFSET * 0x1p-1 : ITEM_CENTER_Y_OFFSET)
        ).applyTo(location);
        return new ArmorStandBlockItem(
                uuid, concurrent ? new ConcurrentHashMap<>() : new HashMap<>(),
                global, viewDistance, visible,
                location.add(0, -(small ? ARMOR_STAND_HEAD_ROOT_OFFSET / 2 : ARMOR_STAND_HEAD_ROOT_OFFSET), 0),
                rotation, itemCenterYOffset, offset, small, marker, item
        );
    }
public static ArmorStandBlockItem create ( final @ Nullable UUID uuid , final boolean concurrent , final boolean global , final int viewDistance , final boolean visible , final @ Own @ NonNull Location location , final @ Own @ NonNull Vector3F rotation , final boolean small , final boolean marker , final @ NonNull ItemStack item ) { final double itemCenterYOffset ; final Offset offset ; ( offset = rotationOffsets ( rotation , itemCenterYOffset = small ? ITEM_CENTER_Y_OFFSET * 0x1p-1 : ITEM_CENTER_Y_OFFSET ) ) . applyTo ( location ) ; return new ArmorStandBlockItem ( uuid , concurrent ? new ConcurrentHashMap < > ( ) : new HashMap < > ( ) , global , viewDistance , visible , location . add ( 0 , - ( small ? ARMOR_STAND_HEAD_ROOT_OFFSET / 2 : ARMOR_STAND_HEAD_ROOT_OFFSET ) , 0 ) , rotation , itemCenterYOffset , offset , small , marker , item ) ; }
Creates new armor stand block-item by parameters specified.
Creates new armor stand block - item by parameters specified .