Solved Is it OK to use CraftWolf handle without memory leaks?

Discussion in 'Plugin Development' started by Mrawesomecookie, Jun 12, 2014.

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

    Mrawesomecookie

    So, I have a class that wraps EntityWolf and I want to still be able to call methods from CraftWolf
    Is it ok to have a getBukkitHandle like this?
    Code:java
    1. private final CraftWolf bukkithandle = new CraftWolf(Bukkit.getServer(), this);
    2. public Wolf getBukkitHandle() {
    3. return bukkithandle;
    4. }

    Or do I just have to copy all of the methods.
     
  2. Offline

    Garris0n

    There's already the getBukkitEntity() method. Why do you need a second one?
     
  3. Offline

    Mrawesomecookie

Thread Status:
Not open for further replies.

Share This Page