mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-14 01:04:24 +00:00
Fixed PlantType enum not using IExtensibleEnum.
This commit is contained in:
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");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user