rename method

This commit is contained in:
Sen 2025-07-20 14:35:27 +02:00
parent a1fcaa5f67
commit 2b03be33a7
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
33 changed files with 34 additions and 34 deletions

View file

@ -130,7 +130,7 @@ public class ItemRenderer
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)

View file

@ -170,7 +170,7 @@ public class RenderChunk
}
}
BlockLayer enumworldblocklayer1 = block.getBlockLayer();
BlockLayer enumworldblocklayer1 = block.getRenderLayer();
int j = enumworldblocklayer1.ordinal();
if (block.getRenderType() != -1)

View file

@ -1034,7 +1034,7 @@ public class Block {
return light;
}
public BlockLayer getBlockLayer() {
public BlockLayer getRenderLayer() {
return BlockLayer.SOLID;
}

View file

@ -15,7 +15,7 @@ public class BlockTranslucent extends Block {
return false;
}
public final BlockLayer getBlockLayer() {
public final BlockLayer getRenderLayer() {
return BlockLayer.TRANSLUCENT;
}

View file

@ -167,7 +167,7 @@ public class BlockBed extends Block implements Rotatable {
return 1;
}
public BlockLayer getBlockLayer() {
public BlockLayer getRenderLayer() {
return BlockLayer.CUTOUT;
}

View file

@ -201,7 +201,7 @@ public class BlockCake extends Block
return null;
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -248,7 +248,7 @@ public class BlockDoor extends Block implements Rotatable {
return 1;
}
public BlockLayer getBlockLayer() {
public BlockLayer getRenderLayer() {
return BlockLayer.CUTOUT;
}

View file

@ -209,7 +209,7 @@ public class BlockFlowerPot extends Block
return Items.flowerpot;
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -22,7 +22,7 @@ public class BlockGlass extends Block {
return 0;
}
public BlockLayer getBlockLayer() {
public BlockLayer getRenderLayer() {
return BlockLayer.CUTOUT;
}

View file

@ -131,7 +131,7 @@ public class BlockLadder extends Block implements Rotatable
return worldIn.getState(pos.offset(facing.getOpposite())).getBlock().isNormalCube();
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -187,7 +187,7 @@ public class BlockPane extends Block
return true;
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT_MIPPED;
}

View file

@ -102,7 +102,7 @@ public class BlockPortal extends Block
return false;
}
public BlockLayer getBlockLayer() {
public BlockLayer getRenderLayer() {
return BlockLayer.TRANSLUCENT;
}

View file

@ -24,7 +24,7 @@ public class BlockStainedGlass extends BlockGlass {
return this.color;
}
public BlockLayer getBlockLayer() {
public BlockLayer getRenderLayer() {
return BlockLayer.TRANSLUCENT;
}

View file

@ -30,7 +30,7 @@ public class BlockStainedGlassPane extends BlockPane
return this.color;
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.TRANSLUCENT;
}

View file

@ -592,9 +592,9 @@ public class BlockStairs extends Block implements Rotatable
return this.base.getResistance(exploder);
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return this.base.getBlockLayer();
return this.base.getRenderLayer();
}
/**

View file

@ -178,7 +178,7 @@ public class BlockTrapDoor extends Block implements Rotatable
return iblockstate;
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -87,7 +87,7 @@ public class BlockBush extends Block
return false;
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -140,7 +140,7 @@ public class BlockCactus extends Block
entityIn.attackEntityFrom(DamageSource.cactus, 1);
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -122,7 +122,7 @@ public class BlockGrass extends Block implements IGrowable
IBiome.getBiome(worldIn.getBiomeGenForCoords(pos)).growGrass(worldIn, pos, state, rand);
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT_MIPPED;
}

View file

@ -26,7 +26,7 @@ public class BlockLeavesBase extends Block
// this.transparent = transparent;
// }
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return /* this.transparent ? */ BlockLayer.CUTOUT_MIPPED; // : BlockLayer.SOLID;
}

View file

@ -146,7 +146,7 @@ public class BlockReed extends Block
return worldIn.getBiomeGenForCoords(pos).getGrassColorAtPos(pos);
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -440,7 +440,7 @@ public class BlockVine extends Block
}
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -239,7 +239,7 @@ public abstract class BlockLiquid extends Block
return (k > l ? k : l) | (i1 > j1 ? i1 : j1) << 16;
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return this.opaque ? BlockLayer.SOLID : BlockLayer.TRANSLUCENT;
}

View file

@ -428,7 +428,7 @@ public class BlockFire extends Block
// return MapColor.tntColor;
// }
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -63,7 +63,7 @@ public class BlockWeb extends Block
return true;
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -443,7 +443,7 @@ public class BlockBrewingStand extends Block implements ITileEntityProvider
super.onRemoved(worldIn, pos, state);
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -52,7 +52,7 @@ public class BlockEffectGenerator extends BlockMachine {
return false;
}
public BlockLayer getBlockLayer() {
public BlockLayer getRenderLayer() {
return BlockLayer.CUTOUT;
}

View file

@ -180,7 +180,7 @@ public class BlockHopper extends Block implements ITileEntityProvider, Direction
return true;
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT_MIPPED;
}

View file

@ -158,7 +158,7 @@ public class BlockRail extends Block
return 0;
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -219,7 +219,7 @@ public abstract class BlockTorch extends Block implements Directional
return super.rayTrace(worldIn, pos, start, end);
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -74,7 +74,7 @@ public class BlockTripWire extends Block
return false;
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}

View file

@ -322,7 +322,7 @@ public class BlockTripWireHook extends Block implements Rotatable
return true;
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT_MIPPED;
}

View file

@ -323,7 +323,7 @@ public class BlockWire extends Block
return state.getBlock() == this;
}
public BlockLayer getBlockLayer()
public BlockLayer getRenderLayer()
{
return BlockLayer.CUTOUT;
}