mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Great Renaming, Part 1 - Blocks & deobfParams (#106)
Co-authored-by: glowredman <[email protected]>
This commit is contained in:
1 parent
93cef522ab
commit
af9b0db103
138 files changed
+1096
-1093
No files matched your search
@@ -29,17 +29,17 @@ public class BlockMod extends Block {
|
||||
|
||||
public int originalLight;
|
||||
|
||||
public BlockMod(Material par2Material) {
|
||||
super(par2Material);
|
||||
public BlockMod(Material material) {
|
||||
super(material);
|
||||
if(registerInCreative())
|
||||
setCreativeTab(BotaniaCreativeTab.INSTANCE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Block setBlockName(String par1Str) {
|
||||
public Block setBlockName(String name) {
|
||||
if(shouldRegisterInNameSet())
|
||||
GameRegistry.registerBlock(this, this instanceof IElvenItem ? ItemBlockElven.class : ItemCubeMod.class, par1Str);
|
||||
return super.setBlockName(par1Str);
|
||||
GameRegistry.registerBlock(this, this instanceof IElvenItem ? ItemBlockElven.class : ItemCubeMod.class, name);
|
||||
return super.setBlockName(name);
|
||||
}
|
||||
|
||||
protected boolean shouldRegisterInNameSet() {
|
||||
@@ -47,15 +47,15 @@ public class BlockMod extends Block {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Block setLightLevel(float p_149715_1_) {
|
||||
originalLight = (int) (p_149715_1_ * 15);
|
||||
return super.setLightLevel(p_149715_1_);
|
||||
public Block setLightLevel(float value) {
|
||||
originalLight = (int) (value * 15);
|
||||
return super.setLightLevel(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister par1IconRegister) {
|
||||
blockIcon = IconHelper.forBlock(par1IconRegister, this);
|
||||
public void registerBlockIcons(IIconRegister register) {
|
||||
blockIcon = IconHelper.forBlock(register, this);
|
||||
}
|
||||
|
||||
boolean registerInCreative() {
|
||||
|
||||
Reference in new issue
Block a user