improve visuals
This commit is contained in:
parent
31bdece813
commit
c6217bf106
36 changed files with 23 additions and 119 deletions
|
@ -1054,12 +1054,6 @@ public class Block {
|
|||
: !world.getState(pos).getBlock().isOpaqueCube() && (!this.isNonBlock() || !world.getState(pos).getBlock().isNonBlock() || !world.getState(pos).getBlock().isVisuallyOpaque()))))));
|
||||
}
|
||||
|
||||
@Clientside
|
||||
public BoundingBox getSelectionBox(World world, BlockPos pos) {
|
||||
return new BoundingBox((double)pos.getX() + this.minX, (double)pos.getY() + this.minY, (double)pos.getZ() + this.minZ,
|
||||
(double)pos.getX() + this.maxX, (double)pos.getY() + this.maxY, (double)pos.getZ() + this.maxZ);
|
||||
}
|
||||
|
||||
@Clientside
|
||||
public boolean isXrayVisible() {
|
||||
return false;
|
||||
|
|
|
@ -94,12 +94,6 @@ public class BlockDoor extends Block implements Rotatable {
|
|||
return false;
|
||||
}
|
||||
|
||||
@Clientside
|
||||
public BoundingBox getSelectionBox(World world, BlockPos pos) {
|
||||
this.setBlockBounds(world, pos);
|
||||
return super.getSelectionBox(world, pos);
|
||||
}
|
||||
|
||||
public BoundingBox getCollisionBox(World world, BlockPos pos, State state) {
|
||||
this.setBlockBounds(world, pos);
|
||||
return super.getCollisionBox(world, pos, state);
|
||||
|
|
|
@ -33,12 +33,6 @@ public class BlockLadder extends Block implements Rotatable
|
|||
return super.getCollisionBox(worldIn, pos, state);
|
||||
}
|
||||
|
||||
public BoundingBox getSelectionBox(World worldIn, BlockPos pos)
|
||||
{
|
||||
this.setBlockBounds(worldIn, pos);
|
||||
return super.getSelectionBox(worldIn, pos);
|
||||
}
|
||||
|
||||
public void setBlockBounds(IWorldAccess worldIn, BlockPos pos)
|
||||
{
|
||||
State iblockstate = worldIn.getState(pos);
|
||||
|
|
|
@ -67,12 +67,6 @@ public class BlockTrapDoor extends Block implements Rotatable
|
|||
return !((Boolean)worldIn.getState(pos).getValue(OPEN)).booleanValue();
|
||||
}
|
||||
|
||||
public BoundingBox getSelectionBox(World worldIn, BlockPos pos)
|
||||
{
|
||||
this.setBlockBounds(worldIn, pos);
|
||||
return super.getSelectionBox(worldIn, pos);
|
||||
}
|
||||
|
||||
public BoundingBox getCollisionBox(World worldIn, BlockPos pos, State state)
|
||||
{
|
||||
this.setBlockBounds(worldIn, pos);
|
||||
|
|
|
@ -69,12 +69,6 @@ public class BlockCactus extends Block
|
|||
return new BoundingBox((double)((float)pos.getX() + f), (double)pos.getY(), (double)((float)pos.getZ() + f), (double)((float)(pos.getX() + 1) - f), (double)((float)(pos.getY() + 1) - f), (double)((float)(pos.getZ() + 1) - f));
|
||||
}
|
||||
|
||||
public BoundingBox getSelectionBox(World worldIn, BlockPos pos)
|
||||
{
|
||||
float f = 0.0625F;
|
||||
return new BoundingBox((double)((float)pos.getX() + f), (double)pos.getY(), (double)((float)pos.getZ() + f), (double)((float)(pos.getX() + 1) - f), (double)(pos.getY() + 1), (double)((float)(pos.getZ() + 1) - f));
|
||||
}
|
||||
|
||||
public boolean isFullCube()
|
||||
{
|
||||
return false;
|
||||
|
|
|
@ -25,7 +25,7 @@ public class BlockSnowable extends BlockNonBlock {
|
|||
}
|
||||
|
||||
public void tick(AWorldServer worldIn, BlockPos pos, State state, Random rand) {
|
||||
if(this.snowy ? !worldIn.canFreezeAt(pos) : worldIn.isRaining() && worldIn.canFreezeAt(pos) && worldIn.getPrecipitationHeight(pos).getY() - 1 <= pos.getY())
|
||||
if(this.snowy ? !worldIn.canFreezeAt(pos) : (worldIn.isRaining() || !worldIn.dimension.hasWeather()) && worldIn.canFreezeAt(pos) && worldIn.getPrecipitationHeight(pos).getY() - 1 <= pos.getY())
|
||||
worldIn.setState(pos, this.other.getState());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -324,11 +324,6 @@ public abstract class BlockLiquid extends Block
|
|||
{
|
||||
return new Property[] {LEVEL};
|
||||
}
|
||||
|
||||
public boolean isXrayVisible()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected boolean hasRegisteredItem() {
|
||||
return false;
|
||||
|
|
|
@ -8,7 +8,7 @@ import common.item.Item;
|
|||
import common.rng.Random;
|
||||
import common.world.State;
|
||||
|
||||
public class BlockObsidian extends Block
|
||||
public class BlockObsidian extends BlockNonBlock
|
||||
{
|
||||
public BlockObsidian()
|
||||
{
|
||||
|
@ -16,13 +16,13 @@ public class BlockObsidian extends Block
|
|||
this.setTab(CheatTab.ROCK);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Item that this Block should drop when harvested.
|
||||
*/
|
||||
public Item getDrop(State state, Random rand, int fortune)
|
||||
{
|
||||
return Items.obsidian;
|
||||
}
|
||||
// /**
|
||||
// * Get the Item that this Block should drop when harvested.
|
||||
// */
|
||||
// public Item getDrop(State state, Random rand, int fortune)
|
||||
// {
|
||||
// return Items.obsidian;
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * Get the MapColor for this Block and the given BlockState
|
||||
|
|
|
@ -80,12 +80,6 @@ public abstract class BlockDisplay extends Block implements Rotatable
|
|||
return super.getCollisionBox(worldIn, pos, state);
|
||||
}
|
||||
|
||||
public BoundingBox getSelectionBox(World worldIn, BlockPos pos)
|
||||
{
|
||||
this.setBlockBounds(worldIn, pos);
|
||||
return super.getSelectionBox(worldIn, pos);
|
||||
}
|
||||
|
||||
public boolean isFullCube()
|
||||
{
|
||||
return false;
|
||||
|
|
|
@ -50,12 +50,6 @@ public class BlockSign extends Block implements ITileEntityProvider, Rotatable
|
|||
return null;
|
||||
}
|
||||
|
||||
public BoundingBox getSelectionBox(World worldIn, BlockPos pos)
|
||||
{
|
||||
this.setBlockBounds(worldIn, pos);
|
||||
return super.getSelectionBox(worldIn, pos);
|
||||
}
|
||||
|
||||
public boolean isFullCube()
|
||||
{
|
||||
return false;
|
||||
|
|
|
@ -221,28 +221,28 @@ public abstract class BlockRegistry {
|
|||
BlockSnowable podzol;
|
||||
register("podzol", (podzol = new BlockPodzol(false)).setHardness(0.5F).setSound(SoundType.GRAVEL).setDisplay("Podsol").setMiningTool(Equipment.SHOVEL));
|
||||
BlockSnowable snowy_podzol;
|
||||
register("snowy_podzol", (snowy_podzol = new BlockPodzol(true).setOther(podzol)).setHardness(0.5F).setSound(SoundType.GRAVEL).setDisplay("Podsol").setMiningTool(Equipment.SHOVEL));
|
||||
register("snowy_podzol", (snowy_podzol = new BlockPodzol(true).setOther(podzol)).setHardness(0.5F).setSound(SoundType.GRAVEL).setDisplay("Beschneiter Podsol").setMiningTool(Equipment.SHOVEL));
|
||||
BlockSnowable mycelium;
|
||||
register("mycelium", (mycelium = new BlockMycelium(false)).setHardness(0.6F).setSound(SoundType.GRASS).setDisplay("Myzel").setMiningTool(Equipment.SHOVEL));
|
||||
BlockSnowable snowy_mycelium;
|
||||
register("snowy_mycelium", (snowy_mycelium = new BlockMycelium(true).setOther(mycelium)).setHardness(0.6F).setSound(SoundType.GRASS).setDisplay("Myzel").setMiningTool(Equipment.SHOVEL));
|
||||
register("snowy_mycelium", (snowy_mycelium = new BlockMycelium(true).setOther(mycelium)).setHardness(0.6F).setSound(SoundType.GRASS).setDisplay("Beschneites Myzel").setMiningTool(Equipment.SHOVEL));
|
||||
BlockSnowable swamp;
|
||||
register("swamp", (swamp = new BlockSwamp(false)).setHardness(0.6F).setSound(SoundType.GRASS).setDisplay("Sumpf").setMiningTool(Equipment.SHOVEL));
|
||||
BlockSnowable snowy_swamp;
|
||||
register("snowy_swamp", (snowy_swamp = new BlockSwamp(true).setOther(swamp)).setHardness(0.6F).setSound(SoundType.GRASS).setDisplay("Sumpf").setMiningTool(Equipment.SHOVEL));
|
||||
register("snowy_swamp", (snowy_swamp = new BlockSwamp(true).setOther(swamp)).setHardness(0.6F).setSound(SoundType.GRASS).setDisplay("Beschneiter Sumpf").setMiningTool(Equipment.SHOVEL));
|
||||
Block tian;
|
||||
register("tian", (tian = new BlockNonBlock(Material.SOLID)).setHardness(2.0F).setResistance(15.0F).setSound(SoundType.STONE)
|
||||
.setDisplay("Tian").setTab(CheatTab.NATURE));
|
||||
BlockSnowable tian_soil;
|
||||
register("tian_soil", (tian_soil = new BlockTianSoil(false)).setHardness(2.0F).setResistance(15.0F).setSound(SoundType.STONE).setDisplay("Tianerde").setTab(CheatTab.NATURE));
|
||||
BlockSnowable snowy_tian_soil;
|
||||
register("snowy_tian_soil", (snowy_tian_soil = new BlockTianSoil(true).setOther(tian_soil)).setHardness(2.0F).setResistance(15.0F).setSound(SoundType.STONE).setDisplay("Tianerde").setTab(CheatTab.NATURE));
|
||||
register("snowy_tian_soil", (snowy_tian_soil = new BlockTianSoil(true).setOther(tian_soil)).setHardness(2.0F).setResistance(15.0F).setSound(SoundType.STONE).setDisplay("Beschneite Tianerde").setTab(CheatTab.NATURE));
|
||||
Block blackened_dirt;
|
||||
register("blackened_dirt", (blackened_dirt = new BlockBlackenedDirt()).setHardness(0.5F).setSound(SoundType.GRAVEL).setDisplay("Schwarzerde").setMiningTool(Equipment.SHOVEL));
|
||||
BlockSnowable blackened_soil;
|
||||
register("blackened_soil", (blackened_soil = new BlockBlackenedSoil(false)).setHardness(0.6F).setSound(SoundType.GRASS).setDisplay("Schwarzgrund").setMiningTool(Equipment.SHOVEL));
|
||||
BlockSnowable snowy_blackened_soil;
|
||||
register("snowy_blackened_soil", (snowy_blackened_soil = new BlockBlackenedSoil(true).setOther(blackened_soil)).setHardness(0.6F).setSound(SoundType.GRASS).setDisplay("Schwarzgrund").setMiningTool(Equipment.SHOVEL));
|
||||
register("snowy_blackened_soil", (snowy_blackened_soil = new BlockBlackenedSoil(true).setOther(blackened_soil)).setHardness(0.6F).setSound(SoundType.GRASS).setDisplay("Beschneiter Schwarzgrund").setMiningTool(Equipment.SHOVEL));
|
||||
Block slime_block;
|
||||
register("slime_block", (slime_block = new BlockSlime()).setDisplay("Schleimblock").setSound(SoundType.SLIME));
|
||||
Block cheese;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue