fake-entity-lib/src/main/java/ru/progrm_jarvis/minecraft/fakeentitylib/entity/ArmorStandBlockItem.java
protected static WrappedDataWatcher createMetadata(final @Nullable Vector3F rotation,
                                                       final boolean small, final boolean marker) {
        val metadata = new ArrayList<WrappedWatchableObject>();

        metadata.add(air(300));
        metadata.add(noGravity(true));
        if (marker) {
            metadata.add(entityFlags(EntityFlag.INVISIBLE, EntityFlag.ON_FIRE));
            metadata.add(armorStandFlags(small ? new ArmorStandFlag[]{
                    SMALL, NO_BASE_PLATE, MARKER
            } : new ArmorStandFlag[]{
                    MARKER, NO_BASE_PLATE
            }));
        } else {
            metadata.add(entityFlags(EntityFlag.INVISIBLE));
            metadata.add(armorStandFlags(small
                    ? new ArmorStandFlag[]{SMALL, NO_BASE_PLATE}
                    : new ArmorStandFlag[]{NO_BASE_PLATE}
            ));
        }
        if (rotation != null) metadata.add(headRotation(rotation));

        return new WrappedDataWatcher(metadata);
    }
/**
     * Creates valid metadata for armor stand block-item.
     *
     * @param rotation rotation of this block-item
     * @param small whether this block-item is small
     * @param marker whether this block-item is marker
     * @return created metadata object
     */
Creates valid metadata for armor stand block-item.
@param rotation rotation of this block-item
@param small whether this block-item is small
@param marker whether this block-item is marker
@return created metadata object
Creates valid metadata for armor stand block - item . @param rotation rotation of this block - item @param small whether this block - item is small @param marker whether this block - item is marker @return created metadata object
protected static WrappedDataWatcher createMetadata(final @Nullable Vector3F rotation,
                                                       final boolean small, final boolean marker) {
        val metadata = new ArrayList<WrappedWatchableObject>();
        metadata.add(air(300));
        metadata.add(noGravity(true));
        if (marker) {
            metadata.add(entityFlags(EntityFlag.INVISIBLE, EntityFlag.ON_FIRE));
            metadata.add(armorStandFlags(small ? new ArmorStandFlag[]{
                    SMALL, NO_BASE_PLATE, MARKER
            } : new ArmorStandFlag[]{
                    MARKER, NO_BASE_PLATE
            }));
        } else {
            metadata.add(entityFlags(EntityFlag.INVISIBLE));
            metadata.add(armorStandFlags(small
                    ? new ArmorStandFlag[]{SMALL, NO_BASE_PLATE}
                    : new ArmorStandFlag[]{NO_BASE_PLATE}
            ));
        }
        if (rotation != null) metadata.add(headRotation(rotation));
        return new WrappedDataWatcher(metadata);
    }
protected static WrappedDataWatcher createMetadata ( final @ Nullable Vector3F rotation , final boolean small , final boolean marker ) { val metadata = new ArrayList < WrappedWatchableObject > ( ) ; metadata . add ( air ( 300 ) ) ; metadata . add ( noGravity ( true ) ) ; if ( marker ) { metadata . add ( entityFlags ( EntityFlag . INVISIBLE , EntityFlag . ON_FIRE ) ) ; metadata . add ( armorStandFlags ( small ? new ArmorStandFlag [ ] { SMALL , NO_BASE_PLATE , MARKER } : new ArmorStandFlag [ ] { MARKER , NO_BASE_PLATE } ) ) ; } else { metadata . add ( entityFlags ( EntityFlag . INVISIBLE ) ) ; metadata . add ( armorStandFlags ( small ? new ArmorStandFlag [ ] { SMALL , NO_BASE_PLATE } : new ArmorStandFlag [ ] { NO_BASE_PLATE } ) ) ; } if ( rotation != null ) metadata . add ( headRotation ( rotation ) ) ; return new WrappedDataWatcher ( metadata ) ; }
Creates valid metadata for armor stand block-item.
Creates valid metadata for armor stand block - item .