FORGOTTEN TOWNS

FORGOTTEN TOWNS / МОДИНГОВАЯ ДОКУМЕНТАЦИЯ

Моддинг вики ↗

Java Ссылка на API (Javadoc)

MOD API 15

Просмотрите вики

Текущая документация API модов.

Техническая документация доступна на английском языке. Имена кода и полей соответствуют текущему Mod API.

МОДИНГОВАЯ ДОКУМЕНТАЦИЯ

Java reference

Search the types, functions and callbacks available to a Java mod. This reference is generated from the SDK Javadocs; each entry links to its full Java documentation.

Find a type or member

60 общедоступные типы · 468 члены · Content API 15

Сброс

528 соответствующие записи

row.hashCode()МетодReturns a hash code value for this object.

ColonyPanel.Row · Мероприятия и панели

Подпись

public final int hashCode()

Returns a hash code value for this object. The value is derived from the hash code of each of the record components.

Пример звонка

row.hashCode();

ColonyPanel.Row row is an instance of this supported API type.

Specified by
hashCode in class Record
Returns
a hash code value for this object
row.label()МетодReturns localized description.

ColonyPanel.Row · Мероприятия и панели

Подпись

public ColonyPanel.Message label()

Returns localized description.

Пример звонка

row.label();

ColonyPanel.Row row is an instance of this supported API type.

Returns
localized description
row.toString()МетодReturns a string representation of this record class.

ColonyPanel.Row · Мероприятия и панели

Подпись

public final String toString()

Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.

Пример звонка

row.toString();

ColonyPanel.Row row is an instance of this supported API type.

Specified by
toString in class Record
Returns
a string representation of this object
row.value()МетодReturns localized value, including any runtime substitutions.

ColonyPanel.Row · Мероприятия и панели

Подпись

public ColonyPanel.Message value()

Returns localized value, including any runtime substitutions.

Пример звонка

row.value();

ColonyPanel.Row row is an instance of this supported API type.

Returns
localized value, including any runtime substitutions
colonyPanel.actions()МетодReturns ordered buttons; use stable identities across refreshes.

ColonyPanel · Мероприятия и панели

Подпись

public List<ColonyPanel.Action> actions()

Returns ordered buttons; use stable identities across refreshes.

Пример звонка

colonyPanel.actions();

ColonyPanel colonyPanel is an instance of this supported API type.

Returns
ordered buttons; use stable identities across refreshes
colonyPanel.equals(o)МетодIndicates whether some other object is "equal to" this one.

ColonyPanel · Мероприятия и панели

Подпись

public final boolean equals(Object o)

Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).

Пример звонка

colonyPanel.equals(o);

ColonyPanel colonyPanel is an instance of this supported API type.

Specified by
equals in class Record
Parameters
o - the object with which to compare
Returns
true if this object is the same as the o argument; false otherwise.
colonyPanel.hashCode()МетодReturns a hash code value for this object.

ColonyPanel · Мероприятия и панели

Подпись

public final int hashCode()

Returns a hash code value for this object. The value is derived from the hash code of each of the record components.

Пример звонка

colonyPanel.hashCode();

ColonyPanel colonyPanel is an instance of this supported API type.

Specified by
hashCode in class Record
Returns
a hash code value for this object
colonyPanel.id()МетодReturns stable mod-local panel identity.

ColonyPanel · Мероприятия и панели

Подпись

public String id()

Returns stable mod-local panel identity.

Пример звонка

colonyPanel.id();

ColonyPanel colonyPanel is an instance of this supported API type.

Returns
stable mod-local panel identity
colonyPanel.rows()МетодReturns ordered information rows.

ColonyPanel · Мероприятия и панели

Подпись

public List<ColonyPanel.Row> rows()

Returns ordered information rows.

Пример звонка

colonyPanel.rows();

ColonyPanel colonyPanel is an instance of this supported API type.

Returns
ordered information rows
colonyPanel.title()МетодReturns localized panel heading.

ColonyPanel · Мероприятия и панели

Подпись

public ColonyPanel.Message title()

Returns localized panel heading.

Пример звонка

colonyPanel.title();

ColonyPanel colonyPanel is an instance of this supported API type.

Returns
localized panel heading
colonyPanel.toString()МетодReturns a string representation of this record class.

ColonyPanel · Мероприятия и панели

Подпись

public final String toString()

Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.

Пример звонка

colonyPanel.toString();

ColonyPanel colonyPanel is an instance of this supported API type.

Specified by
toString in class Record
Returns
a string representation of this object
ColonyWorkТипScoped work and placeable-construction commands using native worker scheduling, materials, placement restrictions and persistence.

ColonyWork · Инвентарь и работа

Подпись

public interface ColonyWork

Scoped work and placeable-construction commands using native worker scheduling, materials, placement restrictions and persistence. Accepted plans do not guarantee a worker can reach or finish them. IDs are stable within a world and must be paired with their queue. Each mutating call consumes one of the context's shared 128 commands, including rejected calls.

ColonyWork.ActionТипSupported terrain and vegetation work commands.

ColonyWork.Action · Инвентарь и работа

Подпись

public static enum ColonyWork.Action extends Enum<ColonyWork.Action>

Supported terrain and vegetation work commands.

All Implemented Interfaces
Serializable, Comparable<ColonyWork.Action>, Constable
ColonyWork.Action.DIGGINGКонстантаExcavate an eligible exposed block.

