Package com.minecolonies.api.colony
Class CitizenNameFile
java.lang.Object
com.minecolonies.api.colony.CitizenNameFile
The citizen name file of a specific style of names.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCurrent types of name order. -
Field Summary
FieldsModifier and TypeFieldDescriptionList of female first names.List of male first names.The order of the name (initially eastern and western).intNumber of parts the name consists of (usually 3 with middle initial or 2 without).List of surnames. -
Constructor Summary
ConstructorsConstructorDescriptionCitizenNameFile(int parts, @NotNull CitizenNameFile.NameOrder order, @NotNull List<String> maleFirstNames, @NotNull List<String> femaleFirstNames, @NotNull List<String> surnames) Create a new instance of a specific name file. -
Method Summary
-
Field Details
-
parts
public int partsNumber of parts the name consists of (usually 3 with middle initial or 2 without). -
order
The order of the name (initially eastern and western). -
maleFirstNames
List of male first names. -
femalefirstNames
List of female first names. -
surnames
List of surnames.
-
-
Constructor Details
-
CitizenNameFile
public CitizenNameFile(int parts, @NotNull @NotNull CitizenNameFile.NameOrder order, @NotNull @NotNull List<String> maleFirstNames, @NotNull @NotNull List<String> femaleFirstNames, @NotNull @NotNull List<String> surnames) Create a new instance of a specific name file.- Parameters:
parts- the number of parts.order- the name order.maleFirstNames- the male first names.femaleFirstNames- the female first names.surnames- the surnames.
-