More fixes

This commit is contained in:
Raoul Van den Berge
2016-07-08 21:14:36 +02:00
parent efc81d4304
commit 04861e41a8
15 changed files with 20 additions and 41 deletions

View File

@@ -74,4 +74,9 @@ public class BlockGrid extends BlockNode {
public boolean hasConnectivityState() {
return true;
}
@Override
public EnumPlacementType getPlacementType() {
return EnumPlacementType.ANY;
}
}

View File

@@ -35,4 +35,9 @@ public class BlockProcessingPatternEncoder extends BlockBase {
return true;
}
@Override
public EnumPlacementType getPlacementType() {
return null;
}
}

View File

@@ -8,17 +8,12 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.EnumParticleTypes;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import refinedstorage.RefinedStorage;
import refinedstorage.RefinedStorageGui;
import refinedstorage.tile.TileSolderer;
import java.util.Random;
public class BlockSolderer extends BlockNode {
public static final PropertyBool WORKING = PropertyBool.create("working");
@@ -40,7 +35,6 @@ public class BlockSolderer extends BlockNode {
return true;
}
@Override
protected BlockStateContainer createBlockState() {
return super.createBlockStateBuilder()
@@ -48,18 +42,6 @@ public class BlockSolderer extends BlockNode {
.build();
}
@SideOnly(Side.CLIENT)
public void randomDisplayTick(IBlockState state, World world, BlockPos pos, Random rand) {
double d0 = (double) pos.getX() + 0.5D;
double d1 = (double) pos.getY() + rand.nextDouble() * 6.0D / 16.0D;
double d2 = (double) pos.getZ() + 0.5D;
double d4 = rand.nextDouble() * 0.6D - 0.3D;
if (state.getValue(WORKING)) {
world.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, d0 - 0.52D, d1, d2 + d4, 0.0D, 0.0D, 0.0D, new int[0]);
}
}
@Override
public boolean isOpaqueCube(IBlockState state) {
return false;

View File

@@ -1,11 +1,15 @@
{
"forge_marker": 1,
"defaults": {
"model": "orientable",
"model": "cube",
"textures": {
"side": "refinedstorage:blocks/side",
"top": "refinedstorage:blocks/processing_pattern_encoder",
"front": "refinedstorage:blocks/side"
"particle": "refinedstorage:blocks/processing_pattern_encoder",
"down": "refinedstorage:blocks/side",
"up": "refinedstorage:blocks/processing_pattern_encoder",
"north": "refinedstorage:blocks/side",
"east": "refinedstorage:blocks/side",
"south": "refinedstorage:blocks/side",
"west": "refinedstorage:blocks/side"
}
},
"variants": {
@@ -15,25 +19,8 @@
"y": 0
}
],
"direction": {
"north": {
"y": 0
},
"east": {
"y": 90
},
"south": {
"y": 180
},
"west": {
"y": 270
},
"up": {
"x": 270
},
"down": {
"x": 90
}
"normal": {
"model": "cube"
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 714 B

After

Width:  |  Height:  |  Size: 658 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 692 B

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 645 B

After

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 655 B

After

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 655 B

After

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 655 B

After

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 659 B

After

Width:  |  Height:  |  Size: 653 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 659 B

After

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 659 B

After

Width:  |  Height:  |  Size: 649 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 653 B