ColonyWork.Action · Инвентарь и работа

Подпись

public static final ColonyWork.Action DIGGING

Excavate an eligible exposed block.

Пример звонка

ColonyWork.Action.DIGGING

Use the public API type shown; import forgottentowns.mod.api.*.

ColonyWork.Action.GATHERINGКонстантаCollect a gatherable feature or material.

ColonyWork.Action · Инвентарь и работа

Подпись

public static final ColonyWork.Action GATHERING

Collect a gatherable feature or material.

Пример звонка

ColonyWork.Action.GATHERING

Use the public API type shown; import forgottentowns.mod.api.*.

ColonyWork.Action.HARVESTINGКонстантаHarvest a mature crop, feature or ground cover.

ColonyWork.Action · Инвентарь и работа

Подпись

public static final ColonyWork.Action HARVESTING

Harvest a mature crop, feature or ground cover.

Пример звонка

ColonyWork.Action.HARVESTING

Use the public API type shown; import forgottentowns.mod.api.*.

ColonyWork.Action.MININGКонстантаMine an eligible exposed block.

ColonyWork.Action · Инвентарь и работа

Подпись

public static final ColonyWork.Action MINING

Mine an eligible exposed block.

Пример звонка

ColonyWork.Action.MINING

Use the public API type shown; import forgottentowns.mod.api.*.

ColonyWork.Action.WOODCUTTINGКонстантаCut an eligible tree.

ColonyWork.Action · Инвентарь и работа

Подпись

public static final ColonyWork.Action WOODCUTTING

Cut an eligible tree.

Пример звонка

ColonyWork.Action.WOODCUTTING

Use the public API type shown; import forgottentowns.mod.api.*.

ColonyWork.Action.valueOf(name)МетодReturns the enum constant of this class with the specified name.

ColonyWork.Action · Инвентарь и работа

Подпись

public static ColonyWork.Action valueOf(String name)

Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)

Пример звонка

ColonyWork.Action.valueOf(name);

Use the public API type shown; import forgottentowns.mod.api.*.

Parameters
name - the name of the enum constant to be returned.
Returns
the enum constant with the specified name
Throws
IllegalArgumentException - if this enum class has no constant with the specified name
Throws
NullPointerException - if the argument is null
ColonyWork.Action.values()МетодReturns an array containing the constants of this enum class, in the order they are declared.

ColonyWork.Action · Инвентарь и работа

Подпись

public static ColonyWork.Action[] values()

Returns an array containing the constants of this enum class, in the order they are declared.

Пример звонка

ColonyWork.Action.values();

Use the public API type shown; import forgottentowns.mod.api.*.

Returns
an array containing the constants of this enum class, in the order they are declared
ColonyWork.CraftingТипDetached native production bill; counts represent outstanding batches and desired output units.

ColonyWork.Crafting · Инвентарь и работа

Подпись

public static record ColonyWork.Crafting(String recipeId, int batches, int minimumStock, boolean infinite) extends Record

Detached native production bill; counts represent outstanding batches and desired output units.

Record Components
recipeId - registered recipe identity
Record Components
batches - outstanding direct batches
Record Components
minimumStock - minimum finished output units
Record Components
infinite - whether continuous production is enabled
new ColonyWork.CraftingКонструкторCreates an instance of a Crafting record class.

ColonyWork.Crafting · Инвентарь и работа

Подпись

public Crafting(String recipeId, int batches, int minimumStock, boolean infinite)

Creates an instance of a Crafting record class.

Пример звонка

new ColonyWork.Crafting(recipeId, batches, minimumStock, infinite);

Use the public API type shown; import forgottentowns.mod.api.*.

Parameters
recipeId - registered recipe identity
Parameters
batches - outstanding direct batches
Parameters
minimumStock - minimum finished output units
Parameters
infinite - whether continuous production is enabled
crafting.batches()МетодReturns outstanding direct batches.

ColonyWork.Crafting · Инвентарь и работа

Подпись

public int batches()

Returns outstanding direct batches.

Пример звонка

crafting.batches();

ColonyWork.Crafting crafting is an instance of this supported API type.

Returns
outstanding direct batches
crafting.equals(o)МетодIndicates whether some other object is "equal to" this one.

ColonyWork.Crafting · Инвентарь и работа

Подпись

public final boolean equals(Object o)

Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.

Пример звонка

crafting.equals(o);

ColonyWork.Crafting crafting is an instance of this supported API type.

Specified by
equals in class Record
Parameters
o - the object with which to compare
Returns
true if this object is the same as the o argument; false otherwise.
crafting.hashCode()МетодReturns a hash code value for this object.

ColonyWork.Crafting · Инвентарь и работа

Подпись

public final int hashCode()

Returns a hash code value for this object. The value is derived from the hash code of each of the record components.

Пример звонка

crafting.hashCode();

ColonyWork.Crafting crafting is an instance of this supported API type.

Specified by
hashCode in class Record
Returns
a hash code value for this object

Read an entry

  • Method: a function your mod calls on the supplied service or value.
  • Hook: a callback the game calls on your registered implementation.
  • Constructor: creates an API value.
  • Constant: a fixed value, such as a facing or work queue.

Expand an entry for its signature, parameters, return value, exceptions and call shape. Call shapes show the real parameter names as placeholders; supply values of the declared types. Read the lifetime and ownership rules before retaining an object or issuing a command.

Java setup · Registration and lifecycle · Task guides · Full generated Javadocs