Package net.minecraftforge.common
Class PlantType
java.lang.Object
net.minecraftforge.common.PlantType
-
Field Details
-
INVALID_CHARACTERS
-
VALUES
-
PLAINS
-
DESERT
-
BEACH
-
CAVE
-
WATER
-
NETHER
-
CROP
-
name
-
-
Constructor Details
-
PlantType
-
-
Method Details
-
get
Getting a customPlantType
, or an existing one if it has the same name as that one. Your plant should implementIPlantable
and return this custom type inIPlantable.getPlantType(BlockGetter, BlockPos)
.If your new plant grows on blocks like any one of them above, never create a new
PlantType
. This Type is only functioning inBlock.canSustainPlant(BlockState, BlockGetter, BlockPos, Direction, IPlantable)
, which you are supposed to override this function in your new block and create a new plant type to grow on that block. This method can be called during parallel loading- Parameters:
name
- the name of the type of plant, you had better follow the style above- Returns:
- the acquired
PlantType
, a new one if not found.
-
getName
-