Interface IEncodeable

All Known Implementing Classes:
AbilityClause, AbilityComboClauseLogicalOr, BattleClause, BattleRules, ClientShopkeeperData, HierarchicalTier, ItemPreventClause, LogicalAndBattleClause, LogicalOrBattleClause, LogicalOrBattleClauseSingle, MaximumOneBatonPass, MoveClause, MultipleSpeciesClause, NoDuplicateItemClause, PokemonBanClause, SkyBattleClause, SpeedPassClause, Tier

public interface IEncodeable
A class that can be serialized into a ByteBuf.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decodeInto(net.minecraft.network.FriendlyByteBuf buffer)
    Decodes the object from a buffer.
    void
    encodeInto(net.minecraft.network.FriendlyByteBuf buffer)
    Encodes the object into a buffer.
  • Method Details

    • encodeInto

      void encodeInto(net.minecraft.network.FriendlyByteBuf buffer)
      Encodes the object into a buffer.
      Parameters:
      buffer - The buffer to encode the object into.
    • decodeInto

      void decodeInto(net.minecraft.network.FriendlyByteBuf buffer)
      Decodes the object from a buffer.
      Parameters:
      buffer - The buffer to decode the object from.