Enum Class TurretStats

java.lang.Object
java.lang.Enum<TurretStats>
com.hbm_m.blockentity.machines.TurretStats
All Implemented Interfaces:
Serializable, Comparable<TurretStats>, Constable

public enum TurretStats extends Enum<TurretStats>
Stat- und Modell-Tabelle fuer alle Turret-Varianten aus dem Original (WeaponRecipes.java / TileEntityTurretX / RenderTurretX). Feuerlogik ist fuer alle Varianten dieselbe eigenstaendige Hitscan-MVP-Logik (siehe TurretBaseBlockEntity) - das Original nutzt hier das noch nicht portierte Waffen-/Munitionssystem (BulletConfig). Arty/Himars feuern im Original Artillerie-Granaten bzw. Raketen; hier vereinfacht auf denselben Hitscan-Mechanismus mit hoeherem Schaden/Reichweite.

Modell-Teile (yawPart/pitchParts) referenzieren lose registrierte Baked-Models unter block/turret_parts/<key> (siehe ClientSetup#onModelRegisterAdditional), herausgeloest aus den Original-OBJs per Forge-"visibility". Barrel-Spin/Recoil (z.B. rotierende Chekhov-Trommel, Sentry-Rueckstoss) sind bewusst NICHT animiert - nur Yaw/Pitch-Zielverfolgung.

  • Enum Constant Details

  • Field Details

    • range

      public final double range
    • damage

      public final float damage
    • cooldownTicks

      public final int cooldownTicks
    • energyPerShot

      public final long energyPerShot
    • pitchAxis

      public final TurretStats.PitchAxis pitchAxis
      Achse, um die die "Pitch"-Gruppe (Kanone/Body) kippt.
    • pivotY

      public final double pivotY
      Drehpunkt der Pitch-Gruppe relativ zum Block-Ursprung.
    • pivotZ

      public final double pivotZ
    • yawExtraOffsetDeg

      public final double yawExtraOffsetDeg
      Zusaetzlicher Yaw-Offset in Grad (manche Modelle sind 90 Grad verdreht exportiert).
    • yawPartKey

      public final String yawPartKey
      Loser Modell-Key (unter block/turret_parts/) fuer den Yaw-rotierenden Unterbau ("Carriage"/"Pivot").
    • pitchPartKeys

      public final List<String> pitchPartKeys
      Lose Modell-Keys, die gemeinsam mit der Pitch-Gruppe gerendert werden (Body/Kanone/Laeufe usw.).
  • Method Details

    • values

      public static TurretStats[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TurretStats valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getGuiTexture

      public net.minecraft.resources.ResourceLocation getGuiTexture()
    • getNameKey

      public String getNameKey()