2020-09-09 16:49:01 +02:00
|
|
|
package de.ellpeck.actuallyadditions.common.blocks.metalists;
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2018-08-04 04:34:52 +02:00
|
|
|
import com.google.common.base.Preconditions;
|
2020-09-09 16:49:01 +02:00
|
|
|
import de.ellpeck.actuallyadditions.common.blocks.InitBlocks;
|
2015-06-28 03:12:32 +02:00
|
|
|
import net.minecraft.block.Block;
|
2020-09-07 20:33:27 +02:00
|
|
|
import net.minecraft.item.Rarity;
|
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
|
|
|
|
2020-09-07 20:33:27 +02:00
|
|
|
CANOLA("canola", Rarity.RARE, InitBlocks.blockCanola),
|
|
|
|
FLAX("flax", Rarity.RARE, InitBlocks.blockFlax),
|
|
|
|
RICE("rice", Rarity.RARE, InitBlocks.blockRice),
|
|
|
|
COFFEE("coffee", Rarity.RARE, InitBlocks.blockCoffee);
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2018-08-04 04:34:52 +02:00
|
|
|
final String name;
|
2020-09-07 20:33:27 +02:00
|
|
|
final Rarity rarity;
|
2018-08-04 04:34:52 +02:00
|
|
|
final Block normal;
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2020-09-07 20:33:27 +02:00
|
|
|
TheWildPlants(String name, Rarity 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
|
|
|
|
2020-09-07 20:33:27 +02:00
|
|
|
public Rarity 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
|
|
|
}
|