Class RocketSyncPacket

java.lang.Object
com.simibubi.create.foundation.networking.SimplePacketBase
com.lightning.northstar.contraption.rocket.packet.RocketSyncPacket

public class RocketSyncPacket extends com.simibubi.create.foundation.networking.SimplePacketBase
  • Field Details

    • entityId

      public final int entityId
    • countdown

      public final int countdown
    • velocity

      public final float velocity
    • status

      public final LaunchStatus status
    • thrustersEnabled

      public final boolean thrustersEnabled
  • Constructor Details

    • RocketSyncPacket

      public RocketSyncPacket(int entityId, int countdown, float velocity, LaunchStatus status, boolean thrustersEnabled)
    • RocketSyncPacket

      public RocketSyncPacket(net.minecraft.network.FriendlyByteBuf buffer)
  • Method Details

    • write

      public void write(net.minecraft.network.FriendlyByteBuf buffer)
      Specified by:
      write in class com.simibubi.create.foundation.networking.SimplePacketBase
    • handle

      public boolean handle(net.minecraftforge.network.NetworkEvent.Context context)
      Specified by:
      handle in class com.simibubi.create.foundation.networking.SimplePacketBase