Package com.hbm_m.blockentity.machines
Enum Class TurretStats
- All Implemented Interfaces:
Serializable,Comparable<TurretStats>,Constable
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.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal floatfinal longfinal TurretStats.PitchAxisAchse, um die die "Pitch"-Gruppe (Kanone/Body) kippt.Lose Modell-Keys, die gemeinsam mit der Pitch-Gruppe gerendert werden (Body/Kanone/Laeufe usw.).final doubleDrehpunkt der Pitch-Gruppe relativ zum Block-Ursprung.final doublefinal doublefinal doubleZusaetzlicher Yaw-Offset in Grad (manche Modelle sind 90 Grad verdreht exportiert).final StringLoser Modell-Key (unter block/turret_parts/) fuer den Yaw-rotierenden Unterbau ("Carriage"/"Pivot"). -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationstatic TurretStatsReturns the enum constant of this class with the specified name.static TurretStats[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SENTRY
-
CHEKHOV
-
FRIENDLY
-
JEREMY
-
TAUON
-
RICHARD
-
HOWARD
-
MAXWELL
-
FRITZ
-
ARTY
-
HIMARS
-
-
Field Details
-
range
public final double range -
damage
public final float damage -
cooldownTicks
public final int cooldownTicks -
energyPerShot
public final long energyPerShot -
pitchAxis
Achse, um die die "Pitch"-Gruppe (Kanone/Body) kippt. -
pivotY
public final double pivotYDrehpunkt der Pitch-Gruppe relativ zum Block-Ursprung. -
pivotZ
public final double pivotZ -
yawExtraOffsetDeg
public final double yawExtraOffsetDegZusaetzlicher Yaw-Offset in Grad (manche Modelle sind 90 Grad verdreht exportiert). -
yawPartKey
Loser Modell-Key (unter block/turret_parts/) fuer den Yaw-rotierenden Unterbau ("Carriage"/"Pivot"). -
pitchPartKeys
Lose Modell-Keys, die gemeinsam mit der Pitch-Gruppe gerendert werden (Body/Kanone/Laeufe usw.).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getGuiTexture
public net.minecraft.resources.ResourceLocation getGuiTexture() -
getNameKey
-