Fix missing textures on some blocks
This commit is contained in:
parent
ccdb5c0761
commit
4f8bfcb2df
4 changed files with 21 additions and 41 deletions
|
@ -1,26 +1,21 @@
|
||||||
package techreborn.blocks.generator;
|
package techreborn.blocks.generator;
|
||||||
|
|
||||||
import net.minecraft.block.material.Material;
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import reborncore.RebornCore;
|
import reborncore.common.blocks.BlockMachineBase;
|
||||||
import reborncore.common.BaseTileBlock;
|
|
||||||
import techreborn.client.TechRebornCreativeTab;
|
import techreborn.client.TechRebornCreativeTab;
|
||||||
import techreborn.tiles.generator.TileWindMill;
|
import techreborn.tiles.generator.TileWindMill;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by modmuss50 on 25/02/2016.
|
* Created by modmuss50 on 25/02/2016.
|
||||||
*/
|
*/
|
||||||
public class BlockWindMill extends BaseTileBlock {
|
public class BlockWindMill extends BlockMachineBase {
|
||||||
|
|
||||||
private final String prefix = "techreborn:blocks/machine/generators/";
|
|
||||||
|
|
||||||
public BlockWindMill() {
|
public BlockWindMill() {
|
||||||
super(Material.IRON);
|
super(false);
|
||||||
setUnlocalizedName("techreborn.windmill");
|
setUnlocalizedName("techreborn.windmill");
|
||||||
setCreativeTab(TechRebornCreativeTab.instance);
|
setCreativeTab(TechRebornCreativeTab.instance);
|
||||||
setHardness(2.0F);
|
setHardness(2.0F);
|
||||||
RebornCore.jsonDestroyer.registerObject(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,28 +1,22 @@
|
||||||
package techreborn.blocks.storage;
|
package techreborn.blocks.storage;
|
||||||
|
|
||||||
import me.modmuss50.jsonDestroyer.api.ITexturedBlock;
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.EnumFacing;
|
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import reborncore.common.BaseTileBlock;
|
import reborncore.common.BaseTileBlock;
|
||||||
import reborncore.common.blocks.BlockMachineBase;
|
|
||||||
import reborncore.common.blocks.IAdvancedRotationTexture;
|
|
||||||
import techreborn.client.TechRebornCreativeTab;
|
import techreborn.client.TechRebornCreativeTab;
|
||||||
import techreborn.tiles.lesu.TileLesuStorage;
|
import techreborn.tiles.lesu.TileLesuStorage;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class BlockLESUStorage extends BaseTileBlock implements ITexturedBlock {
|
public class BlockLESUStorage extends BaseTileBlock {;
|
||||||
|
|
||||||
private final String prefix = "techreborn:blocks/machines/energy/";
|
|
||||||
|
|
||||||
public BlockLESUStorage(Material material) {
|
public BlockLESUStorage(Material material) {
|
||||||
super(material);
|
super(material);
|
||||||
|
@ -61,14 +55,4 @@ public class BlockLESUStorage extends BaseTileBlock implements ITexturedBlock {
|
||||||
public boolean shouldConnectToBlock(IBlockAccess blockAccess, int x, int y, int z, Block block, int meta) {
|
public boolean shouldConnectToBlock(IBlockAccess blockAccess, int x, int y, int z, Block block, int meta) {
|
||||||
return block == this;
|
return block == this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getTextureNameFromState(IBlockState blockState, EnumFacing facing) {
|
|
||||||
return prefix + "ev_multi_side";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int amountOfStates() {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,5 +6,21 @@
|
||||||
"textures": {
|
"textures": {
|
||||||
"all": "techreborn:blocks/machines/energy/ev_multi_side"
|
"all": "techreborn:blocks/machines/energy/ev_multi_side"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"variants": {
|
||||||
|
"inventory": {
|
||||||
|
"transform": "forge:default-block",
|
||||||
|
"model": "cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "techreborn:blocks/machines/energy/ev_multi_side"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"normal": {
|
||||||
|
"transform": "forge:default-block",
|
||||||
|
"model": "cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "techreborn:blocks/machines/energy/ev_multi_side"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -6,8 +6,7 @@
|
||||||
"textures": {
|
"textures": {
|
||||||
"particle": "techreborn:blocks/machines/generators/solar_panel_side_off",
|
"particle": "techreborn:blocks/machines/generators/solar_panel_side_off",
|
||||||
"top": "techreborn:blocks/machines/generators/solar_panel_top",
|
"top": "techreborn:blocks/machines/generators/solar_panel_top",
|
||||||
"down": "techreborn:blocks/machines/generators/generator_bottom",
|
"down": "techreborn:blocks/machines/generators/generator_bottom"
|
||||||
"side": "techreborn:blocks/machines/generators/solar_panel_side_off"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"variants": {
|
"variants": {
|
||||||
|
@ -18,20 +17,6 @@
|
||||||
"side": "techreborn:blocks/machines/generators/solar_panel_side_off"
|
"side": "techreborn:blocks/machines/generators/solar_panel_side_off"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"facing": {
|
|
||||||
"north": {
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"east": {
|
|
||||||
"y": 90
|
|
||||||
},
|
|
||||||
"south": {
|
|
||||||
"y": 180
|
|
||||||
},
|
|
||||||
"west": {
|
|
||||||
"y": 270
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"active": {
|
"active": {
|
||||||
"true": {
|
"true": {
|
||||||
"textures": {
|
"textures": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue