Package com.flansmod.common.driveables.mechas

Examples of com.flansmod.common.driveables.mechas.EntityMecha


  public PacketMechaControl() {}

  public PacketMechaControl(EntityDriveable driveable)
  {
    super(driveable);
    EntityMecha mecha = (EntityMecha)driveable;
    legYaw = mecha.legAxes.getYaw();
    legSwing = mecha.legSwing;
    leftStack = mecha.inventory.getStackInSlot(EnumMechaSlotType.leftTool);
    rightStack = mecha.inventory.getStackInSlot(EnumMechaSlotType.rightTool);
  }
View Full Code Here


 
  @Override
  protected void updateDriveable(EntityDriveable driveable, boolean clientSide)
  {
    super.updateDriveable(driveable, clientSide);
    EntityMecha mecha = (EntityMecha)driveable;
    mecha.legAxes.setAngles(legYaw, 0F, 0F);
    mecha.legSwing = legSwing / 2F;
    if(clientSide)
    {
      mecha.inventory.setInventorySlotContents(EnumMechaSlotType.leftTool, leftStack);
View Full Code Here

            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x, y, z - 1);
          }
        }
        else if(obj instanceof EntityMecha)
        {
          EntityMecha mecha = (EntityMecha)obj;
          int x = MathHelper.floor_double(mecha.posX);
          int y = MathHelper.floor_double(mecha.posY);
          int z = MathHelper.floor_double(mecha.posZ);
          if(mecha.lightLevel() > 0)
          {
            blockLightOverrides.add(new Vector3i(x, y, z));
            mc.theWorld.setLightValue(EnumSkyBlock.Block, x, y, z, Math.max(mc.theWorld.getBlockLightValue(x, y, z), mecha.lightLevel()));
            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x + 1, y, z);
            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x - 1, y + 1, z);
            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x, y + 1, z);
            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x, y - 1, z);
            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x, y, z + 1);
            mc.theWorld.updateLightByType(EnumSkyBlock.Block, x, y, z - 1);
          }
          if(mecha.forceDark())
          {
            for(int i = -3; i <= 3; i++)
            {
              for(int j = -3; j <= 3; j++)
              {
View Full Code Here

TOP

Related Classes of com.flansmod.common.driveables.mechas.EntityMecha

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.