Class MappingsReader
java.lang.Object
org.geysermc.geyser.registry.mappings.versions.MappingsReader
- Direct Known Subclasses:
MappingsReader_v1,MappingsReader_v2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsetsfromJsonObject(com.google.gson.JsonObject node) protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets.HandgetHandOffsets(com.google.gson.JsonObject node, String hand) protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets.OffsetXYZgetOffsetXYZ(com.google.gson.JsonObject node, String offsetType) protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets.OffsetgetPerspectiveOffsets(com.google.gson.JsonObject node, String perspective) abstract CustomBlockMappingreadBlockMappingEntry(String identifier, com.google.gson.JsonElement node) abstract voidreadBlockMappings(Path file, com.google.gson.JsonObject mappingsRoot, BiConsumer<String, CustomBlockMapping> consumer) abstract org.geysermc.geyser.api.item.custom.v2.CustomItemDefinitionreadItemMappingEntry(org.geysermc.geyser.api.util.Identifier identifier, com.google.gson.JsonElement node) abstract voidreadItemMappings(Path file, com.google.gson.JsonObject mappingsRoot, BiConsumer<org.geysermc.geyser.api.util.Identifier, org.geysermc.geyser.api.item.custom.v2.CustomItemDefinition> consumer)
-
Constructor Details
-
MappingsReader
public MappingsReader()
-
-
Method Details
-
readItemMappings
public abstract 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) -
readBlockMappings
public abstract void readBlockMappings(Path file, com.google.gson.JsonObject mappingsRoot, BiConsumer<String, CustomBlockMapping> consumer) -
readItemMappingEntry
public abstract org.geysermc.geyser.api.item.custom.v2.CustomItemDefinition readItemMappingEntry(org.geysermc.geyser.api.util.Identifier identifier, com.google.gson.JsonElement node) throws InvalidCustomMappingsFileException -
readBlockMappingEntry
public abstract CustomBlockMapping readBlockMappingEntry(String identifier, com.google.gson.JsonElement node) throws InvalidCustomMappingsFileException -
fromJsonObject
protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets fromJsonObject(com.google.gson.JsonObject node) -
getHandOffsets
protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets.Hand getHandOffsets(com.google.gson.JsonObject node, String hand) -
getPerspectiveOffsets
protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets.Offset getPerspectiveOffsets(com.google.gson.JsonObject node, String perspective) -
getOffsetXYZ
protected @Nullable org.geysermc.geyser.api.item.custom.CustomRenderOffsets.OffsetXYZ getOffsetXYZ(com.google.gson.JsonObject node, String offsetType)
-