Class MappingsReader

java.lang.Object
org.geysermc.geyser.item.mappings.versions.MappingsReader
Direct Known Subclasses:
MappingsReader_v1

public abstract class MappingsReader extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.geysermc.geyser.api.item.custom.CustomRenderOffsets
    fromJsonNode​(com.fasterxml.jackson.databind.JsonNode node)
     
    protected org.geysermc.geyser.api.item.custom.CustomRenderOffsets.Hand
    getHandOffsets​(com.fasterxml.jackson.databind.JsonNode node, String hand)
     
    protected org.geysermc.geyser.api.item.custom.CustomRenderOffsets.OffsetXYZ
    getOffsetXYZ​(com.fasterxml.jackson.databind.JsonNode node, String offsetType)
     
    protected org.geysermc.geyser.api.item.custom.CustomRenderOffsets.Offset
    getPerspectiveOffsets​(com.fasterxml.jackson.databind.JsonNode node, String perspective)
     
    abstract org.geysermc.geyser.api.item.custom.CustomItemData
    readItemMappingEntry​(com.fasterxml.jackson.databind.JsonNode node)
     
    abstract void
    readMappings​(Path file, com.fasterxml.jackson.databind.JsonNode mappingsRoot, BiConsumer<String,​org.geysermc.geyser.api.item.custom.CustomItemData> consumer)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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
      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)