/** * The {@code EntityHeightMap} class returns an adjusted entity height (which fixes certain MobEntity's with * unusually tall heights) */publicclassEntityHeights{
// Get entity height (adjust for specific classes)floatentityHeight=entity.getHeight();if(entityinstanceofEnderDragonEntity){entityHeight=3F;}returnentityHeight;}}