mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Removed Copy-Pasta Unuseds
This commit is contained in:
parent
edcc279c45
commit
c82dc1f148
2 changed files with 2 additions and 15 deletions
|
@ -91,10 +91,6 @@
|
||||||
-Customizable with Items in Concrete Mixer
|
-Customizable with Items in Concrete Mixer
|
||||||
-(eg. Redstone->Speed Glowstone->Light etc.)
|
-(eg. Redstone->Speed Glowstone->Light etc.)
|
||||||
|
|
||||||
-XP Solidifier
|
|
||||||
-Block that creates Solidified Experience from Player's Levels
|
|
||||||
-Has a GUI with Buttons
|
|
||||||
|
|
||||||
-Alarm
|
-Alarm
|
||||||
-Gets triggered when Mobs are in the Area
|
-Gets triggered when Mobs are in the Area
|
||||||
-Configurable Range
|
-Configurable Range
|
||||||
|
|
|
@ -30,16 +30,14 @@ import java.util.List;
|
||||||
public class BlockXPSolidifier extends BlockContainerBase implements INameableItem{
|
public class BlockXPSolidifier extends BlockContainerBase implements INameableItem{
|
||||||
|
|
||||||
private IIcon topIcon;
|
private IIcon topIcon;
|
||||||
private IIcon onIcon;
|
|
||||||
private IIcon frontIcon;
|
private IIcon frontIcon;
|
||||||
|
|
||||||
public BlockXPSolidifier(){
|
public BlockXPSolidifier(){
|
||||||
super(Material.rock);
|
super(Material.rock);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(2.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(soundTypeStone);
|
this.setStepSound(soundTypeStone);
|
||||||
this.setTickRandomly(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -57,11 +55,6 @@ public class BlockXPSolidifier extends BlockContainerBase implements INameableIt
|
||||||
return new TileEntityXPSolidifier();
|
return new TileEntityXPSolidifier();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getLightValue(IBlockAccess world, int x, int y, int z){
|
|
||||||
return world.getBlockMetadata(x, y, z) > 3 ? 12 : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IIcon getIcon(int side, int meta){
|
public IIcon getIcon(int side, int meta){
|
||||||
if(side == 1) return this.topIcon;
|
if(side == 1) return this.topIcon;
|
||||||
|
@ -73,8 +66,7 @@ public class BlockXPSolidifier extends BlockContainerBase implements INameableIt
|
||||||
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side){
|
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side){
|
||||||
int meta = world.getBlockMetadata(x, y, z);
|
int meta = world.getBlockMetadata(x, y, z);
|
||||||
if(side == 1) return this.topIcon;
|
if(side == 1) return this.topIcon;
|
||||||
if(side == meta+2 && meta <= 3) return this.frontIcon;
|
if(side == meta+2) return this.frontIcon;
|
||||||
else if(side == meta-2 && meta > 3) return this.onIcon;
|
|
||||||
return this.blockIcon;
|
return this.blockIcon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +75,6 @@ public class BlockXPSolidifier extends BlockContainerBase implements INameableIt
|
||||||
public void registerBlockIcons(IIconRegister iconReg){
|
public void registerBlockIcons(IIconRegister iconReg){
|
||||||
this.blockIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName());
|
this.blockIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName());
|
||||||
this.topIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName() + "Top");
|
this.topIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName() + "Top");
|
||||||
this.onIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName() + "On");
|
|
||||||
this.frontIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName() + "Front");
|
this.frontIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName() + "Front");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue