ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockCrystal.java

44 lines
1.5 KiB
Java
Raw Normal View History

2015-11-09 18:05:52 +01:00
/*
2016-05-16 22:52:27 +02:00
* This file ("BlockCrystal.java") is part of the Actually Additions mod for Minecraft.
2015-11-09 18:05:52 +01:00
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-05-16 22:52:27 +02:00
* http://ellpeck.de/actaddlicense
2015-11-09 18:05:52 +01:00
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2017-01-01 16:23:26 +01:00
* © 2015-2017 Ellpeck
2015-11-09 18:05:52 +01:00
*/
2016-01-05 04:47:35 +01:00
package de.ellpeck.actuallyadditions.mod.blocks;
2015-11-09 18:05:52 +01:00
2016-01-05 04:47:35 +01:00
import de.ellpeck.actuallyadditions.mod.blocks.base.BlockBase;
2015-11-09 18:05:52 +01:00
2019-05-02 09:08:15 +02:00
public class BlockCrystal extends BlockBase {
private final boolean isEmpowered;
public BlockCrystal(boolean isEmpowered) {
2021-02-28 15:47:54 +01:00
super(ActuallyBlocks.defaultPickProps(1));
this.isEmpowered = isEmpowered;
2015-11-09 18:05:52 +01:00
}
2021-02-28 15:47:54 +01:00
// public static class TheItemBlock extends ItemBlockBase {
//
// public TheItemBlock(Block block) {
// super(block);
// this.setHasSubtypes(true);
// this.setMaxDamage(0);
// }
//
// @Override
// public String getTranslationKey(ItemStack stack) {
// return stack.getItemDamage() >= ALL_CRYSTALS.length
// ? StringUtil.BUGGED_ITEM_NAME
// : this.getTranslationKey() + "_" + ALL_CRYSTALS[stack.getItemDamage()].name;
// }
//
// @Override
// public boolean hasEffect(ItemStack stack) {
// return this.block instanceof BlockCrystal && ((BlockCrystal) this.block).isEmpowered;
// }
// }
2015-11-09 18:05:52 +01:00
}