Class MappingsReader_v2
java.lang.Object
org.geysermc.geyser.registry.mappings.versions.MappingsReader
org.geysermc.geyser.registry.mappings.versions.MappingsReader_v2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadBlockMappingEntry(String identifier, com.google.gson.JsonElement node) voidreadBlockMappings(Path file, com.google.gson.JsonObject mappingsRoot, BiConsumer<String, CustomBlockMapping> consumer) org.geysermc.geyser.api.item.custom.v2.CustomItemDefinitionreadItemMappingEntry(org.geysermc.geyser.api.util.Identifier parentModel, com.google.gson.JsonElement element) voidreadItemMappings(Path file, com.google.gson.JsonObject mappingsRoot, BiConsumer<org.geysermc.geyser.api.util.Identifier, org.geysermc.geyser.api.item.custom.v2.CustomItemDefinition> consumer) voidreadItemMappingsV2(Path file, com.google.gson.JsonObject mappingsRoot, BiConsumer<org.geysermc.geyser.api.util.Identifier, org.geysermc.geyser.api.item.custom.v2.CustomItemDefinition> consumer) Methods inherited from class org.geysermc.geyser.registry.mappings.versions.MappingsReader
fromJsonObject, getHandOffsets, getOffsetXYZ, getPerspectiveOffsets
-
Constructor Details
-
MappingsReader_v2
public MappingsReader_v2()
-
-
Method Details
-
readItemMappings
public void readItemMappings(Path file, com.google.gson.JsonObject mappingsRoot, BiConsumer<org.geysermc.geyser.api.util.Identifier, org.geysermc.geyser.api.item.custom.v2.CustomItemDefinition> consumer) - Specified by:
readItemMappingsin classMappingsReader
-
readItemMappingsV2
public void readItemMappingsV2(Path file, com.google.gson.JsonObject mappingsRoot, BiConsumer<org.geysermc.geyser.api.util.Identifier, org.geysermc.geyser.api.item.custom.v2.CustomItemDefinition> consumer) -
readBlockMappings
public void readBlockMappings(Path file, com.google.gson.JsonObject mappingsRoot, BiConsumer<String, CustomBlockMapping> consumer) - Specified by:
readBlockMappingsin classMappingsReader
-
readItemMappingEntry
public org.geysermc.geyser.api.item.custom.v2.CustomItemDefinition readItemMappingEntry(org.geysermc.geyser.api.util.Identifier parentModel, com.google.gson.JsonElement element) - Specified by:
readItemMappingEntryin classMappingsReader
-
readBlockMappingEntry
public CustomBlockMapping readBlockMappingEntry(String identifier, com.google.gson.JsonElement node) throws InvalidCustomMappingsFileException - Specified by:
readBlockMappingEntryin classMappingsReader- Throws:
InvalidCustomMappingsFileException
-