IRegistryLookup

A wrapper interface for searching the Minecraft registry.

Functions

Link copied to clipboard
@NotNull
open fun getInstance(): @NotNull IRegistryLookup
Returns the implementation of IRegistryLookup.
Link copied to clipboard
@NotNull
abstract fun lookupBiomeId(@NotNull world: @NotNull World, @NotNull pos: @NotNull BlockPos): @NotNull Identifier
Finds the biome ID at the given world position.
Link copied to clipboard
@NotNull
abstract fun lookupBlockId(@NotNull block: @NotNull Block): @NotNull Identifier
Finds the ID of the given block in the registry.
Link copied to clipboard
@NotNull
abstract fun lookupEntityId(@NotNull entity: @NotNull Entity): @NotNull Identifier
Finds the ID of the given entity in the registry.
Link copied to clipboard
@NotNull
abstract fun lookupItemId(@NotNull item: @NotNull Item): @NotNull Identifier
Finds the ID of the given item in the registry.
Link copied to clipboard
@NotNull
abstract fun lookupVillagerProfessionId(@NotNull profession: @NotNull VillagerProfession): @NotNull Identifier
Finds the ID of the given villager profession in the registry.
Link copied to clipboard
@NotNull
abstract fun lookupVillagerTypeId(@NotNull type: @NotNull VillagerType): @NotNull Identifier
Finds the ID of the given villager type in the registry.