当前位置: 首页>>代码示例>>Java>>正文


Java MapItemRenderer类代码示例

本文整理汇总了Java中net.minecraft.client.gui.MapItemRenderer的典型用法代码示例。如果您正苦于以下问题:Java MapItemRenderer类的具体用法?Java MapItemRenderer怎么用?Java MapItemRenderer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


MapItemRenderer类属于net.minecraft.client.gui包,在下文中一共展示了MapItemRenderer类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: EntityRenderer

import net.minecraft.client.gui.MapItemRenderer; //导入依赖的package包/类
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;
        }
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:27,代码来源:EntityRenderer.java

示例2: EntityRenderer

import net.minecraft.client.gui.MapItemRenderer; //导入依赖的package包/类
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;
		}
	}
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:24,代码来源:EntityRenderer.java

示例3: EntityRenderer

import net.minecraft.client.gui.MapItemRenderer; //导入依赖的package包/类
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;
        }
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:25,代码来源:EntityRenderer.java

示例4: EntityRenderer

import net.minecraft.client.gui.MapItemRenderer; //导入依赖的package包/类
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;
        }
    }
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:25,代码来源:EntityRenderer.java

示例5: EntityRenderer

import net.minecraft.client.gui.MapItemRenderer; //导入依赖的package包/类
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;
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:17,代码来源:EntityRenderer.java

示例6: EntityRenderer

import net.minecraft.client.gui.MapItemRenderer; //导入依赖的package包/类
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;
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:17,代码来源:EntityRenderer.java

示例7: getMapItemRenderer

import net.minecraft.client.gui.MapItemRenderer; //导入依赖的package包/类
public MapItemRenderer getMapItemRenderer()
{
    return this.theMapItemRenderer;
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:EntityRenderer.java

示例8: getMapItemRenderer

import net.minecraft.client.gui.MapItemRenderer; //导入依赖的package包/类
public MapItemRenderer getMapItemRenderer() {
	return this.theMapItemRenderer;
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:4,代码来源:EntityRenderer.java

示例9: getMapItemRenderer

import net.minecraft.client.gui.MapItemRenderer; //导入依赖的package包/类
public MapItemRenderer getMapItemRenderer()
{
	return this.theMapItemRenderer;
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:5,代码来源:EntityRenderer.java

示例10: ItemRenderer

import net.minecraft.client.gui.MapItemRenderer; //导入依赖的package包/类
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());
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:5,代码来源:ItemRenderer.java

示例11: ItemRenderer

import net.minecraft.client.gui.MapItemRenderer; //导入依赖的package包/类
public ItemRenderer(Minecraft par1Minecraft)
{
    this.mc = par1Minecraft;
    this.mapItemRenderer = new MapItemRenderer(par1Minecraft.gameSettings, par1Minecraft.getTextureManager());
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:6,代码来源:ItemRenderer.java


注:本文中的net.minecraft.client.gui.MapItemRenderer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。