Interface PointProvider.PointSerializer<T extends PointProvider>

Enclosing interface:
PointProvider

public static interface PointProvider.PointSerializer<T extends PointProvider>
An object that constructs point providers from JSON and network.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJSON(com.google.gson.JsonObject json)
    Reads a point from JSON.
    fromNetwork(net.minecraft.network.FriendlyByteBuf buf)
    Reconstructs a point from network, matching its server companion as closely as possible.
    of(Function<net.minecraft.network.FriendlyByteBuf,T> network, Function<com.google.gson.JsonObject,T> json)
    A helper method to create a segment serializer from 2 functions.