I am no longer stumped. Here's how I got the biome. This example just prints it to console.
@SubscribeEvent
public void checkBiomeOnTick(PlayerTickEvent event) {
//get player's current position
BlockPos playerPosition = event.player.getPosition();
//get world biome from players current position
Biome currentBiome = event.player.getEntityWorld().getBiomeForCoordsBody(playerPosition);
//get biome name data and convert to string
String biomeNameString = currentBiome.getBiomeName();
//print biome name to console
System.out.println(biomeNameString);
}
I'm working on a mod to perform an action to the player when a biome transition is detected. Example, I walk from a minecraft:plains biome to a minecraft:forest biome and then my action occurs. I have not been able to find an event to hook into that can listen for a biome edge transition. I'm coding in 1.12.2. Any suggestions?