User Tools

Site Tools


tutorial:registry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
tutorial:registry [2020/01/10 21:43] – created draylartutorial:registry [2020/02/07 22:46] – added mention of Registry.get() juuz
Line 35: Line 35:
  
 ===== Registry Methods ===== ===== Registry Methods =====
 +
 +''%%get%%'' - returns the entry associated with an ID inside a registry. If the entry doesn’t exist, ''%%DefaultedRegistry%%'' returns the default registry value, and ''%%SimpleRegistry%%'' returns null.
 +
 +<code java>
 +@Nullable
 +public abstract T get(@Nullable Identifier id);
 +</code>
 +
 +----
  
 ''%%getId%%'' - returns the ''%%Identifier%%'' associated with an entry inside a registry. If the entry doesn’t exist, ''%%DefaultedRegistry%%'' returns the default registry value, and ''%%SimpleRegistry%%'' returns null. ''%%getId%%'' - returns the ''%%Identifier%%'' associated with an entry inside a registry. If the entry doesn’t exist, ''%%DefaultedRegistry%%'' returns the default registry value, and ''%%SimpleRegistry%%'' returns null.
tutorial/registry.txt · Last modified: 2023/05/15 03:31 by phanabani