Interface ResolvableComponent<T>
- All Known Implementing Classes:
ResolvableHolderComponent,ResolvableHolderReferenceComponent,ResolvableHolderSetComponent,ResolvableRepairable,ResolvableToolProperties
public interface ResolvableComponent<T>
A resolvable component is a default item component that has to be loaded into its MCPL equivalent when registering
the item, but was unable to because it needed registry access. As such, an instance of this interface was created, added to the list of the
Item's resolvable components,
and will be resolved by ComponentCache whenever the session finishes the configuration phase.-
Method Summary
Modifier and TypeMethodDescription@Nullable Tresolve(JavaRegistryProvider registries) default voidresolve(JavaRegistryProvider registries, org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents map) org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> type()
-
Method Details
-
type
org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> type() -
resolve
-
resolve
default void resolve(JavaRegistryProvider registries, org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents map)
-