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:
@@ -8,7 +8,6 @@ import net.minecraft.world.item.ItemStack;
|
||||
* Carries displaced stacks for swap/supersede cases.
|
||||
*/
|
||||
public record V2EquipResult(Type type, List<ItemStack> displaced) {
|
||||
|
||||
public enum Type {
|
||||
/** Item equipped successfully into empty regions. */
|
||||
SUCCESS,
|
||||
@@ -17,19 +16,29 @@ public record V2EquipResult(Type type, List<ItemStack> displaced) {
|
||||
/** Global item superseded multiple sub-region items. */
|
||||
SUPERSEDED,
|
||||
/** Item could not be equipped due to unresolvable conflicts. */
|
||||
BLOCKED
|
||||
BLOCKED,
|
||||
}
|
||||
|
||||
/** Convenience: check if equip was blocked. */
|
||||
public boolean isBlocked() { return type == Type.BLOCKED; }
|
||||
public boolean isBlocked() {
|
||||
return type == Type.BLOCKED;
|
||||
}
|
||||
|
||||
/** Convenience: check if equip succeeded (any non-blocked result). */
|
||||
public boolean isSuccess() { return type != Type.BLOCKED; }
|
||||
public boolean isSuccess() {
|
||||
return type != Type.BLOCKED;
|
||||
}
|
||||
|
||||
// ===== Factory methods =====
|
||||
|
||||
public static final V2EquipResult SUCCESS = new V2EquipResult(Type.SUCCESS, List.of());
|
||||
public static final V2EquipResult BLOCKED = new V2EquipResult(Type.BLOCKED, List.of());
|
||||
public static final V2EquipResult SUCCESS = new V2EquipResult(
|
||||
Type.SUCCESS,
|
||||
List.of()
|
||||
);
|
||||
public static final V2EquipResult BLOCKED = new V2EquipResult(
|
||||
Type.BLOCKED,
|
||||
List.of()
|
||||
);
|
||||
|
||||
public static V2EquipResult swapped(ItemStack displaced) {
|
||||
return new V2EquipResult(Type.SWAPPED, List.of(displaced));
|
||||
|
||||
Reference in New Issue
Block a user