Fixed PlantType not extending IExtensibleEnum, Closes #6286

This commit is contained in:
Patrick Ocampo authored and GitHub committed 2020-04-08 17:17:38 -07:00
1 parent 713c24d916
commit 5e554530ac
3 files changed
+134 -3

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,9 @@ 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");
}
}