More fixes
@@ -74,4 +74,9 @@ public class BlockGrid extends BlockNode {
|
|||||||
public boolean hasConnectivityState() {
|
public boolean hasConnectivityState() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public EnumPlacementType getPlacementType() {
|
||||||
|
return EnumPlacementType.ANY;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,4 +35,9 @@ public class BlockProcessingPatternEncoder extends BlockBase {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public EnumPlacementType getPlacementType() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,17 +8,12 @@ import net.minecraft.item.ItemStack;
|
|||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.EnumFacing;
|
import net.minecraft.util.EnumFacing;
|
||||||
import net.minecraft.util.EnumHand;
|
import net.minecraft.util.EnumHand;
|
||||||
import net.minecraft.util.EnumParticleTypes;
|
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.fml.relauncher.Side;
|
|
||||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
|
||||||
import refinedstorage.RefinedStorage;
|
import refinedstorage.RefinedStorage;
|
||||||
import refinedstorage.RefinedStorageGui;
|
import refinedstorage.RefinedStorageGui;
|
||||||
import refinedstorage.tile.TileSolderer;
|
import refinedstorage.tile.TileSolderer;
|
||||||
|
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
public class BlockSolderer extends BlockNode {
|
public class BlockSolderer extends BlockNode {
|
||||||
public static final PropertyBool WORKING = PropertyBool.create("working");
|
public static final PropertyBool WORKING = PropertyBool.create("working");
|
||||||
|
|
||||||
@@ -40,7 +35,6 @@ public class BlockSolderer extends BlockNode {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected BlockStateContainer createBlockState() {
|
protected BlockStateContainer createBlockState() {
|
||||||
return super.createBlockStateBuilder()
|
return super.createBlockStateBuilder()
|
||||||
@@ -48,18 +42,6 @@ public class BlockSolderer extends BlockNode {
|
|||||||
.build();
|
.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
|
@Override
|
||||||
public boolean isOpaqueCube(IBlockState state) {
|
public boolean isOpaqueCube(IBlockState state) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
{
|
{
|
||||||
"forge_marker": 1,
|
"forge_marker": 1,
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"model": "orientable",
|
"model": "cube",
|
||||||
"textures": {
|
"textures": {
|
||||||
"side": "refinedstorage:blocks/side",
|
"particle": "refinedstorage:blocks/processing_pattern_encoder",
|
||||||
"top": "refinedstorage:blocks/processing_pattern_encoder",
|
"down": "refinedstorage:blocks/side",
|
||||||
"front": "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": {
|
"variants": {
|
||||||
@@ -15,25 +19,8 @@
|
|||||||
"y": 0
|
"y": 0
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": {
|
"normal": {
|
||||||
"north": {
|
"model": "cube"
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"east": {
|
|
||||||
"y": 90
|
|
||||||
},
|
|
||||||
"south": {
|
|
||||||
"y": 180
|
|
||||||
},
|
|
||||||
"west": {
|
|
||||||
"y": 270
|
|
||||||
},
|
|
||||||
"up": {
|
|
||||||
"x": 270
|
|
||||||
},
|
|
||||||
"down": {
|
|
||||||
"x": 90
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 714 B After Width: | Height: | Size: 658 B |
|
Before Width: | Height: | Size: 692 B After Width: | Height: | Size: 676 B |
|
Before Width: | Height: | Size: 645 B After Width: | Height: | Size: 648 B |
|
Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 651 B |
|
Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 651 B |
|
Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 648 B |
|
Before Width: | Height: | Size: 659 B After Width: | Height: | Size: 653 B |
|
Before Width: | Height: | Size: 659 B After Width: | Height: | Size: 650 B |
|
Before Width: | Height: | Size: 659 B After Width: | Height: | Size: 649 B |
|
Before Width: | Height: | Size: 648 B |
|
Before Width: | Height: | Size: 653 B |