pylon-core
Toggle table of contents
1.0.0-SNAPSHOT
jvm
Platform filter
jvm
Switch theme
Search in API
pylon-core
pylon-core
/
io.github.pylonmc.pylon.core.registry
/
PylonRegistry
Pylon
Registry
class
PylonRegistry
<
T
:
Keyed
>
(
val
key
:
PylonRegistryKey
<
T
>
)
:
Iterable
<
T
>
(
source
)
Members
Constructors
Pylon
Registry
Link copied to clipboard
constructor
(
key
:
PylonRegistryKey
<
T
>
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
key
Link copied to clipboard
val
key
:
PylonRegistryKey
<
T
>
Functions
contains
Link copied to clipboard
operator
fun
contains
(
key
:
NamespacedKey
)
:
Boolean
operator
fun
contains
(
tag
:
Tag
<
T
>
)
:
Boolean
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
get
Link copied to clipboard
operator
fun
get
(
key
:
NamespacedKey
)
:
T
?
get
Keys
Link copied to clipboard
fun
getKeys
(
)
:
Set
<
NamespacedKey
>
get
Or
Create
Link copied to clipboard
fun
getOrCreate
(
key
:
NamespacedKey
,
creator
:
(
)
->
T
)
:
T
get
Or
Throw
Link copied to clipboard
fun
getOrThrow
(
key
:
NamespacedKey
)
:
T
get
Values
Link copied to clipboard
fun
getValues
(
)
:
Collection
<
T
>
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
iterator
Link copied to clipboard
open
operator override
fun
iterator
(
)
:
Iterator
<
T
>
register
Link copied to clipboard
fun
register
(
vararg
values
:
T
)
fun
register
(
tag
:
Tag
<
T
>
)
stream
Link copied to clipboard
fun
stream
(
)
:
Stream
<
T
>
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
unregister
Link copied to clipboard
fun
unregister
(
vararg
values
:
T
)
fun
unregister
(
vararg
keys
:
NamespacedKey
)
fun
unregister
(
tag
:
Tag
<
T
>
)
unregister
All
From
Addon
Link copied to clipboard
fun
unregisterAllFromAddon
(
addon
:
PylonAddon
)