Class MappingsReader
java.lang.Object
org.geysermc.geyser.item.mappings.versions.MappingsReader
- Direct Known Subclasses:
MappingsReader_v1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.geysermc.geyser.api.item.custom.CustomRenderOffsetsfromJsonNode(com.fasterxml.jackson.databind.JsonNode node)protected org.geysermc.geyser.api.item.custom.CustomRenderOffsets.HandgetHandOffsets(com.fasterxml.jackson.databind.JsonNode node, String hand)protected org.geysermc.geyser.api.item.custom.CustomRenderOffsets.OffsetXYZgetOffsetXYZ(com.fasterxml.jackson.databind.JsonNode node, String offsetType)protected org.geysermc.geyser.api.item.custom.CustomRenderOffsets.OffsetgetPerspectiveOffsets(com.fasterxml.jackson.databind.JsonNode node, String perspective)abstract org.geysermc.geyser.api.item.custom.CustomItemDatareadItemMappingEntry(com.fasterxml.jackson.databind.JsonNode node)abstract voidreadMappings(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
-
readMappings
public abstract void readMappings(Path file, com.fasterxml.jackson.databind.JsonNode mappingsRoot, BiConsumer<String,org.geysermc.geyser.api.item.custom.CustomItemData> consumer) -
readItemMappingEntry
public abstract org.geysermc.geyser.api.item.custom.CustomItemData readItemMappingEntry(com.fasterxml.jackson.databind.JsonNode node) throws InvalidCustomMappingsFileException -
fromJsonNode
protected org.geysermc.geyser.api.item.custom.CustomRenderOffsets fromJsonNode(com.fasterxml.jackson.databind.JsonNode node) -
getHandOffsets
protected org.geysermc.geyser.api.item.custom.CustomRenderOffsets.Hand getHandOffsets(com.fasterxml.jackson.databind.JsonNode node, String hand) -
getPerspectiveOffsets
protected org.geysermc.geyser.api.item.custom.CustomRenderOffsets.Offset getPerspectiveOffsets(com.fasterxml.jackson.databind.JsonNode node, String perspective) -
getOffsetXYZ
protected org.geysermc.geyser.api.item.custom.CustomRenderOffsets.OffsetXYZ getOffsetXYZ(com.fasterxml.jackson.databind.JsonNode node, String offsetType)
-