Texture for interface

This commit is contained in:
Raoul Van den Berge
2016-03-20 22:16:14 +01:00
parent ecde898be7
commit e12d484db8
4 changed files with 37 additions and 4 deletions

View File

@@ -63,10 +63,6 @@ public abstract class ContainerBase extends Container
if (slot instanceof SlotSpecimen)
{
// @TODO: Put whole the stack if left click
// @TODO: Put one item from stack if right click
// @TODO: If item is already there, on left / right click add 1 or remove 1
// @TODO: If click with empty stack, empty it out
if (clickedButton == 2 || player.inventory.getItemStack() == null)
{
slot.putStack(null);

View File

@@ -119,6 +119,7 @@ public class ClientProxy extends CommonProxy
ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(RefinedStorageBlocks.WIRELESS_TRANSMITTER), 0, new ModelResourceLocation("refinedstorage:wireless_transmitter", "inventory"));
ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(RefinedStorageBlocks.DETECTOR), 0, new ModelResourceLocation("refinedstorage:detector", "inventory"));
ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(RefinedStorageBlocks.RELAY), 0, new ModelResourceLocation("refinedstorage:relay", "inventory"));
ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(RefinedStorageBlocks.INTERFACE), 0, new ModelResourceLocation("refinedstorage:interface", "inventory"));
ModelLoader.setCustomStateMapper(RefinedStorageBlocks.STORAGE, (new StateMap.Builder())
.ignore(RefinedStorageBlocks.STORAGE.DIRECTION)

View File

@@ -0,0 +1,36 @@
{
"forge_marker": 1,
"defaults": {
"model": "cube_all",
"textures": {
"all": "refinedstorage:blocks/interface"
}
},
"variants": {
"inventory": [
{
"transform": "forge:default-block"
}
],
"direction": {
"north": {
},
"east": {
},
"south": {
},
"west": {
},
"up": {
},
"down": {
}
},
"connected": {
"true": {
},
"false": {
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B