mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Removes misleading Nullable annotation from canCreatureSpawn (#7840)
This commit is contained in:
1 parent
8c8b31435b
commit
86352e9c19
1 file changed
+1
-1
@@ -260,7 +260,7 @@ public interface IForgeBlock
|
||||
* @param type The Mob Category Type
|
||||
* @return True to allow a mob of the specified category to spawn, false to prevent it.
|
||||
*/
|
||||
default boolean canCreatureSpawn(BlockState state, IBlockReader world, BlockPos pos, EntitySpawnPlacementRegistry.PlacementType type, @Nullable EntityType<?> entityType)
|
||||
default boolean canCreatureSpawn(BlockState state, IBlockReader world, BlockPos pos, EntitySpawnPlacementRegistry.PlacementType type, EntityType<?> entityType)
|
||||
{
|
||||
return state.isValidSpawn(world, pos, entityType);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user