rename method
This commit is contained in:
parent
a1fcaa5f67
commit
2b03be33a7
33 changed files with 34 additions and 34 deletions
|
@ -130,7 +130,7 @@ public class ItemRenderer
|
||||||
|
|
||||||
private boolean isBlockTranslucent(Block blockIn)
|
private boolean isBlockTranslucent(Block blockIn)
|
||||||
{
|
{
|
||||||
return blockIn != null && blockIn.getBlockLayer() == BlockLayer.TRANSLUCENT;
|
return blockIn != null && blockIn.getRenderLayer() == BlockLayer.TRANSLUCENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void rotateArroundXAndY(float angle, float angleY)
|
private void rotateArroundXAndY(float angle, float angleY)
|
||||||
|
|
|
@ -170,7 +170,7 @@ public class RenderChunk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BlockLayer enumworldblocklayer1 = block.getBlockLayer();
|
BlockLayer enumworldblocklayer1 = block.getRenderLayer();
|
||||||
int j = enumworldblocklayer1.ordinal();
|
int j = enumworldblocklayer1.ordinal();
|
||||||
|
|
||||||
if (block.getRenderType() != -1)
|
if (block.getRenderType() != -1)
|
||||||
|
|
|
@ -1034,7 +1034,7 @@ public class Block {
|
||||||
return light;
|
return light;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer() {
|
public BlockLayer getRenderLayer() {
|
||||||
return BlockLayer.SOLID;
|
return BlockLayer.SOLID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ public class BlockTranslucent extends Block {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final BlockLayer getBlockLayer() {
|
public final BlockLayer getRenderLayer() {
|
||||||
return BlockLayer.TRANSLUCENT;
|
return BlockLayer.TRANSLUCENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -167,7 +167,7 @@ public class BlockBed extends Block implements Rotatable {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer() {
|
public BlockLayer getRenderLayer() {
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -201,7 +201,7 @@ public class BlockCake extends Block
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -248,7 +248,7 @@ public class BlockDoor extends Block implements Rotatable {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer() {
|
public BlockLayer getRenderLayer() {
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -209,7 +209,7 @@ public class BlockFlowerPot extends Block
|
||||||
return Items.flowerpot;
|
return Items.flowerpot;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class BlockGlass extends Block {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer() {
|
public BlockLayer getRenderLayer() {
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,7 @@ public class BlockLadder extends Block implements Rotatable
|
||||||
return worldIn.getState(pos.offset(facing.getOpposite())).getBlock().isNormalCube();
|
return worldIn.getState(pos.offset(facing.getOpposite())).getBlock().isNormalCube();
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,7 +187,7 @@ public class BlockPane extends Block
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT_MIPPED;
|
return BlockLayer.CUTOUT_MIPPED;
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,7 @@ public class BlockPortal extends Block
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer() {
|
public BlockLayer getRenderLayer() {
|
||||||
return BlockLayer.TRANSLUCENT;
|
return BlockLayer.TRANSLUCENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ public class BlockStainedGlass extends BlockGlass {
|
||||||
return this.color;
|
return this.color;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer() {
|
public BlockLayer getRenderLayer() {
|
||||||
return BlockLayer.TRANSLUCENT;
|
return BlockLayer.TRANSLUCENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ public class BlockStainedGlassPane extends BlockPane
|
||||||
return this.color;
|
return this.color;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.TRANSLUCENT;
|
return BlockLayer.TRANSLUCENT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -592,9 +592,9 @@ public class BlockStairs extends Block implements Rotatable
|
||||||
return this.base.getResistance(exploder);
|
return this.base.getResistance(exploder);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return this.base.getBlockLayer();
|
return this.base.getRenderLayer();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -178,7 +178,7 @@ public class BlockTrapDoor extends Block implements Rotatable
|
||||||
return iblockstate;
|
return iblockstate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ public class BlockBush extends Block
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,7 @@ public class BlockCactus extends Block
|
||||||
entityIn.attackEntityFrom(DamageSource.cactus, 1);
|
entityIn.attackEntityFrom(DamageSource.cactus, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,7 +122,7 @@ public class BlockGrass extends Block implements IGrowable
|
||||||
IBiome.getBiome(worldIn.getBiomeGenForCoords(pos)).growGrass(worldIn, pos, state, rand);
|
IBiome.getBiome(worldIn.getBiomeGenForCoords(pos)).growGrass(worldIn, pos, state, rand);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT_MIPPED;
|
return BlockLayer.CUTOUT_MIPPED;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ public class BlockLeavesBase extends Block
|
||||||
// this.transparent = transparent;
|
// this.transparent = transparent;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return /* this.transparent ? */ BlockLayer.CUTOUT_MIPPED; // : BlockLayer.SOLID;
|
return /* this.transparent ? */ BlockLayer.CUTOUT_MIPPED; // : BlockLayer.SOLID;
|
||||||
}
|
}
|
||||||
|
|
|
@ -146,7 +146,7 @@ public class BlockReed extends Block
|
||||||
return worldIn.getBiomeGenForCoords(pos).getGrassColorAtPos(pos);
|
return worldIn.getBiomeGenForCoords(pos).getGrassColorAtPos(pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -440,7 +440,7 @@ public class BlockVine extends Block
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -239,7 +239,7 @@ public abstract class BlockLiquid extends Block
|
||||||
return (k > l ? k : l) | (i1 > j1 ? i1 : j1) << 16;
|
return (k > l ? k : l) | (i1 > j1 ? i1 : j1) << 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return this.opaque ? BlockLayer.SOLID : BlockLayer.TRANSLUCENT;
|
return this.opaque ? BlockLayer.SOLID : BlockLayer.TRANSLUCENT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -428,7 +428,7 @@ public class BlockFire extends Block
|
||||||
// return MapColor.tntColor;
|
// return MapColor.tntColor;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@ public class BlockWeb extends Block
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -443,7 +443,7 @@ public class BlockBrewingStand extends Block implements ITileEntityProvider
|
||||||
super.onRemoved(worldIn, pos, state);
|
super.onRemoved(worldIn, pos, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ public class BlockEffectGenerator extends BlockMachine {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer() {
|
public BlockLayer getRenderLayer() {
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -180,7 +180,7 @@ public class BlockHopper extends Block implements ITileEntityProvider, Direction
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT_MIPPED;
|
return BlockLayer.CUTOUT_MIPPED;
|
||||||
}
|
}
|
||||||
|
|
|
@ -158,7 +158,7 @@ public class BlockRail extends Block
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -219,7 +219,7 @@ public abstract class BlockTorch extends Block implements Directional
|
||||||
return super.rayTrace(worldIn, pos, start, end);
|
return super.rayTrace(worldIn, pos, start, end);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class BlockTripWire extends Block
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -322,7 +322,7 @@ public class BlockTripWireHook extends Block implements Rotatable
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT_MIPPED;
|
return BlockLayer.CUTOUT_MIPPED;
|
||||||
}
|
}
|
||||||
|
|
|
@ -323,7 +323,7 @@ public class BlockWire extends Block
|
||||||
return state.getBlock() == this;
|
return state.getBlock() == this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockLayer getBlockLayer()
|
public BlockLayer getRenderLayer()
|
||||||
{
|
{
|
||||||
return BlockLayer.CUTOUT;
|
return BlockLayer.CUTOUT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue