T - the matcher typepublic static interface IPlayerMatcher.MatcherFactory<T extends IPlayerMatcher>
PneumaticRegistry.IPneumaticCraftInterface.registerPlayerMatcher(ResourceLocation, me.desht.pneumaticcraft.api.misc.IPlayerMatcher.MatcherFactory).
This factory creates instances of a player matcher from JSON and packet buffer data, matching data written by
IPlayerMatcher.toJson() and
IPlayerMatcher.toBytes(PacketBuffer).
| Modifier and Type | Method and Description |
|---|---|
T |
fromBytes(net.minecraft.network.PacketBuffer buffer) |
T |
fromJson(com.google.gson.JsonElement json) |