mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 14:34:22 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
83698cb73c
commit
84c2239244
561 files changed
+8872
-9300
No files matched your search
@@ -1,20 +1,23 @@
|
||||
package tconstruct.smeltery.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.*;
|
||||
import mantle.blocks.MantleBlock;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.util.*;
|
||||
import net.minecraft.world.*;
|
||||
|
||||
import tconstruct.library.TConstructRegistry;
|
||||
import tconstruct.util.config.PHConstruct;
|
||||
import cpw.mods.fml.relauncher.*;
|
||||
|
||||
/**
|
||||
* @author fuj1n
|
||||
*
|
||||
*/
|
||||
public class GlassBlockConnected extends MantleBlock {
|
||||
|
||||
protected IIcon[] icons = new IIcon[16];
|
||||
private final boolean shouldRenderSelectionBox = true;
|
||||
protected String folder;
|
||||
@@ -51,6 +54,7 @@ public class GlassBlockConnected extends MantleBlock {
|
||||
|
||||
/**
|
||||
* This is checked to see if the texture should connect to this block
|
||||
*
|
||||
* @param par2 x
|
||||
* @param par3 y
|
||||
* @param par4 z
|
||||
@@ -58,21 +62,20 @@ public class GlassBlockConnected extends MantleBlock {
|
||||
* @param par6 Metadata of the block this block is trying to connect to
|
||||
* @return true if should connect
|
||||
*/
|
||||
public boolean shouldConnectToBlock(
|
||||
IBlockAccess par1IBlockAccess, int par2, int par3, int par4, Block par5, int par6) {
|
||||
public boolean shouldConnectToBlock(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, Block par5,
|
||||
int par6) {
|
||||
return par5 == this;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) {
|
||||
return par1IBlockAccess.getBlockMetadata(par2, par3, par4) == 15
|
||||
? icons[0]
|
||||
return par1IBlockAccess.getBlockMetadata(par2, par3, par4) == 15 ? icons[0]
|
||||
: getConnectedBlockTexture(par1IBlockAccess, par2, par3, par4, par5, icons);
|
||||
}
|
||||
|
||||
public IIcon getConnectedBlockTexture(
|
||||
IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5, IIcon[] icons) {
|
||||
public IIcon getConnectedBlockTexture(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5,
|
||||
IIcon[] icons) {
|
||||
if (PHConstruct.connectedTexturesMode == 0) {
|
||||
return icons[0];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user