Package eu.sculkpowered.server.registry
Interface Registry.Entry
- All Superinterfaces:
Keyed
- All Known Subinterfaces:
Block.Entity<B>
,BlockState
,DataComponentType<T>
- All Known Implementing Classes:
Attribute
,Biome
,DamageType
,Dimension
,Enchantment
,Material
,MobEffectType
,PotionType
- Enclosing interface:
Registry<E extends Registry.Entry>
-
Method Summary
Modifier and TypeMethodDescription@NotNull CompoundBinaryTag
asNBT()
Gets the entry as aCompoundBinaryTag
.int
id()
Gets the id of the entrydefault @NotNull String
name()
Gets the name of the entry.
-
Method Details
-
name
Gets the name of the entry.- Returns:
- the name of the entry
- Since:
- 1.0.0
-
id
int id()Gets the id of the entry- Returns:
- the id of the entry
- Since:
- 1.0.0
-
asNBT
Gets the entry as aCompoundBinaryTag
.- Returns:
- the entry as a
CompoundBinaryTag
- Since:
- 1.0.0
-