Class DataComponentReader<V>
java.lang.Object
org.geysermc.geyser.registry.mappings.components.DataComponentReader<V>
- Direct Known Subclasses:
AttackRangeReader,ConsumableReader,EnchantableReader,EquippableReader,FoodPropertiesReader,KineticWeaponReader,PrimitiveComponentReader,RepairableReader,SwingAnimationReader,ToolReader,UnitReader,UseCooldownReader,UseEffectsReader
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataComponentReader(org.geysermc.geyser.api.item.custom.v2.component.ItemDataComponent<V> type) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract VreadDataComponent(@NonNull com.google.gson.JsonElement element, String... context)
-
Constructor Details
-
DataComponentReader
protected DataComponentReader(org.geysermc.geyser.api.item.custom.v2.component.ItemDataComponent<V> type)
-
-
Method Details
-
readDataComponent
protected abstract V readDataComponent(@NonNull com.google.gson.JsonElement element, String... context) throws InvalidCustomMappingsFileException
-