Class MappingsReader
java.lang.Object
org.geysermc.geyser.registry.mappings.versions.MappingsReader
- Direct Known Subclasses:
MappingsReader_v1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsetsfromJsonNode(com.fasterxml.jackson.databind.JsonNode node) protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets.HandgetHandOffsets(com.fasterxml.jackson.databind.JsonNode node, String hand) protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets.OffsetXYZgetOffsetXYZ(com.fasterxml.jackson.databind.JsonNode node, String offsetType) protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets.OffsetgetPerspectiveOffsets(com.fasterxml.jackson.databind.JsonNode node, String perspective) abstract CustomBlockMappingreadBlockMappingEntry(String identifier, com.fasterxml.jackson.databind.JsonNode node) abstract voidreadBlockMappings(Path file, com.fasterxml.jackson.databind.JsonNode mappingsRoot, BiConsumer<String, CustomBlockMapping> consumer) abstract org.geysermc.geyser.api.item.custom.CustomItemDatareadItemMappingEntry(com.fasterxml.jackson.databind.JsonNode node) abstract voidreadItemMappings(Path file, com.fasterxml.jackson.databind.JsonNode mappingsRoot, BiConsumer<String, org.geysermc.geyser.api.item.custom.CustomItemData> consumer)
-
Constructor Details
-
MappingsReader
public MappingsReader()
-
-
Method Details
-
readItemMappings
public abstract void readItemMappings(Path file, com.fasterxml.jackson.databind.JsonNode mappingsRoot, BiConsumer<String, org.geysermc.geyser.api.item.custom.CustomItemData> consumer) -
readBlockMappings
public abstract void readBlockMappings(Path file, com.fasterxml.jackson.databind.JsonNode mappingsRoot, BiConsumer<String, CustomBlockMapping> consumer) -
readItemMappingEntry
public abstract org.geysermc.geyser.api.item.custom.CustomItemData readItemMappingEntry(com.fasterxml.jackson.databind.JsonNode node) throws InvalidCustomMappingsFileException -
readBlockMappingEntry
public abstract CustomBlockMapping readBlockMappingEntry(String identifier, com.fasterxml.jackson.databind.JsonNode node) throws InvalidCustomMappingsFileException -
fromJsonNode
protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets fromJsonNode(com.fasterxml.jackson.databind.JsonNode node) -
getHandOffsets
protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets.Hand getHandOffsets(com.fasterxml.jackson.databind.JsonNode node, String hand) -
getPerspectiveOffsets
protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets.Offset getPerspectiveOffsets(com.fasterxml.jackson.databind.JsonNode node, String perspective) -
getOffsetXYZ
protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets.OffsetXYZ getOffsetXYZ(com.fasterxml.jackson.databind.JsonNode node, String offsetType)
-