Package net.minecraft.util

Examples of net.minecraft.util.ResourceLocation


import java.util.List;

public abstract class Option
{
    public static void playClickSound() {
        Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F));
    }
View Full Code Here


    public void mouseClicked(int x, int y, int button)
    {
        if(isEnabled && pointInside(x, y) && actionCommand != null)
        {
            sendAction(actionCommand, button);
            Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F));
        }
    }
View Full Code Here

        this.redOxygenTanks[1] = new ModelRenderer(this, 28, 0);
        this.redOxygenTanks[1].addBox(-1.5F, 0F, -1.5F, 3, 7, 3, var1);
        this.redOxygenTanks[1].setRotationPoint(-2F, 2F, 3.8F);
        this.redOxygenTanks[1].mirror = true;

        this.frequencyModule = AdvancedModelLoader.loadModel(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "models/frequencyModule.obj"));
    }
View Full Code Here

        this(0.0F);
    }

    public ModelBubble(float par1)
    {
        this.sphere = AdvancedModelLoader.loadModel(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "models/sphere.obj"));
    }
View Full Code Here

    protected IModelCustom rocketModelObj;

    public RenderTier3Rocket(IModelCustom spaceshipModel, String textureDomain, String texture)
    {
        this.rocketModelObj = spaceshipModel;
        this.rocketTexture = new ResourceLocation(textureDomain, "textures/model/" + texture + ".png");
        this.shadowSize = 2F;
    }
View Full Code Here

    public static final ResourceLocation reflectorTexture = new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "textures/model/beamReflector.png");
    public static IModelCustom reflectorModel;

    public TileEntityBeamReflectorRenderer()
    {
        TileEntityBeamReflectorRenderer.reflectorModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/reflector.obj"));
    }
View Full Code Here

    public static final ResourceLocation receiverTexture = new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "textures/model/beamReceiver.png");
    public static IModelCustom receiverModel;

    public TileEntityBeamReceiverRenderer()
    {
        TileEntityBeamReceiverRenderer.receiverModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/receiver.obj"));
    }
View Full Code Here

    public static final ResourceLocation telepadTexture0 = new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "textures/model/teleporter0.png");
    public static IModelCustom telepadModel;

    public TileEntityShortRangeTelepadRenderer()
    {
        TileEntityShortRangeTelepadRenderer.telepadModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/teleporter.obj"));
    }
View Full Code Here

    public ModelRotationRendererGC(ModelBase modelBase, int i, int j, ModelRenderer baseRenderer, int type)
    {
        super(modelBase, i, j, (ModelRotationRenderer)baseRenderer);
        this.type = type;
        ModelPlayerBaseGC.frequencyModule = AdvancedModelLoader.loadModel(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "models/frequencyModule.obj"));
    }
View Full Code Here

                if (getEntityTextureMethod == null)
                {
                    getEntityTextureMethod = VersionUtil.getPlayerTextureMethod();
                }

                ResourceLocation loc  = (ResourceLocation)getEntityTextureMethod.invoke(playerRenderer, ModelPlayerBaseGC.playerRendering);
                FMLClientHandler.instance().getClient().renderEngine.bindTexture(loc);
            }
            catch (Exception e)
            {
                //e.printStackTrace();
View Full Code Here

TOP

Related Classes of net.minecraft.util.ResourceLocation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.