StatTypes

public class StatTypes extends RegistryUtil<StatType<?>>(source)

Stats added by AVM Staffs mod.

Properties

Link copied to clipboard
public final static StatTypes INSTANCE
Link copied to clipboard
public final static RegistryObject<StatType<Item>> USED_ITEM_IN_STAFF

Stat type registered as avm_staff:used_item_in_staff

Link copied to clipboard
private final StatType<Item> usedItemInStaff

Inherited properties

Link copied to clipboard
private final String modId
Link copied to clipboard

Functions

Link copied to clipboard
public final StatType<Item> usedItemInStaff()

Inherited functions

Link copied to clipboard

Gets the registry entry of the given registry key from the given registry manager or null, if it's not found.

Link copied to clipboard
protected final String getModId()
Link copied to clipboard
protected final RegistryKey<Registry<StatType<?>>> getRegistry()
Link copied to clipboard
public final Identifier id(String path)

Creates an Identifier from the namespace specified in the constructor and a given path.

Link copied to clipboard
protected final RegistryObject<T> register<T extends StatType<?>>(String path, Function1<RegistryKey<StatType<?>>, T> factory)

Adds a content to be registered in a Minecraft registry using Architectury API.

Link copied to clipboard
public final RegistryKey<StatType<?>> registryKey(String path)

Creates a RegistryKey from the registry and namespace specified in the constructor and a given path.