Disk Manipulator now has a front texture and connected state

This commit is contained in:
Raoul Van den Berge
2016-09-26 21:19:33 +02:00
parent 0488e03754
commit b4fe9164c3
3 changed files with 41 additions and 12 deletions

View File

@@ -40,8 +40,13 @@ public class BlockDiskManipulator extends BlockNode {
super.breakBlock(world, pos, state); super.breakBlock(world, pos, state);
} }
@Override
public boolean hasConnectivityState() {
return true;
}
@Override @Override
public EnumPlacementType getPlacementType() { public EnumPlacementType getPlacementType() {
return null; return EnumPlacementType.HORIZONTAL;
} }
} }

View File

@@ -167,6 +167,11 @@ public class TileDiskManipulator extends TileNode implements IComparable, IFilte
return RefinedStorage.INSTANCE.config.diskManipulatorUsage + upgrades.getEnergyUsage(); return RefinedStorage.INSTANCE.config.diskManipulatorUsage + upgrades.getEnergyUsage();
} }
@Override
public boolean hasConnectivityState() {
return true;
}
@Override @Override
public void updateNode() { public void updateNode() {
if (ticks % upgrades.getSpeed() != 0) { if (ticks % upgrades.getSpeed() != 0) {

View File

@@ -1,25 +1,44 @@
{ {
"forge_marker": 1, "forge_marker": 1,
"defaults": { "defaults": {
"model": "cube", "model": "orientable",
"textures": { "textures": {
"particle": "refinedstorage:blocks/disk_manipulator", "side": "refinedstorage:blocks/side",
"down": "refinedstorage:blocks/side", "top": "refinedstorage:blocks/side",
"up": "refinedstorage:blocks/side", "front": "refinedstorage:blocks/disk_manipulator"
"north": "refinedstorage:blocks/disk_manipulator",
"east": "refinedstorage:blocks/disk_manipulator",
"south": "refinedstorage:blocks/disk_manipulator",
"west": "refinedstorage:blocks/disk_manipulator"
} }
}, },
"variants": { "variants": {
"inventory": [ "inventory": [
{ {
"transform": "forge:default-block" "y": 0
} }
], ],
"normal": { "connected": {
"model": "cube" "true": {
},
"false": {
}
},
"direction": {
"north": {
"y": 0
},
"east": {
"y": 90
},
"south": {
"y": 180
},
"west": {
"y": 270
},
"up": {
"x": 270
},
"down": {
"x": 90
}
} }
} }
} }