FurnitureLibary ArmorStandPackets

Aug 18, 2015
FurnitureLibary ArmorStandPackets
  • You can generate an new ArmorStandPackets with:

    Code (Text):
    ArmorStandPacket as = manager.createArmorStand(ObjectID, location);
    This are the options you have

    Code (Text):
            ArmorStandPacket as = manager.createArmorStand(obj, location);
            as.setArms(true);
            as.setSmall(true);
            as.setInvisible(false);
            as.setFire(false);
            as.setGravity(false);
            as.setName("CUSTOMNAME");
            as.setNameVasibility(true);
            as.setBasePlate(true);
            as.setPessanger(player);
            as.setPose(new EulerAngle(0, 0, 0), BodyPart.HEAD);
            as.setPose(new EulerAngle(0, 0, 0), BodyPart.BODY);
            as.setPose(new EulerAngle(0, 0, 0), BodyPart.LEFT_ARM);
            as.setPose(new EulerAngle(0, 0, 0), BodyPart.RIGHT_ARM);
            as.setPose(new EulerAngle(0, 0, 0), BodyPart.LEFT_LEG);
            as.setPose(new EulerAngle(0, 0, 0), BodyPart.RIGHT_LEG);
            as.getInventory().setHelmet(new ItemStack(Material.STONE));
            as.getInventory().setChestPlate(new ItemStack(Material.STONE));
            as.getInventory().setLeggings(new ItemStack(Material.STONE));
            as.getInventory().setBoots(new ItemStack(Material.STONE));
            as.getInventory().setItemInHand(new ItemStack(Material.STONE));
            as.getInventory().setSlot(0, new ItemStack(Material.STONE));
            as.setID(0);

    EulerAngle(x,y,z) = EulerAngle works with rad not with degress you can work with degress when you make

    Code (Text):
    as.setPose(FurnitureLib.getInstance().getLocationUtil().Radtodegress(new EulerAngle(45, 0, 0), BodyPart.RIGHT_LEG);
    Then all ArmorSatnds are created you can send the ArmorStand to all Players with

    Code (Text):
    FurnitureLib.getInstance().getFurnitureManager().send(ObjectID);
    Back to main page.
  • Loading...
  • Loading...