Class NoTreasureObj

    • Constructor Detail

      • NoTreasureObj

        public NoTreasureObj​(int chance)
        Creates a new instance.
        Parameters:
        chance - the chance
    • Method Detail

      • appendToString

        protected void appendToString​(@NotNull
                                      @NotNull java.lang.StringBuilder sb)
        Description copied from class: TreasureObj
        Appends a description of this treasure object to a StringBuilder.
        Specified by:
        appendToString in class TreasureObj
        Parameters:
        sb - the string builder
      • copyListType

        public void copyListType​(@NotNull
                                 @NotNull TreasureObj treasureObj)
        Description copied from class: TreasureObj
        Copes the list type of a treasureone list.
        Specified by:
        copyListType in class TreasureObj
        Parameters:
        treasureObj - the node to copy from