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;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import reborncore.RebornCore;
|
||||
import reborncore.common.BaseTileBlock;
|
||||
import reborncore.common.blocks.BlockMachineBase;
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.tiles.generator.TileWindMill;
|
||||
|
||||
/**
|
||||
* Created by modmuss50 on 25/02/2016.
|
||||
*/
|
||||
public class BlockWindMill extends BaseTileBlock {
|
||||
|
||||
private final String prefix = "techreborn:blocks/machine/generators/";
|
||||
public class BlockWindMill extends BlockMachineBase {
|
||||
|
||||
public BlockWindMill() {
|
||||
super(Material.IRON);
|
||||
super(false);
|
||||
setUnlocalizedName("techreborn.windmill");
|
||||
setCreativeTab(TechRebornCreativeTab.instance);
|
||||
setHardness(2.0F);
|
||||
RebornCore.jsonDestroyer.registerObject(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,28 +1,22 @@
|
|||
package techreborn.blocks.storage;
|
||||
|
||||
import me.modmuss50.jsonDestroyer.api.ITexturedBlock;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import reborncore.common.BaseTileBlock;
|
||||
import reborncore.common.blocks.BlockMachineBase;
|
||||
import reborncore.common.blocks.IAdvancedRotationTexture;
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.tiles.lesu.TileLesuStorage;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class BlockLESUStorage extends BaseTileBlock implements ITexturedBlock {
|
||||
|
||||
private final String prefix = "techreborn:blocks/machines/energy/";
|
||||
public class BlockLESUStorage extends BaseTileBlock {;
|
||||
|
||||
public BlockLESUStorage(Material 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) {
|
||||
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": {
|
||||
"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": {
|
||||
"particle": "techreborn:blocks/machines/generators/solar_panel_side_off",
|
||||
"top": "techreborn:blocks/machines/generators/solar_panel_top",
|
||||
"down": "techreborn:blocks/machines/generators/generator_bottom",
|
||||
"side": "techreborn:blocks/machines/generators/solar_panel_side_off"
|
||||
"down": "techreborn:blocks/machines/generators/generator_bottom"
|
||||
}
|
||||
},
|
||||
"variants": {
|
||||
|
@ -18,20 +17,6 @@
|
|||
"side": "techreborn:blocks/machines/generators/solar_panel_side_off"
|
||||
}
|
||||
},
|
||||
"facing": {
|
||||
"north": {
|
||||
"y": 0
|
||||
},
|
||||
"east": {
|
||||
"y": 90
|
||||
},
|
||||
"south": {
|
||||
"y": 180
|
||||
},
|
||||
"west": {
|
||||
"y": 270
|
||||
}
|
||||
},
|
||||
"active": {
|
||||
"true": {
|
||||
"textures": {
|
||||
|
|
Loading…
Add table
Reference in a new issue