mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 12:19:46 +00:00
Update forge
This commit is contained in:
1 parent
5f3172bd5d
commit
69db133091
197 files changed
+524
-830
No files matched your search
@@ -36,11 +36,10 @@ import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||
public class BlockStorage extends BlockMod implements ILexiconable {
|
||||
|
||||
public BlockStorage() {
|
||||
super(Material.iron);
|
||||
super(Material.iron, LibBlockNames.STORAGE);
|
||||
setHardness(3F);
|
||||
setResistance(10F);
|
||||
setSoundType(SoundType.METAL);
|
||||
setUnlocalizedName(LibBlockNames.STORAGE);
|
||||
setDefaultState(blockState.getBaseState().withProperty(BotaniaStateProps.STORAGE_VARIANT, StorageVariant.MANASTEEL));
|
||||
}
|
||||
|
||||
@@ -69,9 +68,8 @@ public class BlockStorage extends BlockMod implements ILexiconable {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Block setUnlocalizedName(String par1Str) {
|
||||
GameRegistry.registerBlock(this, ItemBlockStorage.class, par1Str);
|
||||
return super.setUnlocalizedName(par1Str);
|
||||
public void registerItemForm() {
|
||||
GameRegistry.register(new ItemBlockStorage(this), getRegistryName());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -79,11 +77,6 @@ public class BlockStorage extends BlockMod implements ILexiconable {
|
||||
return getMetaFromState(state);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean shouldRegisterInNameSet() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBeaconBase(IBlockAccess worldObj, BlockPos pos, BlockPos beaconPos) {
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user