Fixed PlantType enum not using IExtensibleEnum.

This commit is contained in:
LexManos committed 2020-05-03 13:03:38 -07:00
commit dc3dec48b1
3 files changed
+132 -2

No files matched your search

@@ -22,7 +22,8 @@ package net.minecraftforge.common;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IWorldReader;
public enum PlantType
// TODO 1.16: This should not be an enum. Change it to something that functions similarly to ToolType
public enum PlantType implements IExtensibleEnum
{
Plains,
Desert,
@@ -45,5 +46,8 @@ public enum PlantType
* @param name the name of the type of plant, you had better follow the style above
* @return the acquired {@link PlantType}, a new one if not found.
*/
public static PlantType create(String name){ return null; }
public static PlantType create(String name)
{
throw new IllegalStateException("Enum not extended");
}
}