2016-01-05 04:47:35 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.blocks.metalists;
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2018-08-04 04:34:52 +02:00
|
|
|
import com.google.common.base.Preconditions;
|
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.blocks.InitBlocks;
|
2015-06-28 03:12:32 +02:00
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.item.EnumRarity;
|
2016-11-21 16:23:48 +01:00
|
|
|
import net.minecraft.util.IStringSerializable;
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2018-08-04 04:34:52 +02:00
|
|
|
public enum TheWildPlants implements IStringSerializable {
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2016-11-21 16:23:48 +01:00
|
|
|
CANOLA("canola", EnumRarity.RARE, InitBlocks.blockCanola),
|
|
|
|
FLAX("flax", EnumRarity.RARE, InitBlocks.blockFlax),
|
|
|
|
RICE("rice", EnumRarity.RARE, InitBlocks.blockRice),
|
|
|
|
COFFEE("coffee", EnumRarity.RARE, InitBlocks.blockCoffee);
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2018-08-04 04:34:52 +02:00
|
|
|
final String name;
|
|
|
|
final EnumRarity rarity;
|
|
|
|
final Block normal;
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2018-08-04 04:34:52 +02:00
|
|
|
TheWildPlants(String name, EnumRarity rarity, Block normal) {
|
2015-06-28 03:12:32 +02:00
|
|
|
this.name = name;
|
|
|
|
this.rarity = rarity;
|
2018-08-04 04:34:52 +02:00
|
|
|
this.normal = Preconditions.checkNotNull(normal, "TheWildPlants was loaded before block init!");
|
2015-06-28 03:12:32 +02:00
|
|
|
}
|
2016-11-21 16:23:48 +01:00
|
|
|
|
|
|
|
@Override
|
2018-08-04 04:34:52 +02:00
|
|
|
public String getName() {
|
2016-11-21 16:23:48 +01:00
|
|
|
return this.name;
|
|
|
|
}
|
2018-08-04 04:34:52 +02:00
|
|
|
|
|
|
|
public EnumRarity getRarity() {
|
2019-02-27 19:53:05 +01:00
|
|
|
return this.rarity;
|
2018-08-04 04:34:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public Block getNormalVersion() {
|
2019-02-27 19:53:05 +01:00
|
|
|
return this.normal;
|
2018-08-04 04:34:52 +02:00
|
|
|
}
|
2015-06-28 03:12:32 +02:00
|
|
|
}
|