/*
 * This file is part of Sponge, licensed under the MIT License (MIT).
 *
 * Copyright (c) SpongePowered <https://www.spongepowered.org>
 * Copyright (c) contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package org.spongepowered.mod.mixin.core.world;

import net.minecraft.world.World;
import net.minecraft.world.WorldProvider;
import org.spongepowered.api.world.Dimension;
import org.spongepowered.asm.mixin.Implements;
import org.spongepowered.asm.mixin.Interface;
import org.spongepowered.asm.mixin.Intrinsic;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;

@Mixin(value = WorldProvider.class)
@Implements(@Interface(iface = Dimension.class, prefix = "dimension$"))
public abstract class MixinWorldProvider {
    @Shadow protected World worldObj;
    @Shadow(remap = false) public abstract int getHeight();
    @Shadow(remap = false) public abstract int getActualHeight();

    @Intrinsic
    public int dimension$getHeight() {
        return getActualHeight();
    }

    public int getBuildHeight() {
        return getHeight();
    }

}

@@ -1786,16 +1786,37 @@
 rovider 
+implements Dimension 
 %7B%0A    @S
@@ -1894,16 +1894,23 @@
 act int 
+shadow$
 getHeigh
@@ -1961,16 +1961,23 @@
 act int 
+shadow$
 getActua
@@ -2057,16 +2057,23 @@
  return 
+shadow$
 getActua
@@ -2090,16 +2090,30 @@
 %0A    %7D%0A%0A
+    @Override%0A
     publ
@@ -2153,16 +2153,23 @@
  return 
+shadow$
 getHeigh

Clarify WorldProvider mixin methods.