public CCFinalVariant(ResourceLocation model, Optional<IModelState> state, boolean uvLock, boolean smooth, boolean gui3d, int weight, Map<String, String> textures, String textureDomain, Map<String, String> customData) {
super(model == null ? new ResourceLocation("builtin/missing") : model, state.get() instanceof ModelRotation ? ((ModelRotation) state.get()) : ModelRotation.X0_Y0, uvLock, weight);
this.state = state.orElse(TRSRTransformation.identity());
this.smooth = smooth;
this.gui3d = gui3d;
Map<String, String> newTextures = new HashMap<>();
for (Entry<String, String> entry : textures.entrySet()) {
String prefixedTexture = entry.getValue();
if (!entry.getValue().contains(":")) {
prefixedTexture = textureDomain + ":" + prefixedTexture;
}
newTextures.put(entry.getKey(), prefixedTexture);
}
this.textures = ImmutableMap.copyOf(newTextures);
this.customData = ImmutableMap.copyOf(customData);
}
CCFinalVariant.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:CodeChickenLib
作者:
评论列表
文章目录