Class MultiPartSPH

java.lang.Object
codechicken.multipart.network.MultiPartSPH
All Implemented Interfaces:
codechicken.lib.packet.ICustomPacketHandler, codechicken.lib.packet.ICustomPacketHandler.IServerPacketHandler

public class MultiPartSPH extends Object implements codechicken.lib.packet.ICustomPacketHandler.IServerPacketHandler
Created by covers1624 on 4/30/20.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface codechicken.lib.packet.ICustomPacketHandler

    codechicken.lib.packet.ICustomPacketHandler.IClientConfigurationPacketHandler, codechicken.lib.packet.ICustomPacketHandler.IClientPacketHandler, codechicken.lib.packet.ICustomPacketHandler.IServerConfigurationPacketHandler, codechicken.lib.packet.ICustomPacketHandler.IServerPacketHandler
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    dispatchPartUpdate(MultiPart part, Consumer<codechicken.lib.data.MCDataOutput> func)
     
    void
    handlePacket(codechicken.lib.packet.PacketCustom packet, net.minecraft.server.level.ServerPlayer sender)
     
    static void
     
    static void
     
    static void
    sendRemPart(TileMultipart tile, int partIdx)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MultiPartSPH

      public MultiPartSPH()
  • Method Details

    • handlePacket

      public void handlePacket(codechicken.lib.packet.PacketCustom packet, net.minecraft.server.level.ServerPlayer sender)
      Specified by:
      handlePacket in interface codechicken.lib.packet.ICustomPacketHandler.IServerPacketHandler
    • sendDescUpdate

      public static void sendDescUpdate(TileMultipart tile)
    • sendAddPart

      public static void sendAddPart(TileMultipart tile, MultiPart part)
    • sendRemPart

      public static void sendRemPart(TileMultipart tile, int partIdx)
    • dispatchPartUpdate

      public static void dispatchPartUpdate(MultiPart part, Consumer<codechicken.lib.data.MCDataOutput> func)