类 PlantType
java.lang.Object
net.minecraftforge.common.PlantType
-
字段详细资料
-
INVALID_CHARACTERS
-
VALUES
-
PLAINS
-
DESERT
-
BEACH
-
CAVE
-
WATER
-
NETHER
-
CROP
-
name
-
-
构造器详细资料
-
PlantType
-
-
方法详细资料
-
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- 参数:
name
- the name of the type of plant, you had better follow the style above- 返回:
- the acquired
PlantType
, a new one if not found.
-
getName
-