Interface GameRegistries
- Since:
- 0.1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioneffects()Gets the server-wide effect registry.Gets the enchantment behaviours and helpers.farming()Gets the server-wide farming registry.items()Gets the server-wide item registry.mobs()Gets the server-wide mob registry.Gets the server-wide permission registry.recipes()Gets the server-wide recipe registry.redstone()Gets the server-wide redstone registry.<T> Registry<T> registry(RegistryKey<T> key) Gets a registry.<T> WritableRegistry<T> writable(RegistryKey<T> key) Gets a registry plugins can add entries to, such asRegistryKey.BIOME,RegistryKey.DIMENSION_TYPE,RegistryKey.CHAT_TYPE,RegistryKey.DIALOGorRegistryKey.ENCHANTMENT.
-
Method Details
-
registry
Gets a registry.Every
RegistryKeyhas one, populated with the vanilla entries from the start.- Type Parameters:
T- the type of the values- Parameters:
key- the key of the registry- Returns:
- the registry
- Throws:
IllegalArgumentException- if the server has no such registry- Since:
- 0.1.0
-
writable
Gets a registry plugins can add entries to, such asRegistryKey.BIOME,RegistryKey.DIMENSION_TYPE,RegistryKey.CHAT_TYPE,RegistryKey.DIALOGorRegistryKey.ENCHANTMENT.Biomes registered there may be referenced by
generatorsthroughGeneratedChunk.setBiome(int, int, int, TypedKey), and dimension types returned byWorldGenerator.dimensionType().- Type Parameters:
T- the type of the values- Parameters:
key- the key of the registry- Returns:
- the registry
- Throws:
IllegalArgumentException- if the registry is not writable- Since:
- 0.1.0
-
mobs
Gets the server-wide mob registry.Where plugins attach behaviours to the built-in mobs, and register mobs of their own.
- Returns:
- the mob registry
- Since:
- 0.1.0
-
effects
Gets the server-wide effect registry.Where plugins create the effects they apply, give behaviour to vanilla effects and add effects of their own.
- Returns:
- the effect registry
- Since:
- 0.1.0
-
enchantments
Gets the enchantment behaviours and helpers.The enchantments themselves live in the
RegistryKey.ENCHANTMENTregistry. This is where plugins define enchantments and give behaviour to them, vanilla ones included.- Returns:
- the enchantments
- Since:
- 0.1.0
-
items
Gets the server-wide item registry.Where plugins register items of their own, rendered client-side as the vanilla item they name.
- Returns:
- the item registry
- Since:
- 0.1.0
-
recipes
Gets the server-wide recipe registry.Holds the vanilla crafting recipes, and where plugins register recipes of their own, including recipes that take several items from one grid slot.
- Returns:
- the recipe registry
- Since:
- 0.1.0
-
redstone
-
farming
-
permissions
Gets the server-wide permission registry.- Returns:
- the permission registry
- Since:
- 0.1.0
-