Added conversion monitor item model.

This commit is contained in:
Sebastian Hartte 2016-08-27 10:30:41 +02:00
parent bff03d695b
commit 730f5c5d6d
10 changed files with 71 additions and 0 deletions

View File

@ -7,8 +7,10 @@ import java.util.stream.Collectors;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.ItemStack;
import appeng.api.util.AEColor;
import appeng.bootstrap.IItemRendering;
import appeng.bootstrap.ItemRenderingCustomizer;
import appeng.client.render.StaticItemColor;
public class ItemMultipartRendering extends ItemRenderingCustomizer
@ -27,6 +29,8 @@ public class ItemMultipartRendering extends ItemRenderingCustomizer
rendering.meshDefinition( this::getItemMeshDefinition );
rendering.color( new StaticItemColor( AEColor.Transparent ) );
// Register all item models as variants so they get loaded
rendering.variants( Arrays.stream( PartType.values() )
.flatMap( part -> part.getItemModels().stream() )

View File

@ -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"
}
}

View File

@ -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" }
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B