Package powercrystals.minefactoryreloaded.tile.base

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


      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

Related Classes of powercrystals.minefactoryreloaded.tile.base.TileEntityFactory

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.