Examples of TileEntityFactory


Examples of mekanism.common.tile.TileEntityFactory

  {
    mc.renderEngine.bindTexture(RESOURCE);

    guiObj.drawTexturedRect(guiWidth + 176, guiHeight + 70, 0, 0, 26, 63);

    TileEntityFactory factory = tileEntity;
    int displayInt = factory.getScaledRecipeProgress(15);

    guiObj.drawTexturedRect(guiWidth + 181, guiHeight + 94, 26, 0, 10, displayInt);

    mc.renderEngine.bindTexture(defaultLocation);
  }
View Full Code Here

Examples of powercrystals.minefactoryreloaded.tile.base.TileEntityFactory

 
  public TileEntityFactory getNewTileEntity()
  {
    try
    {
      TileEntityFactory tileEntity = _tileEntityClass.newInstance();
      return tileEntity;
    }
    catch(IllegalAccessException x)
    {
      FMLLog.severe("Unable to create instance of TileEntity from %s", _tileEntityClass.getName());
View Full Code Here

Examples of powercrystals.minefactoryreloaded.tile.base.TileEntityFactory

      Object[] packetReadout = PacketWrapper.readPacketData(data, decodeAs);
     
      TileEntity te = ((EntityPlayer)player).worldObj.getBlockTileEntity((Integer)packetReadout[0], (Integer)packetReadout[1], (Integer)packetReadout[2]);
      if(te instanceof TileEntityFactory)
      {
        TileEntityFactory tef = (TileEntityFactory) te;
        tef.rotateDirectlyTo((Integer)packetReadout[3]);
        tef.setIsActive((Boolean)packetReadout[4]);
      }
    }
    else if (packetType == Packets.ConveyorDescription) // server -> client; server propagating conveyor color, activity state
    {
      Class[] decodeAs = { Integer.class, Integer.class, Integer.class, Integer.class, Boolean.class };
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.