本文整理汇总了Java中net.minecraft.client.model.ModelSheep1类的典型用法代码示例。如果您正苦于以下问题:Java ModelSheep1类的具体用法?Java ModelSheep1怎么用?Java ModelSheep1使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ModelSheep1类属于net.minecraft.client.model包,在下文中一共展示了ModelSheep1类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createModel
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
@Override
public ModelQuadruped createModel(ItemStack itemStack, EntityLivingBase entity)
{
transforms.defineParts();
final ICarvingVariation variation = CarvingUtils.getChiselRegistry().getVariation(itemStack);
final BlockPos position = entity.getPosition();
final World world = entity.getEntityWorld();
final ModelQuadruped quadrupedModel = new ModelSheep1();
transforms.getBodyPartDefinition().ifPresent(definition -> quadrupedModel.body = getChiselBodyModelRenderer(variation, definition, world, position));
transforms.getHeadPartDefinition().ifPresent(definition -> quadrupedModel.head = getChiselBodyModelRenderer(variation, definition, world, position));
transforms.getLeg1PartDefinition().ifPresent(definition -> quadrupedModel.leg1 = getChiselBodyModelRenderer(variation, definition, world, position));
transforms.getLeg2PartDefinition().ifPresent(definition -> quadrupedModel.leg2 = getChiselBodyModelRenderer(variation, definition, world, position));
transforms.getLeg3PartDefinition().ifPresent(definition -> quadrupedModel.leg3 = getChiselBodyModelRenderer(variation, definition, world, position));
transforms.getLeg4PartDefinition().ifPresent(definition -> quadrupedModel.leg4 = getChiselBodyModelRenderer(variation, definition, world, position));
return quadrupedModel;
}
示例2: getModelRendererForBlockState
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
/**
* Utility method to convert an IBakedModel to a ModelRenderer for use on an entity body part.
* @param partDefinition transforms for the body part
* @param blockState block state to use when retrieving the model
* @param model the IBakedModel to transform
* @return a body part for the entity
*/
default ModelRenderer getModelRendererForBlockState(PartDefinition partDefinition, IBlockState blockState, IBakedModel model)
{
final ModelRenderer renderer = new ModelRenderer(new ModelSheep1(), 0, 0);
if (partDefinition == null) {
return renderer;
}
renderer.setRotationPoint(
partDefinition.getRotationPoint().x,
partDefinition.getRotationPoint().y,
partDefinition.getRotationPoint().z
);
final EntityMesh box = new EntityMesh(renderer);
addBlockModelToEntityMesh(box, partDefinition, blockState, model);
renderer.cubeList.add(box);
return renderer;
}
示例3: createModel
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
@Override
public ModelQuadruped createModel(ItemStack itemStack, EntityLivingBase entity)
{
transforms.defineParts();
final ModelQuadruped quadrupedModel = new ModelSheep1();
quadrupedModel.body = defaultRenderer;
quadrupedModel.head = defaultRenderer;
quadrupedModel.leg1 = defaultRenderer;
quadrupedModel.leg2 = defaultRenderer;
quadrupedModel.leg3 = defaultRenderer;
quadrupedModel.leg4 = defaultRenderer;
final IBakedModel bakedModelForItem = getBakedModelForItem(itemStack, entity);
transforms.getBodyPartDefinition().ifPresent(definition -> quadrupedModel.body = getModelRendererForBlockState(definition, null, bakedModelForItem));
transforms.getHeadPartDefinition().ifPresent(definition -> quadrupedModel.head = getModelRendererForBlockState(definition, null, bakedModelForItem));
transforms.getLeg1PartDefinition().ifPresent(definition -> quadrupedModel.leg1 = getModelRendererForBlockState(definition, null, bakedModelForItem));
transforms.getLeg2PartDefinition().ifPresent(definition -> quadrupedModel.leg2 = getModelRendererForBlockState(definition, null, bakedModelForItem));
transforms.getLeg3PartDefinition().ifPresent(definition -> quadrupedModel.leg3 = getModelRendererForBlockState(definition, null, bakedModelForItem));
transforms.getLeg4PartDefinition().ifPresent(definition -> quadrupedModel.leg4 = getModelRendererForBlockState(definition, null, bakedModelForItem));
return quadrupedModel;
}
示例4: doTheRenderThing
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
public void doTheRenderThing(){
RenderingRegistry.registerEntityRenderingHandler(EntityFrankenstein.class, new RenderFrankenstein());
RenderingRegistry.registerEntityRenderingHandler(EntityWarhorse.class, new RenderWarhorse());
RenderingRegistry.registerEntityRenderingHandler(EntityPeep.class, new RenderPeep());
RenderingRegistry.registerEntityRenderingHandler(EntityUnicorn.class, new RenderUnicorn());
RenderingRegistry.registerEntityRenderingHandler(EntityCalavera.class, new RenderCalavera());
RenderingRegistry.registerEntityRenderingHandler(EntityGingerbread.class, new RenderGingerbread());
RenderingRegistry.registerEntityRenderingHandler(EntityShoggoth.class, new RenderShoggoth());
RenderingRegistry.registerEntityRenderingHandler(EntityDaySkeleton.class, new RenderSkeleton());
RenderingRegistry.registerEntityRenderingHandler(EntityDayZombie.class, new RenderZombie());
RenderingRegistry.registerEntityRenderingHandler(EntityShadowSlime.class, new RenderShadowSlime());
RenderingRegistry.registerEntityRenderingHandler(EntityCandySheep.class, new RenderCandySheep(new ModelSheep2(), new ModelSheep1(), 0.7F));
RenderingRegistry.registerEntityRenderingHandler(EntityOldEnderman.class, new RenderOldEnderman());
if(Config.heads && !Loader.isModLoaded("foxlib")){
TileEntityRendererDispatcher.instance.mapSpecialRenderers.remove(TileEntitySkull.class);
BlockSkullRenderer blockSkullRenderer = new BlockSkullRenderer();
ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySkull.class, blockSkullRenderer);
}
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityChestRidiculous.class, new RenderTileEntityChest());
BlockChestRidiculous.render = RenderingRegistry.getNextAvailableRenderId();
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(RidiculousBlocks.chest), new RenderItemChest());
ShaderHelper.initShaders();
}
示例5: makeEntityRender
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
public IEntityRenderer makeEntityRender(ModelBase modelBase, float shadowSize)
{
RenderManager rendermanager = Minecraft.getMinecraft().getRenderManager();
Render render = (Render)rendermanager.getEntityRenderMap().get(EntitySheep.class);
if (!(render instanceof RenderSheep))
{
Config.warn("Not a RenderSheep: " + render);
return null;
}
else
{
if (render.getEntityClass() == null)
{
RenderSheep rendersheep = new RenderSheep(rendermanager);
rendersheep.mainModel = new ModelSheep2();
rendersheep.shadowSize = 0.7F;
render = rendersheep;
}
RenderSheep rendersheep1 = (RenderSheep)render;
List<LayerRenderer<EntitySheep>> list = rendersheep1.getLayerRenderers();
Iterator iterator = list.iterator();
while (iterator.hasNext())
{
LayerRenderer layerrenderer = (LayerRenderer)iterator.next();
if (layerrenderer instanceof LayerSheepWool)
{
iterator.remove();
}
}
LayerSheepWool layersheepwool = new LayerSheepWool(rendersheep1);
layersheepwool.sheepModel = (ModelSheep1)modelBase;
rendersheep1.addLayer(layersheepwool);
return rendersheep1;
}
}
示例6: createModelRenderer
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
default ModelRenderer createModelRenderer(PartDefinition partDefinition) {
final ModelRenderer renderer = new ModelRenderer(new ModelSheep1(), 0, 0);
if (partDefinition == null) {
return renderer;
}
renderer.setRotationPoint(
partDefinition.getRotationPoint().x,
partDefinition.getRotationPoint().y,
partDefinition.getRotationPoint().z
);
return renderer;
}
示例7: makeModel
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
public ModelBase makeModel()
{
return new ModelSheep1();
}
示例8: createModel
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
@Override
public ModelQuadruped createModel(ItemStack itemStack, EntityLivingBase entity)
{
ModelQuadruped quadruped = super.createModel(itemStack, entity);
quadruped.body = new ModelRenderer(new ModelSheep1(), 0, 0);
quadruped.head = createModelRenderer(getTransforms().getHeadPartDefinition().get());
final EntityMesh mesh = new EntityMesh(quadruped.head);
quadruped.head.cubeList.add(mesh);
final Matrix4f antenna1Matrix = new Matrix4f();
antenna1Matrix.translate(new Vector3f(1, -3, -4));
antenna1Matrix.scale(new Vector3f(20, -20, 20));
antenna1Matrix.rotate(fifteenDegrees, new Vector3f(1, 0, 0));
antenna1Matrix.rotate(-thirtyDegrees, new Vector3f(0, 0, 1));
antenna1Matrix.rotate(-nintyDegrees, new Vector3f(0, 1, 0));
antenna1Matrix.translate(new Vector3f(-0.5f, -0.5f, -0.5f));
final IBakedModel bakedModelForItem = getBakedModelForItem(itemStack, entity);
addBlockModelToEntityMesh(mesh,
new PartDefinition(
new Vector3f(0, 0, 0),
antenna1Matrix,
new Matrix3f()),
null,
bakedModelForItem
);
final Matrix4f antenna2Matrix = new Matrix4f();
antenna2Matrix.translate(new Vector3f(-1, -3, -4));
antenna2Matrix.scale(new Vector3f(20, -20, 20));
antenna2Matrix.rotate(fifteenDegrees, new Vector3f(1, 0, 0));
antenna2Matrix.rotate(thirtyDegrees, new Vector3f(0, 0, 1));
antenna2Matrix.rotate(nintyDegrees, new Vector3f(0, 1, 0));
antenna2Matrix.translate(new Vector3f(-0.5f, -0.5f, -0.5f));
addBlockModelToEntityMesh(mesh,
new PartDefinition(
new Vector3f(0, 0, 0),
antenna2Matrix,
new Matrix3f()),
null,
bakedModelForItem
);
return quadruped;
}
示例9: createModel
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
@Override
public ModelQuadruped createModel(ItemStack itemStack, EntityLivingBase entity)
{
ModelQuadruped quadruped = super.createModel(itemStack, entity);
final float nintyDegrees = (float) Math.toRadians(90);
quadruped.body = new ModelRenderer(new ModelSheep1(), 0, 0);
quadruped.head = createModelRenderer(getTransforms().getHeadPartDefinition().get());
final EntityMesh mesh = new EntityMesh(quadruped.head);
quadruped.head.cubeList.add(mesh);
final Matrix4f antenna1Matrix = new Matrix4f();
antenna1Matrix.translate(new Vector3f(8, 0, -2));
antenna1Matrix.scale(new Vector3f(20, -20, 20));
antenna1Matrix.rotate(-nintyDegrees, new Vector3f(0, 1, 0));
antenna1Matrix.translate(new Vector3f(-0.5f, -0.5f, -0.5f));
final IBakedModel bakedModelForItem = getBakedModelForItem(itemStack, entity);
addBlockModelToEntityMesh(mesh,
new PartDefinition(
new Vector3f(0, 0, 0),
antenna1Matrix,
new Matrix3f()),
null,
bakedModelForItem
);
final Matrix4f antenna2Matrix = new Matrix4f();
antenna2Matrix.translate(new Vector3f(-8, 0, -2));
antenna2Matrix.scale(new Vector3f(20, -20, 20));
antenna2Matrix.rotate(nintyDegrees, new Vector3f(0, 1, 0));
antenna2Matrix.translate(new Vector3f(-0.5f, -0.5f, -0.5f));
addBlockModelToEntityMesh(mesh,
new PartDefinition(
new Vector3f(0, 0, 0),
antenna2Matrix,
new Matrix3f()),
null,
bakedModelForItem
);
return quadruped;
}
示例10: LayerSheepChiselWool
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
public LayerSheepChiselWool(RenderChiselSheep sheepRendererIn)
{
sheepRenderer = sheepRendererIn;
defaultBody = new ModelSheep1();
sheepModel = defaultBody;
}
示例11: RenderManager
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
private RenderManager()
{
this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider());
this.entityRenderMap.put(EntitySpider.class, new RenderSpider());
this.entityRenderMap.put(EntityPig.class, new RenderPig(new ModelPig(), new ModelPig(0.5F), 0.7F));
this.entityRenderMap.put(EntitySheep.class, new RenderSheep(new ModelSheep2(), new ModelSheep1(), 0.7F));
this.entityRenderMap.put(EntityCow.class, new RenderCow(new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityWolf.class, new RenderWolf(new ModelWolf(), new ModelWolf(), 0.5F));
this.entityRenderMap.put(EntityChicken.class, new RenderChicken(new ModelChicken(), 0.3F));
this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(new ModelOcelot(), 0.4F));
this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish());
this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper());
this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman());
this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan());
this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton());
this.entityRenderMap.put(EntityWitch.class, new RenderWitch());
this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze());
this.entityRenderMap.put(EntityZombie.class, new RenderZombie());
this.entityRenderMap.put(EntitySlime.class, new RenderSlime(new ModelSlime(16), new ModelSlime(0), 0.25F));
this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube());
this.entityRenderMap.put(EntityPlayer.class, new RenderPlayer());
this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(new ModelZombie(), 0.5F, 6.0F));
this.entityRenderMap.put(EntityGhast.class, new RenderGhast());
this.entityRenderMap.put(EntitySquid.class, new RenderSquid(new ModelSquid(), 0.7F));
this.entityRenderMap.put(EntityVillager.class, new RenderVillager());
this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem());
this.entityRenderMap.put(EntityBat.class, new RenderBat());
this.entityRenderMap.put(EntityDragon.class, new RenderDragon());
this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal());
this.entityRenderMap.put(EntityWither.class, new RenderWither());
this.entityRenderMap.put(Entity.class, new RenderEntity());
this.entityRenderMap.put(EntityPainting.class, new RenderPainting());
this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame());
this.entityRenderMap.put(EntityLeashKnot.class, new RenderLeashKnot());
this.entityRenderMap.put(EntityArrow.class, new RenderArrow());
this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(Items.snowball));
this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(Items.ender_pearl));
this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(Items.ender_eye));
this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(Items.egg));
this.entityRenderMap.put(EntityPotion.class, new RenderSnowball(Items.potionitem, 16384));
this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(Items.experience_bottle));
this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(Items.fireworks));
this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(2.0F));
this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(0.5F));
this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull());
this.entityRenderMap.put(EntityItem.class, new RenderItem());
this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb());
this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed());
this.entityRenderMap.put(EntityFallingBlock.class, new RenderFallingBlock());
this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart());
this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner());
this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart());
this.entityRenderMap.put(EntityBoat.class, new RenderBoat());
this.entityRenderMap.put(EntityFishHook.class, new RenderFish());
this.entityRenderMap.put(EntityHorse.class, new RenderHorse(new ModelHorse(), 0.75F));
this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt());
Iterator var1 = this.entityRenderMap.values().iterator();
while (var1.hasNext())
{
Render var2 = (Render)var1.next();
var2.setRenderManager(this);
}
}
示例12: RenderManager
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
private RenderManager()
{
this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider());
this.entityRenderMap.put(EntitySpider.class, new RenderSpider());
this.entityRenderMap.put(EntityPig.class, new RenderPig(new ModelPig(), new ModelPig(0.5F), 0.7F));
this.entityRenderMap.put(EntitySheep.class, new RenderSheep(new ModelSheep2(), new ModelSheep1(), 0.7F));
this.entityRenderMap.put(EntityCow.class, new RenderCow(new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityWolf.class, new RenderWolf(new ModelWolf(), new ModelWolf(), 0.5F));
this.entityRenderMap.put(EntityChicken.class, new RenderChicken(new ModelChicken(), 0.3F));
this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(new ModelOcelot(), 0.4F));
this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish());
this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper());
this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman());
this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan());
this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton());
this.entityRenderMap.put(EntityWitch.class, new RenderWitch());
this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze());
this.entityRenderMap.put(EntityZombie.class, new RenderZombie());
this.entityRenderMap.put(EntitySlime.class, new RenderSlime(new ModelSlime(16), new ModelSlime(0), 0.25F));
this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube());
this.entityRenderMap.put(EntityPlayer.class, new RenderPlayer());
this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(new ModelZombie(), 0.5F, 6.0F));
this.entityRenderMap.put(EntityGhast.class, new RenderGhast());
this.entityRenderMap.put(EntitySquid.class, new RenderSquid(new ModelSquid(), 0.7F));
this.entityRenderMap.put(EntityVillager.class, new RenderVillager());
this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem());
this.entityRenderMap.put(EntityBat.class, new RenderBat());
this.entityRenderMap.put(EntityDragon.class, new RenderDragon());
this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal());
this.entityRenderMap.put(EntityWither.class, new RenderWither());
this.entityRenderMap.put(Entity.class, new RenderEntity());
this.entityRenderMap.put(EntityPainting.class, new RenderPainting());
this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame());
this.entityRenderMap.put(EntityLeashKnot.class, new RenderLeashKnot());
this.entityRenderMap.put(EntityArrow.class, new RenderArrow());
this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(Items.snowball));
this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(Items.ender_pearl));
this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(Items.ender_eye));
this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(Items.egg));
this.entityRenderMap.put(EntityPotion.class, new RenderSnowball(Items.potionitem, 16384));
this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(Items.experience_bottle));
this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(Items.fireworks));
this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(2.0F));
this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(0.5F));
this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull());
this.entityRenderMap.put(EntityItem.class, new RenderItem());
this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb());
this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed());
this.entityRenderMap.put(EntityFallingBlock.class, new RenderFallingBlock());
this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart());
this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner());
this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart());
this.entityRenderMap.put(EntityBoat.class, new RenderBoat());
this.entityRenderMap.put(EntityFishHook.class, new RenderFish());
this.entityRenderMap.put(EntityHorse.class, new RenderHorse(new ModelHorse(), 0.75F));
this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt());
Iterator iterator = this.entityRenderMap.values().iterator();
while (iterator.hasNext())
{
Render render = (Render)iterator.next();
render.setRenderManager(this);
}
}
示例13: RenderManager
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
private RenderManager() {
this.field_78729_o.put(EntityCaveSpider.class, new RenderCaveSpider());
this.field_78729_o.put(EntitySpider.class, new RenderSpider());
this.field_78729_o.put(EntityPig.class, new RenderPig(new ModelPig(), new ModelPig(0.5F), 0.7F));
this.field_78729_o.put(EntitySheep.class, new RenderSheep(new ModelSheep2(), new ModelSheep1(), 0.7F));
this.field_78729_o.put(EntityCow.class, new RenderCow(new ModelCow(), 0.7F));
this.field_78729_o.put(EntityMooshroom.class, new RenderMooshroom(new ModelCow(), 0.7F));
this.field_78729_o.put(EntityWolf.class, new RenderWolf(new ModelWolf(), new ModelWolf(), 0.5F));
this.field_78729_o.put(EntityChicken.class, new RenderChicken(new ModelChicken(), 0.3F));
this.field_78729_o.put(EntityOcelot.class, new RenderOcelot(new ModelOcelot(), 0.4F));
this.field_78729_o.put(EntitySilverfish.class, new RenderSilverfish());
this.field_78729_o.put(EntityCreeper.class, new RenderCreeper());
this.field_78729_o.put(EntityEnderman.class, new RenderEnderman());
this.field_78729_o.put(EntitySnowman.class, new RenderSnowMan());
this.field_78729_o.put(EntitySkeleton.class, new RenderSkeleton());
this.field_78729_o.put(EntityWitch.class, new RenderWitch());
this.field_78729_o.put(EntityBlaze.class, new RenderBlaze());
this.field_78729_o.put(EntityZombie.class, new RenderZombie());
this.field_78729_o.put(EntitySlime.class, new RenderSlime(new ModelSlime(16), new ModelSlime(0), 0.25F));
this.field_78729_o.put(EntityMagmaCube.class, new RenderMagmaCube());
this.field_78729_o.put(EntityPlayer.class, new RenderPlayer());
this.field_78729_o.put(EntityGiantZombie.class, new RenderGiantZombie(new ModelZombie(), 0.5F, 6.0F));
this.field_78729_o.put(EntityGhast.class, new RenderGhast());
this.field_78729_o.put(EntitySquid.class, new RenderSquid(new ModelSquid(), 0.7F));
this.field_78729_o.put(EntityVillager.class, new RenderVillager());
this.field_78729_o.put(EntityIronGolem.class, new RenderIronGolem());
this.field_78729_o.put(EntityBat.class, new RenderBat());
this.field_78729_o.put(EntityDragon.class, new RenderDragon());
this.field_78729_o.put(EntityEnderCrystal.class, new RenderEnderCrystal());
this.field_78729_o.put(EntityWither.class, new RenderWither());
this.field_78729_o.put(Entity.class, new RenderEntity());
this.field_78729_o.put(EntityPainting.class, new RenderPainting());
this.field_78729_o.put(EntityItemFrame.class, new RenderItemFrame());
this.field_78729_o.put(EntityLeashKnot.class, new RenderLeashKnot());
this.field_78729_o.put(EntityArrow.class, new RenderArrow());
this.field_78729_o.put(EntitySnowball.class, new RenderSnowball(Item.field_77768_aD));
this.field_78729_o.put(EntityEnderPearl.class, new RenderSnowball(Item.field_77730_bn));
this.field_78729_o.put(EntityEnderEye.class, new RenderSnowball(Item.field_77748_bA));
this.field_78729_o.put(EntityEgg.class, new RenderSnowball(Item.field_77764_aP));
this.field_78729_o.put(EntityPotion.class, new RenderSnowball(Item.field_77726_bs, 16384));
this.field_78729_o.put(EntityExpBottle.class, new RenderSnowball(Item.field_77809_bD));
this.field_78729_o.put(EntityFireworkRocket.class, new RenderSnowball(Item.field_92104_bU));
this.field_78729_o.put(EntityLargeFireball.class, new RenderFireball(2.0F));
this.field_78729_o.put(EntitySmallFireball.class, new RenderFireball(0.5F));
this.field_78729_o.put(EntityWitherSkull.class, new RenderWitherSkull());
this.field_78729_o.put(EntityItem.class, new RenderItem());
this.field_78729_o.put(EntityXPOrb.class, new RenderXPOrb());
this.field_78729_o.put(EntityTNTPrimed.class, new RenderTNTPrimed());
this.field_78729_o.put(EntityFallingSand.class, new RenderFallingSand());
this.field_78729_o.put(EntityMinecartTNT.class, new RenderTntMinecart());
this.field_78729_o.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner());
this.field_78729_o.put(EntityMinecart.class, new RenderMinecart());
this.field_78729_o.put(EntityBoat.class, new RenderBoat());
this.field_78729_o.put(EntityFishHook.class, new RenderFish());
this.field_78729_o.put(EntityHorse.class, new RenderHorse(new ModelHorse(), 0.75F));
this.field_78729_o.put(EntityLightningBolt.class, new RenderLightningBolt());
Iterator var1 = this.field_78729_o.values().iterator();
while(var1.hasNext()) {
Render var2 = (Render)var1.next();
var2.func_76976_a(this);
}
}
示例14: RenderManager
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
private RenderManager()
{
this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider());
this.entityRenderMap.put(EntitySpider.class, new RenderSpider());
this.entityRenderMap.put(EntityPig.class, new RenderPig(new ModelPig(), new ModelPig(0.5F), 0.7F));
this.entityRenderMap.put(EntitySheep.class, new RenderSheep(new ModelSheep2(), new ModelSheep1(), 0.7F));
this.entityRenderMap.put(EntityCow.class, new RenderCow(new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityWolf.class, new RenderWolf(new ModelWolf(), new ModelWolf(), 0.5F));
this.entityRenderMap.put(EntityChicken.class, new RenderChicken(new ModelChicken(), 0.3F));
this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(new ModelOcelot(), 0.4F));
this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish());
this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper());
this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman());
this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan());
this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton());
this.entityRenderMap.put(EntityWitch.class, new RenderWitch());
this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze());
this.entityRenderMap.put(EntityZombie.class, new RenderZombie());
this.entityRenderMap.put(EntitySlime.class, new RenderSlime(new ModelSlime(16), new ModelSlime(0), 0.25F));
this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube());
this.entityRenderMap.put(EntityPlayer.class, new RenderPlayer());
this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(new ModelZombie(), 0.5F, 6.0F));
this.entityRenderMap.put(EntityGhast.class, new RenderGhast());
this.entityRenderMap.put(EntitySquid.class, new RenderSquid(new ModelSquid(), 0.7F));
this.entityRenderMap.put(EntityVillager.class, new RenderVillager());
this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem());
this.entityRenderMap.put(EntityBat.class, new RenderBat());
this.entityRenderMap.put(EntityDragon.class, new RenderDragon());
this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal());
this.entityRenderMap.put(EntityWither.class, new RenderWither());
this.entityRenderMap.put(Entity.class, new RenderEntity());
this.entityRenderMap.put(EntityPainting.class, new RenderPainting());
this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame());
this.entityRenderMap.put(EntityLeashKnot.class, new RenderLeashKnot());
this.entityRenderMap.put(EntityArrow.class, new RenderArrow());
this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(Item.snowball));
this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(Item.enderPearl));
this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(Item.eyeOfEnder));
this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(Item.egg));
this.entityRenderMap.put(EntityPotion.class, new RenderSnowball(Item.potion, 16384));
this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(Item.expBottle));
this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(Item.firework));
this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(2.0F));
this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(0.5F));
this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull());
this.entityRenderMap.put(EntityItem.class, new RenderItem());
this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb());
this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed());
this.entityRenderMap.put(EntityFallingSand.class, new RenderFallingSand());
this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart());
this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner());
this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart());
this.entityRenderMap.put(EntityBoat.class, new RenderBoat());
this.entityRenderMap.put(EntityFishHook.class, new RenderFish());
this.entityRenderMap.put(EntityHorse.class, new RenderHorse(new ModelHorse(), 0.75F));
this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt());
Iterator iterator = this.entityRenderMap.values().iterator();
while (iterator.hasNext())
{
Render render = (Render)iterator.next();
render.setRenderManager(this);
}
}
示例15: RenderManager
import net.minecraft.client.model.ModelSheep1; //导入依赖的package包/类
private RenderManager()
{
this.entityRenderMap.put(EntitySpider.class, new RenderSpider());
this.entityRenderMap.put(EntityCaveSpider.class, new RenderSpider());
this.entityRenderMap.put(EntityPig.class, new RenderPig(new ModelPig(), new ModelPig(0.5F), 0.7F));
this.entityRenderMap.put(EntitySheep.class, new RenderSheep(new ModelSheep2(), new ModelSheep1(), 0.7F));
this.entityRenderMap.put(EntityCow.class, new RenderCow(new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityVenio.class, new VenioRender(new ModelVenio(), 0.7F));
this.entityRenderMap.put(EntityCyborg.class, new CyborgRender(new ModelCyborg(), 0.7F));
this.entityRenderMap.put(EntityShell.class, new ShellRender(new ModelShell(), 0.3F));
this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityWolf.class, new RenderWolf(new ModelWolf(), new ModelWolf(), 0.5F));
this.entityRenderMap.put(EntityChicken.class, new RenderChicken(new ModelChicken(), 0.3F));
this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(new ModelOcelot(), 0.4F));
this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish());
this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper());
this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman());
this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan());
this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton());
this.entityRenderMap.put(EntityWitch.class, new RenderWitch());
this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze());
this.entityRenderMap.put(EntityZombie.class, new RenderZombie());
this.entityRenderMap.put(EntitySlime.class, new RenderSlime(new ModelSlime(16), new ModelSlime(0), 0.25F));
this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube());
this.entityRenderMap.put(EntityPlayer.class, new RenderPlayer());
this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(new ModelZombie(), 0.5F, 6.0F));
this.entityRenderMap.put(EntityGhast.class, new RenderGhast());
this.entityRenderMap.put(EntitySquid.class, new RenderSquid(new ModelSquid(), 0.7F));
this.entityRenderMap.put(EntityVillager.class, new RenderVillager());
this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem());
this.entityRenderMap.put(EntityLiving.class, new RenderLiving(new ModelBiped(), 0.5F));
this.entityRenderMap.put(EntityBat.class, new RenderBat());
this.entityRenderMap.put(EntityDragon.class, new RenderDragon());
this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal());
this.entityRenderMap.put(EntityWither.class, new RenderWither());
this.entityRenderMap.put(Entity.class, new RenderEntity());
this.entityRenderMap.put(EntityPainting.class, new RenderPainting());
this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame());
this.entityRenderMap.put(EntityArrow.class, new RenderArrow());
this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(Item.snowball));
this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(Item.enderPearl));
this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(Item.eyeOfEnder));
this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(Item.egg));
this.entityRenderMap.put(EntityPotion.class, new RenderSnowball(Item.potion, 16384));
this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(Item.expBottle));
this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(Item.firework));
this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(2.0F));
this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(0.5F));
this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull());
this.entityRenderMap.put(EntityItem.class, new RenderItem());
this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb());
this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed());
this.entityRenderMap.put(EntityFallingSand.class, new RenderFallingSand());
this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart());
this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner());
this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart());
this.entityRenderMap.put(EntityBoat.class, new RenderBoat());
this.entityRenderMap.put(EntityFishHook.class, new RenderFish());
this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt());
Iterator iterator = this.entityRenderMap.values().iterator();
while (iterator.hasNext())
{
Render render = (Render)iterator.next();
render.setRenderManager(this);
}
}