@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);
}
BWBakedModel.java 文件源码
java
阅读 13
收藏 0
点赞 0
评论 0
项目:NOVA-Core
作者:
评论列表
文章目录