User Tools

Site Tools


tutorial:registry

Differences

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

Link to this comparison view

tutorial:registry [2020/01/10 21:43]
draylar created
tutorial:registry [2020/02/07 22:46] (current)
juuz added mention of Registry.get()
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.1578692620.txt.gz · Last modified: 2020/01/10 21:43 by draylar