Remove internal phase comments and format code

Strip all Phase references, TODO/FUTURE roadmap notes, and internal
planning comments from the codebase. Run Prettier for consistent
formatting across all Java files.
This commit is contained in:
NotEvil
2026-04-12 01:24:49 +02:00
parent 73d70e212d
commit a71093ba9c
482 changed files with 8500 additions and 5155 deletions

View File

@@ -30,7 +30,6 @@ import net.minecraft.world.level.Level;
/**
* Archer Kidnapper - Ranged kidnapper that attacks with rope arrows.
*
* Phase 18: Archer Kidnappers
*
* Differences from regular EntityKidnapper:
* - Attacks from range with rope arrows
@@ -48,9 +47,7 @@ public class EntityKidnapperArcher
implements RangedAttackMob
{
// ========================================
// CONSTANTS
// ========================================
public static final double ARCHER_MAX_HEALTH = 15.0D;
public static final double ARCHER_MOVEMENT_SPEED = 0.30D;
@@ -62,9 +59,7 @@ public class EntityKidnapperArcher
public static final float ARROW_VELOCITY = 1.6F;
public static final float ARROW_INACCURACY = 2.0F;
// ========================================
// DATA SYNC (Archer-specific)
// ========================================
/**
* Whether the archer is currently aiming (for bow draw animation).
@@ -85,16 +80,12 @@ public class EntityKidnapperArcher
EntityDataSerializers.BOOLEAN
);
// ========================================
// STATE
// ========================================
/** Ticks the archer has been charging the bow */
private int aimingTicks;
// ========================================
// HIT TRACKING (for cumulative bind chance)
// ========================================
/** Maximum bind chance (100%) */
public static final int ARCHER_MAX_BIND_CHANCE = 100;
@@ -102,9 +93,7 @@ public class EntityKidnapperArcher
/** Track hit counts per target UUID */
private final Map<UUID, Integer> targetHitCounts = new HashMap<>();
// ========================================
// CONSTRUCTOR
// ========================================
public EntityKidnapperArcher(
EntityType<? extends EntityKidnapperArcher> type,
@@ -115,9 +104,7 @@ public class EntityKidnapperArcher
this.setLeftHanded(false);
}
// ========================================
// ATTRIBUTES
// ========================================
/**
* Create archer kidnapper attributes.
@@ -132,9 +119,7 @@ public class EntityKidnapperArcher
.add(Attributes.ATTACK_DAMAGE, ARCHER_ATTACK_DAMAGE);
}
// ========================================
// DATA SYNC
// ========================================
@Override
protected void defineSynchedData() {
@@ -143,9 +128,7 @@ public class EntityKidnapperArcher
this.entityData.define(DATA_IN_RANGED_MODE, false);
}
// ========================================
// VARIANT SYSTEM - Override virtual methods
// ========================================
@Override
public KidnapperVariant lookupVariantById(String variantId) {
@@ -155,7 +138,8 @@ public class EntityKidnapperArcher
@Override
public KidnapperVariant computeVariantForEntity(UUID entityUUID) {
Gender preferredGender = SettingsAccessor.getPreferredSpawnGender(
this.level() != null ? this.level().getGameRules() : null);
this.level() != null ? this.level().getGameRules() : null
);
return ArcherKidnapperSkinManager.CORE.getVariantForEntity(
entityUUID,
preferredGender
@@ -184,9 +168,7 @@ public class EntityKidnapperArcher
return "ArcherVariantName";
}
// ========================================
// AI GOALS
// ========================================
@Override
protected void registerGoals() {
@@ -202,9 +184,7 @@ public class EntityKidnapperArcher
);
}
// ========================================
// INITIALIZATION
// ========================================
@Override
public void onAddedToWorld() {
@@ -223,9 +203,7 @@ public class EntityKidnapperArcher
}
}
// ========================================
// RANGED ATTACK MOB INTERFACE
// ========================================
/**
* Called by the ranged goal to perform the actual attack.
@@ -270,9 +248,7 @@ public class EntityKidnapperArcher
);
}
// ========================================
// AIMING STATE (for animation)
// ========================================
/**
* Set whether the archer is currently aiming.
@@ -350,9 +326,7 @@ public class EntityKidnapperArcher
return UseAnim.NONE;
}
// ========================================
// HIT TRACKING METHODS
// ========================================
/**
* Get the current bind chance for a target.
@@ -396,9 +370,7 @@ public class EntityKidnapperArcher
targetHitCounts.clear();
}
// ========================================
// DISPLAY
// ========================================
@Override
public Component getDisplayName() {
@@ -407,9 +379,7 @@ public class EntityKidnapperArcher
);
}
// ========================================
// OVERRIDES
// ========================================
/**
* Archers take slightly longer to capture up close.
@@ -443,9 +413,7 @@ public class EntityKidnapperArcher
return mainHand.getItem() instanceof BowItem;
}
// ========================================
// BOW RESTORATION
// ========================================
/**
* Override clearHeldItems to restore the bow.
@@ -471,9 +439,7 @@ public class EntityKidnapperArcher
);
}
// ========================================
// DIALOGUE SPEAKER (Archer-specific)
// ========================================
@Override
public SpeakerType getSpeakerType() {