use of net.silentchaos512.gear.api.material.MaterialLayerList in project Silent-Gear by SilentChaos512.
the class MaterialDisplay method fromNetwork.
public static MaterialDisplay fromNetwork(ResourceLocation materialId, FriendlyByteBuf buf) {
Map<PartGearKey, MaterialLayerList> map = new LinkedHashMap<>();
int count = buf.readVarInt();
for (int i = 0; i < count; ++i) {
PartGearKey key = PartGearKey.fromNetwork(buf);
MaterialLayerList layerList = MaterialLayerList.read(buf);
map.put(key, layerList);
}
return of(materialId, map);
}
use of net.silentchaos512.gear.api.material.MaterialLayerList in project Silent-Gear by SilentChaos512.
the class MaterialBuilder method displayAdornment.
public MaterialBuilder displayAdornment(PartTextureSet textures, int color) {
display(PartType.ADORNMENT, GearType.ALL, new MaterialLayerList(PartType.ADORNMENT, textures, color));
display(PartType.ADORNMENT, GearType.PART, new MaterialLayer(SilentGear.getId("adornment"), color), new MaterialLayer(SilentGear.getId("adornment_highlight"), Color.VALUE_WHITE));
return this;
}
use of net.silentchaos512.gear.api.material.MaterialLayerList in project Silent-Gear by SilentChaos512.
the class MaterialBuilder method displayCoating.
public MaterialBuilder displayCoating(PartTextureSet textures, int color) {
display(PartType.COATING, GearType.ALL, new MaterialLayerList(PartType.MAIN, textures, color));
display(PartType.COATING, GearType.PART, new MaterialLayer(SilentGear.getId("coating_material"), color), new MaterialLayer(SilentGear.getId("coating_jar"), Color.VALUE_WHITE));
return this;
}
use of net.silentchaos512.gear.api.material.MaterialLayerList in project Silent-Gear by SilentChaos512.
the class MaterialDisplay method of.
public static MaterialDisplay of(ResourceLocation id, Map<PartGearKey, MaterialLayerList> display) {
MaterialDisplay model = new MaterialDisplay(id);
model.map.putAll(display);
return model;
}
Aggregations