Added conversion monitor item model.
|
@ -7,8 +7,10 @@ import java.util.stream.Collectors;
|
||||||
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
|
import appeng.api.util.AEColor;
|
||||||
import appeng.bootstrap.IItemRendering;
|
import appeng.bootstrap.IItemRendering;
|
||||||
import appeng.bootstrap.ItemRenderingCustomizer;
|
import appeng.bootstrap.ItemRenderingCustomizer;
|
||||||
|
import appeng.client.render.StaticItemColor;
|
||||||
|
|
||||||
|
|
||||||
public class ItemMultipartRendering extends ItemRenderingCustomizer
|
public class ItemMultipartRendering extends ItemRenderingCustomizer
|
||||||
|
@ -27,6 +29,8 @@ public class ItemMultipartRendering extends ItemRenderingCustomizer
|
||||||
|
|
||||||
rendering.meshDefinition( this::getItemMeshDefinition );
|
rendering.meshDefinition( this::getItemMeshDefinition );
|
||||||
|
|
||||||
|
rendering.color( new StaticItemColor( AEColor.Transparent ) );
|
||||||
|
|
||||||
// Register all item models as variants so they get loaded
|
// Register all item models as variants so they get loaded
|
||||||
rendering.variants( Arrays.stream( PartType.values() )
|
rendering.variants( Arrays.stream( PartType.values() )
|
||||||
.flatMap( part -> part.getItemModels().stream() )
|
.flatMap( part -> part.getItemModels().stream() )
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"parent": "appliedenergistics2:item/part/display",
|
||||||
|
"textures": {
|
||||||
|
"front": "appliedenergistics2:items/part/conversion_monitor",
|
||||||
|
"front_bright": "appliedenergistics2:parts/conversion_monitor_bright",
|
||||||
|
"front_medium": "appliedenergistics2:parts/conversion_monitor_medium",
|
||||||
|
"front_dark": "appliedenergistics2:parts/conversion_monitor_dark"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,58 @@
|
||||||
|
{
|
||||||
|
"parent": "appliedenergistics2:item/part/part",
|
||||||
|
"textures": {
|
||||||
|
"sides": "appliedenergistics2:parts/monitor_sides",
|
||||||
|
"back": "appliedenergistics2:parts/monitor_back"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"name": "Front",
|
||||||
|
"from": [ 2, 2, 8 ],
|
||||||
|
"to": [ 14, 14, 9 ],
|
||||||
|
"faces": {
|
||||||
|
"north": { "texture": "#front" },
|
||||||
|
"south": { "texture": "#back" },
|
||||||
|
"east": { "texture": "#sides" },
|
||||||
|
"west": { "texture": "#sides" },
|
||||||
|
"up": { "texture": "#sides" },
|
||||||
|
"down": { "texture": "#sides" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Front Bright",
|
||||||
|
"from": [ 2, 2, 8 ],
|
||||||
|
"to": [ 14, 14, 9 ],
|
||||||
|
"faces": {
|
||||||
|
"north": { "texture": "#front_bright", "tintindex": 0 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Front Medium",
|
||||||
|
"from": [ 2, 2, 8 ],
|
||||||
|
"to": [ 14, 14, 9 ],
|
||||||
|
"faces": {
|
||||||
|
"north": { "texture": "#front_medium", "tintindex": 1 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Front Dark",
|
||||||
|
"from": [ 2, 2, 8 ],
|
||||||
|
"to": [ 14, 14, 9 ],
|
||||||
|
"faces": {
|
||||||
|
"north": { "texture": "#front_dark", "tintindex": 2 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Back",
|
||||||
|
"from": [ 4, 4, 9 ],
|
||||||
|
"to": [ 12, 12, 10 ],
|
||||||
|
"faces": {
|
||||||
|
"east": { "texture": "#sides" },
|
||||||
|
"south": { "texture": "#back" },
|
||||||
|
"west": { "texture": "#sides" },
|
||||||
|
"up": { "texture": "#sides" },
|
||||||
|
"down": { "texture": "#sides" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
After Width: | Height: | Size: 244 B |
After Width: | Height: | Size: 238 B |
After Width: | Height: | Size: 205 B |
After Width: | Height: | Size: 216 B |
After Width: | Height: | Size: 218 B |
After Width: | Height: | Size: 268 B |
After Width: | Height: | Size: 229 B |