Class House


  • public class House
    extends java.lang.Object
    This class represents a player's house and provides methods to interact with it.
    • Constructor Summary

      Constructors 
      Constructor Description
      House()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<GameObject> getPortals()
      Returns a list of GameObjects representing the portals inside the player's house.
      static boolean isInBuildingMode()
      Checks if the player is currently in building mode.
      static boolean isInside()
      Returns a boolean value indicating whether the player is inside a locked instance of a house.
      • Methods inherited from class java.lang.Object

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

      • House

        public House()
    • Method Detail

      • getPortals

        public static java.util.List<GameObject> getPortals()
        Returns a list of GameObjects representing the portals inside the player's house.
        Returns:
        a list of GameObjects representing the portals inside the player's house, or an empty list if the player is not inside their house.
      • isInside

        public static boolean isInside()
        Returns a boolean value indicating whether the player is inside a locked instance of a house.
        Returns:
        true if the player is inside a locked instance of a house, false otherwise.
      • isInBuildingMode

        public static boolean isInBuildingMode()
        Checks if the player is currently in building mode.
        Returns:
        true if the player is in building mode, false otherwise.