Interface IPlayerMatcher.MatcherFactory<T extends IPlayerMatcher>

Type Parameters:
T - the matcher type
All Known Implementing Classes:
BiomeMatcher.Factory, DimensionMatcher.Factory, GamestagesMatcher.Factory
Enclosing interface:
IPlayerMatcher

public static interface IPlayerMatcher.MatcherFactory<T extends IPlayerMatcher>
Implement this and register it via IMiscHelpers.registerPlayerMatcher(ResourceLocation, MatcherFactory).

This factory creates instances of a player matcher from JSON and packet buffer data, matching data written by IPlayerMatcher.toJson() and IPlayerMatcher.toBytes(FriendlyByteBuf).

  • Method Summary

    Modifier and Type
    Method
    Description
    fromBytes(net.minecraft.network.FriendlyByteBuf buffer)
     
    fromJson(com.google.gson.JsonElement json)
     
  • Method Details

    • fromJson

      T fromJson(com.google.gson.JsonElement json)
    • fromBytes

      T fromBytes(net.minecraft.network.FriendlyByteBuf buffer)