Examples of IIcon


Examples of net.minecraft.util.IIcon

  @SideOnly(Side.CLIENT)
  @Override
  public boolean addHitEffects(World world, MovingObjectPosition target,
      EffectRenderer effectRenderer) {
    IIcon tex = null;

    TileEntityPaintedBlock cb = (TileEntityPaintedBlock)
        world.getTileEntity(target.blockX, target.blockY, target.blockZ);
    Block b = cb.getSourceBlock();
    if(b != null) {
View Full Code Here

Examples of net.minecraft.util.IIcon

  @Override
  @SideOnly(Side.CLIENT)
  public boolean addDestroyEffects(World world, int x, int y, int z, int
      meta, EffectRenderer effectRenderer) {
    IIcon tex = lastRemovedComponetIcon;
    byte b0 = 4;
    for (int j1 = 0; j1 < b0; ++j1) {
      for (int k1 = 0; k1 < b0; ++k1) {
        for (int l1 = 0; l1 < b0; ++l1) {
          double d0 = x + (j1 + 0.5D) / b0;
View Full Code Here

Examples of net.minecraft.util.IIcon

  @SideOnly(Side.CLIENT)
  @Override
  public boolean addHitEffects(World world, MovingObjectPosition target,
      EffectRenderer effectRenderer) {
    IIcon tex = null;

    TileEntityPaintedBlock cb = (TileEntityPaintedBlock)
        world.getTileEntity(target.blockX, target.blockY, target.blockZ);
    Block b = cb.getSourceBlock();
    if(b != null) {
View Full Code Here

Examples of net.minecraft.util.IIcon

  @Override
  @SideOnly(Side.CLIENT)
  public boolean addDestroyEffects(World world, int x, int y, int z, int
      meta, EffectRenderer effectRenderer) {
    IIcon tex = lastRemovedComponetIcon;
    byte b0 = 4;
    for (int j1 = 0; j1 < b0; ++j1) {
      for (int k1 = 0; k1 < b0; ++k1) {
        for (int l1 = 0; l1 < b0; ++l1) {
          double d0 = x + (j1 + 0.5D) / b0;
View Full Code Here

Examples of net.minecraft.util.IIcon

    float tx = scaleX ? 0.5f: 0;
    float tz = scaleX ? 0 : 0.5f;
    bb = bb.translate(tx, 0, tz);

    IIcon tex;
    if(Config.combustionGeneratorUseOpaqueModel) {
      tex = EnderIO.blockCombustionGenerator.getIcon(4,0);
    } else {
      tex = EnderIO.blockFusedQuartz.getDefaultFrameIcon(0);
    }
View Full Code Here

Examples of net.minecraft.util.IIcon

    if(gen.getFacing() == 5 || gen.getFacing() == 2) {
      isLeft = !isLeft;
    }

    if(tank.getFluidAmount() > 0) {
      IIcon icon = tank.getFluid().getFluid().getStillIcon();
      if(icon != null) {
        float fullness = (float) (tank.getFluidAmount() - 1000) / (tank.getCapacity() - 1000);
        float scx = scaleX ? size : 1f;
        float scz = scaleX ? 1f : size;
        bb = bb.scale(scx, 0.97 * fullness, scz);
View Full Code Here

Examples of net.minecraft.util.IIcon

 
  public static void renderTankFluid(FluidTankEio tank, float x, float y, float z) {
    if(tank == null || tank.getFluid() == null) {
      return;
    }
    IIcon icon = tank.getFluid().getFluid().getStillIcon();
    if(icon != null) {
      float fullness = tank.getFilledRatio();
      y += 0.01f; // prevent bottom side z-fighting
      float scale = 0.98f;
      float yScale = 0.98f * fullness;
 
View Full Code Here

Examples of net.minecraft.util.IIcon

  @SideOnly(Side.CLIENT)
  @Override
  public boolean addHitEffects(World world, MovingObjectPosition target,
      EffectRenderer effectRenderer) {
    IIcon tex = null;

    TileEntityPaintedBlock cb = (TileEntityPaintedBlock)
        world.getTileEntity(target.blockX, target.blockY, target.blockZ);
    Block b = cb.getSourceBlock();
    if(b != null) {
View Full Code Here

Examples of net.minecraft.util.IIcon

  @Override
  @SideOnly(Side.CLIENT)
  public boolean addDestroyEffects(World world, int x, int y, int z, int
      meta, EffectRenderer effectRenderer) {
    IIcon tex = lastRemovedComponetIcon;
    byte b0 = 4;
    for (int j1 = 0; j1 < b0; ++j1) {
      for (int k1 = 0; k1 < b0; ++k1) {
        for (int l1 = 0; l1 < b0; ++l1) {
          double d0 = x + (j1 + 0.5D) / b0;
View Full Code Here

Examples of org.apache.wookie.w3c.IIcon

    }
  }

  private static void createIcons(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
    for(IIcon icon: model.getIcons()){
            IIcon widgetIcon = persistenceManager.newInstance(IIcon.class);
            widgetIcon.setSrc(icon.getSrc());
            widgetIcon.setHeight(icon.getHeight());
            widgetIcon.setWidth(icon.getWidth());
            widgetIcon.setLang(icon.getLang());
            widget.getIcons().add(widgetIcon);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.