BWBakedModel.java 文件源码

java
阅读 13 收藏 0 点赞 0 评论 0

项目:NOVA-Core 作者:
@SuppressWarnings("unchecked")
public BWBakedModel(@SuppressWarnings("deprecation") IBakedModel wrapped, VertexFormat format) {
    this.wrapped = wrapped;
    this.format = format;
    this.matrix.translate(-0.5, -0.5, -0.5);

    if (!((List<VertexFormatElement>) format.getElements()).stream().anyMatch(VertexFormatElement::isPositionElement))
        return; // VertexFormat doesn't have a position

    getGeneralQuads().stream()
        .map(this::quadToFace)
        .forEachOrdered(faces::add);

    Arrays.stream(Direction.VALID_DIRECTIONS)
        .map(this::getFaceQuads)
        .flatMap(Collection::stream)
        .map(this::quadToFace)
        .forEachOrdered(faces::add);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号