Class WorldObject

  • Direct Known Subclasses:
    Chest, ExitLever, Generator, Hatch, Hook, Totem

    public abstract class WorldObject
    extends java.lang.Object
    The base class of every visible object of DbM. Contains the necessary functions for determining whether 2 WorldObjects are the same or not.
    • Constructor Summary

      Constructors 
      Constructor Description
      WorldObject​(Game game, java.lang.String worldName, org.kikikan.deadbymoonlight.util.Point point)  
      WorldObject​(Game game, org.bukkit.Location location)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      protected Game getGame()  
      org.bukkit.Location getLocation()
      Gets the location of the WorldObject.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorldObject

        public WorldObject​(Game game,
                           org.bukkit.Location location)
      • WorldObject

        public WorldObject​(Game game,
                           java.lang.String worldName,
                           org.kikikan.deadbymoonlight.util.Point point)
    • Method Detail

      • getLocation

        public final org.bukkit.Location getLocation()
        Gets the location of the WorldObject.
        Returns:
        The location of the WorldObject.
      • getGame

        protected final Game getGame()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object