Class MissileTrackClient

java.lang.Object
com.hbm_m.client.missile.track.MissileTrackClient

public final class MissileTrackClient extends Object
Client-side store of server missile tracks (pose + contrail), independent of chunk entity sync.
  • Method Details

    • isEnabled

      public static boolean isEnabled()
    • onTrack

      public static void onTrack(S2CMissileTrackPacket msg)
    • onStop

      public static void onStop(int entityId)
    • clear

      public static void clear()
    • beginRenderFrame

      public static void beginRenderFrame()
      Lock entity vs track render choice for the current frame (before entity pass). Prevents the same missile drawing twice when packets arrive mid-frame during lag.
    • tick

      public static void tick()
    • entries

      public static Iterable<MissileTrackClient.TrackEntry> entries()
    • get

      public static MissileTrackClient.TrackEntry get(int entityId)
    • hasActiveTrack

      public static boolean hasActiveTrack(int entityId)
    • shouldUseTrackWorldRender

      public static boolean shouldUseTrackWorldRender(int entityId)
      Authoritative track mesh (and track contrail) instead of vanilla entity draw. Vanilla only while the client still has a nearby entity in the spawn chunk, or during ascent within view distance — otherwise track (teleport / unloaded entity / far flight).
    • shouldPreferVanillaEntityRender

      public static boolean shouldPreferVanillaEntityRender(MissileTrackClient.TrackEntry entry)
      Keep vanilla entity lerp for launch wobble when the client entity is actually present and close. If the entity is unloaded (spectator teleport, tracking range) or far away, track must draw instead.