Class S2CMissileTrackPacket

java.lang.Object
com.hbm_m.network.missile.S2CMissileTrackPacket
All Implemented Interfaces:
S2CPacket

public final class S2CMissileTrackPacket extends Object implements S2CPacket
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final float
     
    final net.minecraft.resources.ResourceLocation
     
    final int
     
    final net.minecraft.resources.ResourceLocation
     
    final net.minecraft.core.Direction
     
    final net.minecraft.resources.ResourceLocation
     
    final float
     
    final double
     
    final double
     
    final double
     
    final long
     
    final double
     
    final double
     
    final float
     
    final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    S2CMissileTrackPacket(int entityId, net.minecraft.resources.ResourceLocation dimensionId, double x, double y, double z, double vx, double vy, double vz, float yaw, float pitch, net.minecraft.core.Direction launchFacing, net.minecraft.resources.ResourceLocation entityTypeId, net.minecraft.resources.ResourceLocation launchItemId, float contrailScale, long worldTick)
     
    S2CMissileTrackPacket(int entityId, net.minecraft.resources.ResourceLocation dimensionId, MissileTrackPose pose)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(net.minecraft.network.FriendlyByteBuf buf)
     
    static void
    handle(S2CMissileTrackPacket msg, dev.architectury.networking.NetworkManager.PacketContext context)
     
    static void
    sendTo(net.minecraft.server.level.ServerPlayer player, S2CMissileTrackPacket packet)
     
    void
    write(net.minecraft.network.FriendlyByteBuf buf)
     

    Methods inherited from class java.lang.Object

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

    • entityId

      public final int entityId
    • dimensionId

      public final net.minecraft.resources.ResourceLocation dimensionId
    • x

      public final double x
    • y

      public final double y
    • z

      public final double z
    • vx

      public final double vx
    • vy

      public final double vy
    • vz

      public final double vz
    • yaw

      public final float yaw
    • pitch

      public final float pitch
    • launchFacing

      public final net.minecraft.core.Direction launchFacing
    • entityTypeId

      public final net.minecraft.resources.ResourceLocation entityTypeId
    • launchItemId

      public final net.minecraft.resources.ResourceLocation launchItemId
    • contrailScale

      public final float contrailScale
    • worldTick

      public final long worldTick
  • Constructor Details

    • S2CMissileTrackPacket

      public S2CMissileTrackPacket(int entityId, net.minecraft.resources.ResourceLocation dimensionId, MissileTrackPose pose)
    • S2CMissileTrackPacket

      public S2CMissileTrackPacket(int entityId, net.minecraft.resources.ResourceLocation dimensionId, double x, double y, double z, double vx, double vy, double vz, float yaw, float pitch, net.minecraft.core.Direction launchFacing, net.minecraft.resources.ResourceLocation entityTypeId, net.minecraft.resources.ResourceLocation launchItemId, float contrailScale, long worldTick)
  • Method Details

    • decode

      public static S2CMissileTrackPacket decode(net.minecraft.network.FriendlyByteBuf buf)
    • write

      public void write(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      write in interface S2CPacket
    • handle

      public static void handle(S2CMissileTrackPacket msg, dev.architectury.networking.NetworkManager.PacketContext context)
    • sendTo

      public static void sendTo(net.minecraft.server.level.ServerPlayer player, S2CMissileTrackPacket packet)