remove nasty class visibility hack
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user