Class MappingsReader

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

public abstract class MappingsReader extends Object
  • 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
      Throws:
      InvalidCustomMappingsFileException
    • readBlockMappingEntry

      public abstract CustomBlockMapping readBlockMappingEntry(String identifier, 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)