remove nasty class visibility hack

This commit is contained in:
octarine-noise
2016-01-09 14:11:00 +01:00
parent 2e09f1f10a
commit 5bdbb366eb
2 changed files with 2 additions and 27 deletions

View File

@@ -1,25 +0,0 @@
package net.minecraft.client;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.BlockModelRenderer;
import net.minecraft.util.EnumFacing;
import java.util.BitSet;
/**
* FFS why isn't this public static...
*/
public class BFBlockModelRenderer extends BlockModelRenderer {
public class BFAmbientOcclusionFace extends BlockModelRenderer.AmbientOcclusionFace {}
private static BFBlockModelRenderer INSTANCE = new BFBlockModelRenderer();
public static BFAmbientOcclusionFace getVanillaAoObject() {
return INSTANCE.new BFAmbientOcclusionFace();
}
public static void fillQuadBounds2(Block blockIn, int[] vertexData, EnumFacing facingIn, float[] quadBounds, BitSet boundsFlags) {
INSTANCE.fillQuadBounds(blockIn, vertexData, facingIn, quadBounds, boundsFlags);
}
}

View File

@@ -1,7 +1,7 @@
package mods.octarinecore.client.render
import mods.octarinecore.common.*
import net.minecraft.client.BFBlockModelRenderer
import net.minecraft.client.renderer.BlockModelRenderer
import net.minecraft.util.EnumFacing
import net.minecraft.util.EnumFacing.*
import java.lang.Math.min
@@ -40,7 +40,7 @@ class AoData() {
}
class AoFaceData(val face: EnumFacing) {
val ao = BFBlockModelRenderer.getVanillaAoObject()
val ao = BlockModelRenderer().AmbientOcclusionFace()
val top = faceCorners[face.ordinal].topLeft.first
val left = faceCorners[face.ordinal].topLeft.second