ComplexStructures API 1.0.1

An API to transform any structure into a moveable object

  1. Rares
    [​IMG]


    GitHUB:


    https://github.com/Cristaling/ComplexStructures

    To create a structure:

    Code (Text):
    ComplexStructureBuilder builder = new ComplexStructureBuilder();
    builder.setOrigin(location);
    builder.setPoint1(location);
    builder.setPoint2(location);
    int templateID = builder.build();

    To spawn a structure:
    Code (Text):
    ComplexStructureMove structure = ComplexStructureBuilder.spawnComplexStructure(location, ComplexStructureBuilder.getTemplate(templateID));

    Structure functions:
    Code (Text):
    structure.moveTo(vector);
    structure.setYaw(double);
    structure.setPitch(double);

    //Yaw and Pitch angles are in radians
    //The structure isn't "updated" automatically. You have to use
    structure.runTick(true);
    //OR
    structure.updateStructure();
    //every tick to keep it in position

    Plugins made using this API:

    Ultimate Rides 3.0
    https://www.spigotmc.org/resources/ultimate-rides.17832/

Recent Updates

  1. Update #001

Recent Reviews

  1. ProWesley
    ProWesley
    5/5,
    Version: 1.0.1
    amazin plugin but can u add a commands options for add the boat and the route please? .
    1. Rares
      Author's Response
      This is meant to be just an API. The video is extracted from a plugin I made using it, Ultimate Rides.
  2. Gomze
    Gomze
    5/5,
    Version: 1.0.0
    This API is so cool! Please add a feature that i can just set one position and a int that i can copy & paste circles
    1. Rares
      Author's Response
      Thank you for your review.
      Could you please explain in more detail the features you would like in? I couldn't really understand what you mean. (you can send me a private message)
  3. Trojmans
    Trojmans
    4/5,
    Version: 1.0.0
    It's a very cool plugin! But it's very disappointing that the code in the description doesn't work. I managed it by visiting github. I hope you update the description. That would be very nice!
    1. Rares
      Author's Response
      Hey there, thank you for your review. Could you please detail what exactly isn't working? Thank you in advance