Help with how to create a PlayerAction class?

Discussion in 'Plugin Development' started by TheWolfBadger, Aug 14, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    TheWolfBadger

    Hey Bukkit Community!

    Jack Badger here! I am currently creating a ReplayAPI and I have actually just started on SpectateAPI. I am waiting for the next Minecraft version for spectating to come out, to continue on ReplayAPI still. The only thing I am stuck on with SpectateAPI is how to create a PlayerAction class which would store actions at certain ticks. I would need to also store these PlayerAction instances in a HashMap in a per player classes. I am thinking of a method for the PlayerAction class like playAction() and it will do the action. I do not want to use any nms. Thank you. - Jack
     
  2. Offline

    mythbusterma

    TheWolfBadger

    I don't understand why you would use NMS for this anyway. That being said, it would take a rather large amount of memory to store every action a set of players do for any significant portion of time. I don't understand what your problem is, just create an interface PlayerAction, and have classes that implement it for specific actions.
     
Thread Status:
Not open for further replies.

Share This Page