Java 类net.minecraft.client.gui.MapItemRenderer 实例源码

项目:DecompiledMinecraft    文件:EntityRenderer.java   
public EntityRenderer(Minecraft mcIn, IResourceManager resourceManagerIn)
{
    this.shaderIndex = shaderCount;
    this.useShader = false;
    this.frameCount = 0;
    this.mc = mcIn;
    this.resourceManager = resourceManagerIn;
    this.itemRenderer = mcIn.getItemRenderer();
    this.theMapItemRenderer = new MapItemRenderer(mcIn.getTextureManager());
    this.lightmapTexture = new DynamicTexture(16, 16);
    this.locationLightMap = mcIn.getTextureManager().getDynamicTextureLocation("lightMap", this.lightmapTexture);
    this.lightmapColors = this.lightmapTexture.getTextureData();
    this.theShaderGroup = null;

    for (int i = 0; i < 32; ++i)
    {
        for (int j = 0; j < 32; ++j)
        {
            float f = (float)(j - 16);
            float f1 = (float)(i - 16);
            float f2 = MathHelper.sqrt_float(f * f + f1 * f1);
            this.rainXCoords[i << 5 | j] = -f1 / f2;
            this.rainYCoords[i << 5 | j] = f / f2;
        }
    }
}
项目:BaseClient    文件:EntityRenderer.java   
public EntityRenderer(Minecraft mcIn, IResourceManager resourceManagerIn)
{
    this.shaderIndex = shaderCount;
    this.useShader = false;
    this.frameCount = 0;
    this.mc = mcIn;
    this.resourceManager = resourceManagerIn;
    this.itemRenderer = mcIn.getItemRenderer();
    this.theMapItemRenderer = new MapItemRenderer(mcIn.getTextureManager());
    this.lightmapTexture = new DynamicTexture(16, 16);
    this.locationLightMap = mcIn.getTextureManager().getDynamicTextureLocation("lightMap", this.lightmapTexture);
    this.lightmapColors = this.lightmapTexture.getTextureData();
    this.theShaderGroup = null;

    for (int i = 0; i < 32; ++i)
    {
        for (int j = 0; j < 32; ++j)
        {
            float f = (float)(j - 16);
            float f1 = (float)(i - 16);
            float f2 = MathHelper.sqrt_float(f * f + f1 * f1);
            this.rainXCoords[i << 5 | j] = -f1 / f2;
            this.rainYCoords[i << 5 | j] = f / f2;
        }
    }
}
项目:BaseClient    文件:EntityRenderer.java   
public EntityRenderer(Minecraft mcIn, IResourceManager resourceManagerIn) {
    this.shaderIndex = shaderCount;
    this.useShader = false;
    this.frameCount = 0;
    this.mc = mcIn;
    this.resourceManager = resourceManagerIn;
    this.itemRenderer = mcIn.getItemRenderer();
    this.theMapItemRenderer = new MapItemRenderer(mcIn.getTextureManager());
    this.lightmapTexture = new DynamicTexture(16, 16);
    this.locationLightMap = mcIn.getTextureManager().getDynamicTextureLocation("lightMap", this.lightmapTexture);
    this.lightmapColors = this.lightmapTexture.getTextureData();
    this.theShaderGroup = null;

    for (int i = 0; i < 32; ++i) {
        for (int j = 0; j < 32; ++j) {
            float f = (float) (j - 16);
            float f1 = (float) (i - 16);
            float f2 = MathHelper.sqrt_float(f * f + f1 * f1);
            this.rainXCoords[i << 5 | j] = -f1 / f2;
            this.rainYCoords[i << 5 | j] = f / f2;
        }
    }
}
项目:Backmemed    文件:EntityRenderer.java   
public EntityRenderer(Minecraft mcIn, IResourceManager resourceManagerIn)
{
    this.shaderIndex = SHADER_COUNT;
    this.mc = mcIn;
    this.resourceManager = resourceManagerIn;
    this.itemRenderer = mcIn.getItemRenderer();
    this.theMapItemRenderer = new MapItemRenderer(mcIn.getTextureManager());
    this.lightmapTexture = new DynamicTexture(16, 16);
    this.locationLightMap = mcIn.getTextureManager().getDynamicTextureLocation("lightMap", this.lightmapTexture);
    this.lightmapColors = this.lightmapTexture.getTextureData();
    this.theShaderGroup = null;

    for (int i = 0; i < 32; ++i)
    {
        for (int j = 0; j < 32; ++j)
        {
            float f = (float)(j - 16);
            float f1 = (float)(i - 16);
            float f2 = MathHelper.sqrt(f * f + f1 * f1);
            this.rainXCoords[i << 5 | j] = -f1 / f2;
            this.rainYCoords[i << 5 | j] = f / f2;
        }
    }
}
项目:CustomWorldGen    文件:EntityRenderer.java   
public EntityRenderer(Minecraft mcIn, IResourceManager resourceManagerIn)
{
    this.shaderIndex = SHADER_COUNT;
    this.mc = mcIn;
    this.resourceManager = resourceManagerIn;
    this.itemRenderer = mcIn.getItemRenderer();
    this.theMapItemRenderer = new MapItemRenderer(mcIn.getTextureManager());
    this.lightmapTexture = new DynamicTexture(16, 16);
    this.locationLightMap = mcIn.getTextureManager().getDynamicTextureLocation("lightMap", this.lightmapTexture);
    this.lightmapColors = this.lightmapTexture.getTextureData();
    this.theShaderGroup = null;

    for (int i = 0; i < 32; ++i)
    {
        for (int j = 0; j < 32; ++j)
        {
            float f = (float)(j - 16);
            float f1 = (float)(i - 16);
            float f2 = MathHelper.sqrt_float(f * f + f1 * f1);
            this.rainXCoords[i << 5 | j] = -f1 / f2;
            this.rainYCoords[i << 5 | j] = f / f2;
        }
    }
}
项目:4Space-5    文件:EntityRenderer.java   
public EntityRenderer(Minecraft p_i45076_1_, IResourceManager p_i45076_2_)
{
    this.shaderIndex = shaderCount;
    this.cameraZoom = 1.0D;
    this.prevFrameTime = Minecraft.getSystemTime();
    this.random = new Random();
    this.fogColorBuffer = GLAllocation.createDirectFloatBuffer(16);
    this.mc = p_i45076_1_;
    this.resourceManager = p_i45076_2_;
    this.theMapItemRenderer = new MapItemRenderer(p_i45076_1_.getTextureManager());
    this.itemRenderer = new ItemRenderer(p_i45076_1_);
    this.lightmapTexture = new DynamicTexture(16, 16);
    this.locationLightMap = p_i45076_1_.getTextureManager().getDynamicTextureLocation("lightMap", this.lightmapTexture);
    this.lightmapColors = this.lightmapTexture.getTextureData();
    this.theShaderGroup = null;
}
项目:Resilience-Client-Source    文件:EntityRenderer.java   
public EntityRenderer(Minecraft p_i45076_1_, IResourceManager p_i45076_2_)
{
    this.shaderIndex = shaderCount;
    this.cameraZoom = 1.0D;
    this.prevFrameTime = Minecraft.getSystemTime();
    this.random = new Random();
    this.fogColorBuffer = GLAllocation.createDirectFloatBuffer(16);
    this.mc = p_i45076_1_;
    this.resourceManager = p_i45076_2_;
    this.theMapItemRenderer = new MapItemRenderer(p_i45076_1_.getTextureManager());
    this.itemRenderer = new ItemRenderer(p_i45076_1_);
    this.lightmapTexture = new DynamicTexture(16, 16);
    this.locationLightMap = p_i45076_1_.getTextureManager().getDynamicTextureLocation("lightMap", this.lightmapTexture);
    this.lightmapColors = this.lightmapTexture.getTextureData();
    this.theShaderGroup = null;
}
项目:4Space-1.7    文件:EntityRenderer.java   
public EntityRenderer(Minecraft p_i45076_1_, IResourceManager p_i45076_2_)
{
    this.shaderIndex = shaderCount;
    this.cameraZoom = 1.0D;
    this.prevFrameTime = Minecraft.getSystemTime();
    this.random = new Random();
    this.fogColorBuffer = GLAllocation.createDirectFloatBuffer(16);
    this.mc = p_i45076_1_;
    this.resourceManager = p_i45076_2_;
    this.theMapItemRenderer = new MapItemRenderer(p_i45076_1_.getTextureManager());
    this.itemRenderer = new ItemRenderer(p_i45076_1_);
    this.lightmapTexture = new DynamicTexture(16, 16);
    this.locationLightMap = p_i45076_1_.getTextureManager().getDynamicTextureLocation("lightMap", this.lightmapTexture);
    this.lightmapColors = this.lightmapTexture.getTextureData();
    this.theShaderGroup = null;
}
项目:ExpandedRailsMod    文件:EntityRenderer.java   
public EntityRenderer(Minecraft mcIn, IResourceManager resourceManagerIn)
{
    this.shaderIndex = SHADER_COUNT;
    this.mc = mcIn;
    this.resourceManager = resourceManagerIn;
    this.itemRenderer = mcIn.getItemRenderer();
    this.theMapItemRenderer = new MapItemRenderer(mcIn.getTextureManager());
    this.lightmapTexture = new DynamicTexture(16, 16);
    this.locationLightMap = mcIn.getTextureManager().getDynamicTextureLocation("lightMap", this.lightmapTexture);
    this.lightmapColors = this.lightmapTexture.getTextureData();
    this.theShaderGroup = null;

    for (int i = 0; i < 32; ++i)
    {
        for (int j = 0; j < 32; ++j)
        {
            float f = (float)(j - 16);
            float f1 = (float)(i - 16);
            float f2 = MathHelper.sqrt_float(f * f + f1 * f1);
            this.rainXCoords[i << 5 | j] = -f1 / f2;
            this.rainYCoords[i << 5 | j] = f / f2;
        }
    }
}
项目:Cauldron    文件:EntityRenderer.java   
public EntityRenderer(Minecraft p_i45076_1_, IResourceManager p_i45076_2_)
{
    this.shaderIndex = shaderCount;
    this.cameraZoom = 1.0D;
    this.prevFrameTime = Minecraft.getSystemTime();
    this.random = new Random();
    this.fogColorBuffer = GLAllocation.createDirectFloatBuffer(16);
    this.mc = p_i45076_1_;
    this.resourceManager = p_i45076_2_;
    this.theMapItemRenderer = new MapItemRenderer(p_i45076_1_.getTextureManager());
    this.itemRenderer = new ItemRenderer(p_i45076_1_);
    this.lightmapTexture = new DynamicTexture(16, 16);
    this.locationLightMap = p_i45076_1_.getTextureManager().getDynamicTextureLocation("lightMap", this.lightmapTexture);
    this.lightmapColors = this.lightmapTexture.getTextureData();
    this.theShaderGroup = null;
}
项目:Cauldron    文件:EntityRenderer.java   
public EntityRenderer(Minecraft p_i45076_1_, IResourceManager p_i45076_2_)
{
    this.shaderIndex = shaderCount;
    this.cameraZoom = 1.0D;
    this.prevFrameTime = Minecraft.getSystemTime();
    this.random = new Random();
    this.fogColorBuffer = GLAllocation.createDirectFloatBuffer(16);
    this.mc = p_i45076_1_;
    this.resourceManager = p_i45076_2_;
    this.theMapItemRenderer = new MapItemRenderer(p_i45076_1_.getTextureManager());
    this.itemRenderer = new ItemRenderer(p_i45076_1_);
    this.lightmapTexture = new DynamicTexture(16, 16);
    this.locationLightMap = p_i45076_1_.getTextureManager().getDynamicTextureLocation("lightMap", this.lightmapTexture);
    this.lightmapColors = this.lightmapTexture.getTextureData();
    this.theShaderGroup = null;
}
项目:DecompiledMinecraft    文件:EntityRenderer.java   
public MapItemRenderer getMapItemRenderer()
{
    return this.theMapItemRenderer;
}
项目:BaseClient    文件:EntityRenderer.java   
public MapItemRenderer getMapItemRenderer()
{
    return this.theMapItemRenderer;
}
项目:BaseClient    文件:EntityRenderer.java   
public MapItemRenderer getMapItemRenderer() {
    return this.theMapItemRenderer;
}
项目:Backmemed    文件:EntityRenderer.java   
public MapItemRenderer getMapItemRenderer()
{
    return this.theMapItemRenderer;
}
项目:CustomWorldGen    文件:EntityRenderer.java   
public MapItemRenderer getMapItemRenderer()
{
    return this.theMapItemRenderer;
}
项目:4Space-5    文件:EntityRenderer.java   
public MapItemRenderer getMapItemRenderer()
{
    return this.theMapItemRenderer;
}
项目:Resilience-Client-Source    文件:EntityRenderer.java   
public MapItemRenderer getMapItemRenderer()
{
    return this.theMapItemRenderer;
}
项目:4Space-1.7    文件:EntityRenderer.java   
public MapItemRenderer getMapItemRenderer()
{
    return this.theMapItemRenderer;
}
项目:ExpandedRailsMod    文件:EntityRenderer.java   
public MapItemRenderer getMapItemRenderer()
{
    return this.theMapItemRenderer;
}
项目:Cauldron    文件:EntityRenderer.java   
public MapItemRenderer getMapItemRenderer()
{
    return this.theMapItemRenderer;
}
项目:Cauldron    文件:EntityRenderer.java   
public MapItemRenderer getMapItemRenderer()
{
    return this.theMapItemRenderer;
}
项目:RuneCraftery    文件:ItemRenderer.java   
public ItemRenderer(Minecraft p_i1247_1_) {
   this.field_78455_a = p_i1247_1_;
   this.field_78449_f = new MapItemRenderer(p_i1247_1_.field_71474_y, p_i1247_1_.func_110434_K());
}
项目:RuneCraftery    文件:ItemRenderer.java   
public ItemRenderer(Minecraft par1Minecraft)
{
    this.mc = par1Minecraft;
    this.mapItemRenderer = new MapItemRenderer(par1Minecraft.gameSettings, par1Minecraft.getTextureManager());
}
项目:BetterNutritionMod    文件:ItemRenderer.java   
public ItemRenderer(Minecraft par1Minecraft)
{
    this.mc = par1Minecraft;
    this.mapItemRenderer = new MapItemRenderer(par1Minecraft.gameSettings, par1Minecraft.getTextureManager());
}