2015-08-29 14:33:25 +02:00
|
|
|
/*
|
2016-05-16 22:52:27 +02:00
|
|
|
* This file ("TheWildPlants.java") is part of the Actually Additions mod for Minecraft.
|
2015-08-29 14:33:25 +02: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-08-29 14:33:25 +02:00
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2017-01-01 16:23:26 +01:00
|
|
|
* © 2015-2017 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
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;
|
2021-02-28 11:35:10 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.blocks.ActuallyBlocks;
|
2015-06-28 03:12:32 +02:00
|
|
|
import net.minecraft.block.Block;
|
2021-02-26 22:15:48 +01: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
|
|
|
|
2021-02-28 11:35:10 +01:00
|
|
|
@Deprecated
|
2018-08-04 04:34:52 +02:00
|
|
|
public enum TheWildPlants implements IStringSerializable {
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2021-05-02 17:47:50 +02:00
|
|
|
CANOLA("canola", Rarity.RARE, ActuallyBlocks.CANOLA),
|
|
|
|
FLAX("flax", Rarity.RARE, ActuallyBlocks.FLAX),
|
|
|
|
RICE("rice", Rarity.RARE, ActuallyBlocks.RICE),
|
|
|
|
COFFEE("coffee", Rarity.RARE, ActuallyBlocks.COFFEE);
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2018-08-04 04:34:52 +02:00
|
|
|
final String name;
|
2021-02-26 22:15:48 +01:00
|
|
|
final Rarity rarity;
|
2018-08-04 04:34:52 +02:00
|
|
|
final Block normal;
|
2015-06-28 03:12:32 +02:00
|
|
|
|
2021-02-26 22:15:48 +01: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
|
2021-08-22 17:09:06 +02:00
|
|
|
public String getSerializedName() {
|
2016-11-21 16:23:48 +01:00
|
|
|
return this.name;
|
|
|
|
}
|
2018-08-04 04:34:52 +02:00
|
|
|
|
2021-02-26 22:15:48 +01: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
|
|
|
}
|
2021-02-26 22:15:48 +01:00
|
|
|
}
|