PlacementType
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Enum Constants
PlacementType is an enum. It has 4 enum constants. They are accessible using the code below.
Methods
Checks if a specific entity type can spawn in the world at the given position with this PlacementType.
Returns: True if the entity type can spawn. False otherwise.
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter world | Type MCWorld | Description A World object. |
Parameter pos | Type BlockPos | Description The position to check at. |
Parameter entityType | Type MCEntityType | Description The EntityType to check for. |