Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- actualSource() - Method in record class com.craftingdead.protect.client.integrity.ClassIntegrityResult
-
Returns the value of the
actualSourcerecord component. - AllowedModEntry - Class in com.craftingdead.protect.whitelist
-
Represents a single whitelisted mod entry with all validation data.
- AllowedModEntry() - Constructor for class com.craftingdead.protect.whitelist.AllowedModEntry
- AllowedModEntry(String, String, String, String) - Constructor for class com.craftingdead.protect.whitelist.AllowedModEntry
- AllowedMods - Class in com.craftingdead.protect.whitelist
-
Loads and provides access to the allowed mods whitelist.
- AllowedModsData - Class in com.craftingdead.protect.whitelist
-
Container for the allowed mods whitelist JSON data.
- AllowedModsData() - Constructor for class com.craftingdead.protect.whitelist.AllowedModsData
- AllowedModsGenerator - Class in com.craftingdead.protect.whitelist
-
Generates the allowed-mods.json whitelist by scanning a directory of mod JARs.
B
- blacklistedModsDetected() - Method in record class com.craftingdead.protect.client.integrity.ModValidationResult
-
Returns the value of the
blacklistedModsDetectedrecord component. - BUILD_ID - Static variable in class com.craftingdead.protect.BuildInfo
-
Unique identifier for this build.
- BUILD_TIMESTAMP - Static variable in class com.craftingdead.protect.BuildInfo
-
Unix timestamp (milliseconds) when this build was created.
- BuildInfo - Class in com.craftingdead.protect
-
Auto-generated build information.
C
- checkEnvironment() - Static method in class com.craftingdead.protect.NativeProtection
-
Safe wrapper for nativeEnvClean() that handles library not loaded.
- checkIntegrity() - Static method in class com.craftingdead.protect.NativeProtection
-
Safe wrapper for nativeIntegrityOk() that handles library not loaded.
- classIntegrity() - Method in record class com.craftingdead.protect.client.integrity.ClientEnvironmentReport
-
Returns the value of the
classIntegrityrecord component. - ClassIntegrityResult - Record Class in com.craftingdead.protect.client.integrity
-
Represents the integrity check result for a specific class.
- ClassIntegrityResult(String, String, String, boolean) - Constructor for record class com.craftingdead.protect.client.integrity.ClassIntegrityResult
-
Creates an instance of a
ClassIntegrityResultrecord class. - ClassIntegrityScanner - Class in com.craftingdead.protect.client.integrity.scanner
-
Scans critical classes to ensure they're loaded from expected sources.
- className() - Method in record class com.craftingdead.protect.client.integrity.ClassIntegrityResult
-
Returns the value of the
classNamerecord component. - ClientEnvironmentReport - Record Class in com.craftingdead.protect.client.integrity
-
Complete environment integrity report for the client.
- ClientEnvironmentReport(List<LoadedModInfo>, ModValidationResult, TransformationAnomalies, List<ClassIntegrityResult>, long) - Constructor for record class com.craftingdead.protect.client.integrity.ClientEnvironmentReport
-
Creates an instance of a
ClientEnvironmentReportrecord class. - com.craftingdead.protect - package com.craftingdead.protect
- com.craftingdead.protect.client.integrity - package com.craftingdead.protect.client.integrity
- com.craftingdead.protect.client.integrity.config - package com.craftingdead.protect.client.integrity.config
- com.craftingdead.protect.client.integrity.scanner - package com.craftingdead.protect.client.integrity.scanner
- com.craftingdead.protect.client.integrity.util - package com.craftingdead.protect.client.integrity.util
- com.craftingdead.protect.whitelist - package com.craftingdead.protect.whitelist
- compareHashes(String, String) - Static method in class com.craftingdead.protect.IntegrityChecker
-
Compares two hash strings for equality.
- computeExpectedChallenge(int) - Static method in class com.craftingdead.protect.NativeProtection
-
Computes the expected response for a challenge seed (Java-side verification).
- computeJarHash(Class<?>) - Static method in class com.craftingdead.protect.IntegrityChecker
-
Computes the SHA-256 hash of the JAR file containing the given class.
- computeResourceHash(String, ClassLoader) - Static method in class com.craftingdead.protect.IntegrityChecker
-
Computes the SHA-256 hash of a resource inside the JAR.
- ConfigLoader - Class in com.craftingdead.protect.client.integrity.config
-
Loads mod list configurations from JSON files.
- current() - Static method in enum class com.craftingdead.protect.ProtectionMode
-
Gets the current protection mode based on system property.
D
- DEV - Enum constant in enum class com.craftingdead.protect.ProtectionMode
-
Development mode - minimal protection, allows debugging.
E
- EnvironmentChecker - Class in com.craftingdead.protect
-
Detects debugging and profiling environments at runtime.
- equals(Object) - Method in record class com.craftingdead.protect.client.integrity.ClassIntegrityResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.craftingdead.protect.client.integrity.ClientEnvironmentReport
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.craftingdead.protect.client.integrity.LoadedModInfo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.craftingdead.protect.client.integrity.ModValidationResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.craftingdead.protect.client.integrity.TransformationAnomalies
-
Indicates whether some other object is "equal to" this one.
- expectedSource() - Method in record class com.craftingdead.protect.client.integrity.ClassIntegrityResult
-
Returns the value of the
expectedSourcerecord component.
G
- generateWhitelist(Path) - Static method in class com.craftingdead.protect.whitelist.AllowedModsGenerator
-
Generates the whitelist by scanning all JAR files in the given directory.
- getAllowedMods() - Method in class com.craftingdead.protect.client.integrity.config.ModListConfig
- getAllowedModsSet() - Method in class com.craftingdead.protect.client.integrity.config.ModListConfig
- getBlacklistedMods() - Method in class com.craftingdead.protect.client.integrity.config.ModListConfig
- getBlacklistedModsSet() - Method in class com.craftingdead.protect.client.integrity.config.ModListConfig
- getDescription() - Method in enum class com.craftingdead.protect.ProtectionMode
-
Gets a human-readable description of this mode.
- getFilename() - Method in class com.craftingdead.protect.whitelist.AllowedModEntry
- getGeneratedAt() - Method in class com.craftingdead.protect.whitelist.AllowedModsData
- getInstance() - Static method in class com.craftingdead.protect.whitelist.AllowedMods
-
Gets the singleton instance (uses cached instance if already initialized).
- getInstance(Path) - Static method in class com.craftingdead.protect.whitelist.AllowedMods
-
Gets the singleton instance with a specific config directory.
- getJvmArguments() - Static method in class com.craftingdead.protect.EnvironmentChecker
-
Gets all JVM input arguments as a single string for logging/debugging.
- getModId() - Method in class com.craftingdead.protect.whitelist.AllowedModEntry
- getMods() - Method in class com.craftingdead.protect.whitelist.AllowedModsData
- getRequiredMods() - Method in class com.craftingdead.protect.client.integrity.config.ModListConfig
- getRequiredModsSet() - Method in class com.craftingdead.protect.client.integrity.config.ModListConfig
- getSha256() - Method in class com.craftingdead.protect.whitelist.AllowedModEntry
- getStatus() - Static method in class com.craftingdead.protect.NativeProtection
-
Gets a status string describing the native protection state.
- getTotalIssueCount() - Method in record class com.craftingdead.protect.client.integrity.ClientEnvironmentReport
- getVersion() - Method in class com.craftingdead.protect.whitelist.AllowedModEntry
- getWhitelistedInfo(String) - Method in class com.craftingdead.protect.whitelist.AllowedMods
-
Gets whitelisted mod information by mod ID.
- getWhitelistSize() - Method in class com.craftingdead.protect.whitelist.AllowedMods
-
Gets the number of whitelisted mods.
H
- hasAnomalies() - Method in record class com.craftingdead.protect.client.integrity.TransformationAnomalies
- hasAnyIssues() - Method in record class com.craftingdead.protect.client.integrity.ClientEnvironmentReport
- hashCode() - Method in record class com.craftingdead.protect.client.integrity.ClassIntegrityResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.craftingdead.protect.client.integrity.ClientEnvironmentReport
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.craftingdead.protect.client.integrity.LoadedModInfo
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.craftingdead.protect.client.integrity.ModValidationResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.craftingdead.protect.client.integrity.TransformationAnomalies
-
Returns a hash code value for this object.
- HashUtil - Class in com.craftingdead.protect.client.integrity.util
-
Utility class for file hashing operations.
- hasIssues() - Method in record class com.craftingdead.protect.client.integrity.ModValidationResult
- hasJavaAgents() - Static method in class com.craftingdead.protect.EnvironmentChecker
-
Checks if any Java agents are attached to the JVM.
- hasMixins() - Method in record class com.craftingdead.protect.client.integrity.LoadedModInfo
-
Returns the value of the
hasMixinsrecord component. - hasSuspiciousAgents() - Static method in class com.craftingdead.protect.EnvironmentChecker
-
Checks for known debugger or profiler signatures in JVM arguments.
I
- IntegrityChecker - Class in com.craftingdead.protect
-
Provides runtime integrity checking capabilities.
- isCoremod() - Method in record class com.craftingdead.protect.client.integrity.LoadedModInfo
-
Returns the value of the
isCoremodrecord component. - isDebuggingActive() - Static method in class com.craftingdead.protect.EnvironmentChecker
-
Checks if JDWP (Java Debug Wire Protocol) is active.
- isDev() - Static method in enum class com.craftingdead.protect.ProtectionMode
-
Checks if the current mode is DEV.
- isHostileEnvironment() - Static method in class com.craftingdead.protect.EnvironmentChecker
-
Performs a comprehensive check for any debugging or profiling environment.
- isLoaded() - Static method in class com.craftingdead.protect.NativeProtection
-
Checks if the native protection library was successfully loaded.
- isLoaded() - Method in class com.craftingdead.protect.whitelist.AllowedMods
-
Checks if the whitelist was successfully loaded.
- isModAllowed(String, String, String) - Method in class com.craftingdead.protect.whitelist.AllowedMods
-
Checks if a mod is allowed based on its ID, version, and hash.
- isModIdWhitelisted(String) - Method in class com.craftingdead.protect.whitelist.AllowedMods
-
Checks if a mod ID exists in the whitelist (regardless of version/hash).
- isRelease() - Static method in enum class com.craftingdead.protect.ProtectionMode
-
Checks if the current mode is RELEASE.
- isStrictMode() - Method in class com.craftingdead.protect.client.integrity.config.ModListConfig
J
- jarLocation() - Method in record class com.craftingdead.protect.client.integrity.LoadedModInfo
-
Returns the value of the
jarLocationrecord component.
L
- LoadedModInfo - Record Class in com.craftingdead.protect.client.integrity
-
Represents information about a loaded mod.
- LoadedModInfo(String, String, Path, String, boolean, boolean) - Constructor for record class com.craftingdead.protect.client.integrity.LoadedModInfo
-
Creates an instance of a
LoadedModInforecord class. - loadModListConfig(Path) - Static method in class com.craftingdead.protect.client.integrity.config.ConfigLoader
-
Loads mod list configuration from a JSON file.
M
- main(String[]) - Static method in class com.craftingdead.protect.whitelist.AllowedModsGenerator
-
Main entry point for Gradle task execution.
- missingRequiredMods() - Method in record class com.craftingdead.protect.client.integrity.ModValidationResult
-
Returns the value of the
missingRequiredModsrecord component. - modId() - Method in record class com.craftingdead.protect.client.integrity.LoadedModInfo
-
Returns the value of the
modIdrecord component. - ModListConfig - Class in com.craftingdead.protect.client.integrity.config
-
Configuration structure for mod whitelist and blacklist.
- ModListConfig() - Constructor for class com.craftingdead.protect.client.integrity.config.ModListConfig
- mods() - Method in record class com.craftingdead.protect.client.integrity.ClientEnvironmentReport
-
Returns the value of the
modsrecord component. - modValidation() - Method in record class com.craftingdead.protect.client.integrity.ClientEnvironmentReport
-
Returns the value of the
modValidationrecord component. - ModValidationResult - Record Class in com.craftingdead.protect.client.integrity
-
Result of mod validation against whitelist and blacklist.
- ModValidationResult(List<String>, List<String>, List<String>) - Constructor for record class com.craftingdead.protect.client.integrity.ModValidationResult
-
Creates an instance of a
ModValidationResultrecord class. - ModValidator - Class in com.craftingdead.protect.client.integrity.scanner
-
Validates loaded mods against whitelist and blacklist configurations.
N
- nativeChallenge(int) - Static method in class com.craftingdead.protect.NativeProtection
-
Performs a challenge-response computation for anti-tamper verification.
- nativeEnvClean() - Static method in class com.craftingdead.protect.NativeProtection
-
Performs native-level environment cleanliness check.
- nativeIntegrityOk() - Static method in class com.craftingdead.protect.NativeProtection
-
Performs native-level integrity verification.
- NativeProtection - Class in com.craftingdead.protect
-
JNI wrapper for native protection layer (cdprotect library).
P
- performChallenge(int) - Static method in class com.craftingdead.protect.NativeProtection
-
Safe wrapper for nativeChallenge() that handles library not loaded.
- performComprehensiveEnvironmentCheck() - Static method in class com.craftingdead.protect.EnvironmentChecker
-
Performs comprehensive environment verification using both Java and native methods.
- performComprehensiveIntegrityCheck(Class<?>, String) - Static method in class com.craftingdead.protect.IntegrityChecker
-
Performs comprehensive integrity check using both Java and native methods.
- PROTECTION_MODE - Static variable in class com.craftingdead.protect.BuildInfo
-
Protection mode this build was compiled with.
- ProtectionMode - Enum Class in com.craftingdead.protect
-
Represents the protection mode for the application.
Q
- quickEnvironmentCheck() - Static method in class com.craftingdead.protect.EnvironmentChecker
-
Quick environment check that only uses native layer if available.
- quickIntegrityCheck() - Static method in class com.craftingdead.protect.IntegrityChecker
-
Quick integrity check that only uses native layer if available.
R
- RELEASE - Enum constant in enum class com.craftingdead.protect.ProtectionMode
-
Release mode - full protection with strict enforcement.
S
- saveModListConfig(Path, ModListConfig) - Static method in class com.craftingdead.protect.client.integrity.config.ConfigLoader
-
Saves mod list configuration to a JSON file.
- scanClassIntegrity() - Static method in class com.craftingdead.protect.client.integrity.scanner.ClassIntegrityScanner
-
Scans critical classes to verify their source locations.
- scanTransformations() - Static method in class com.craftingdead.protect.client.integrity.scanner.TransformationScanner
-
Scans for transformation anomalies (unauthorized coremods and mixins).
- setAllowedMods(List<String>) - Method in class com.craftingdead.protect.client.integrity.config.ModListConfig
- setBlacklistedMods(List<String>) - Method in class com.craftingdead.protect.client.integrity.config.ModListConfig
- setFilename(String) - Method in class com.craftingdead.protect.whitelist.AllowedModEntry
- setGeneratedAt(String) - Method in class com.craftingdead.protect.whitelist.AllowedModsData
- setModId(String) - Method in class com.craftingdead.protect.whitelist.AllowedModEntry
- setMods(List<AllowedModEntry>) - Method in class com.craftingdead.protect.whitelist.AllowedModsData
- setRequiredMods(List<String>) - Method in class com.craftingdead.protect.client.integrity.config.ModListConfig
- setSha256(String) - Method in class com.craftingdead.protect.whitelist.AllowedModEntry
- setStrictMode(boolean) - Method in class com.craftingdead.protect.client.integrity.config.ModListConfig
- setVersion(String) - Method in class com.craftingdead.protect.whitelist.AllowedModEntry
- sha256() - Method in record class com.craftingdead.protect.client.integrity.LoadedModInfo
-
Returns the value of the
sha256record component. - sha256(InputStream) - Static method in class com.craftingdead.protect.client.integrity.util.HashUtil
-
Computes SHA-256 hash of an input stream.
- sha256(Path) - Static method in class com.craftingdead.protect.client.integrity.util.HashUtil
-
Computes SHA-256 hash of a file.
T
- timestamp() - Method in record class com.craftingdead.protect.client.integrity.ClientEnvironmentReport
-
Returns the value of the
timestamprecord component. - toString() - Method in record class com.craftingdead.protect.client.integrity.ClassIntegrityResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.craftingdead.protect.client.integrity.ClientEnvironmentReport
-
Returns a string representation of this record class.
- toString() - Method in record class com.craftingdead.protect.client.integrity.LoadedModInfo
-
Returns a string representation of this record class.
- toString() - Method in record class com.craftingdead.protect.client.integrity.ModValidationResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.craftingdead.protect.client.integrity.TransformationAnomalies
-
Returns a string representation of this record class.
- toString() - Method in enum class com.craftingdead.protect.ProtectionMode
- toString() - Method in class com.craftingdead.protect.whitelist.AllowedModEntry
- TransformationAnomalies - Record Class in com.craftingdead.protect.client.integrity
-
Represents detected anomalies in coremods and mixins.
- TransformationAnomalies(List<String>, List<String>) - Constructor for record class com.craftingdead.protect.client.integrity.TransformationAnomalies
-
Creates an instance of a
TransformationAnomaliesrecord class. - TransformationScanner - Class in com.craftingdead.protect.client.integrity.scanner
-
Scans for unauthorized coremods and mixin configurations.
- transformIssues() - Method in record class com.craftingdead.protect.client.integrity.ClientEnvironmentReport
-
Returns the value of the
transformIssuesrecord component.
U
- unexpectedCoremods() - Method in record class com.craftingdead.protect.client.integrity.TransformationAnomalies
-
Returns the value of the
unexpectedCoremodsrecord component. - unexpectedMixins() - Method in record class com.craftingdead.protect.client.integrity.TransformationAnomalies
-
Returns the value of the
unexpectedMixinsrecord component. - unknownMods() - Method in record class com.craftingdead.protect.client.integrity.ModValidationResult
-
Returns the value of the
unknownModsrecord component.
V
- valid() - Method in record class com.craftingdead.protect.client.integrity.ClassIntegrityResult
-
Returns the value of the
validrecord component. - validate(List<LoadedModInfo>, ModListConfig) - Static method in class com.craftingdead.protect.client.integrity.scanner.ModValidator
-
Validates loaded mods against the configuration.
- valueOf(String) - Static method in enum class com.craftingdead.protect.ProtectionMode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.craftingdead.protect.ProtectionMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verifyJarIntegrity(Class<?>, String) - Static method in class com.craftingdead.protect.IntegrityChecker
-
Verifies the integrity of a class's containing JAR against an expected hash.
- verifyNativeLibrary(int) - Static method in class com.craftingdead.protect.NativeProtection
-
Verifies that the native library is genuine by performing a challenge-response check.
- verifyResourceIntegrity(String, ClassLoader, String) - Static method in class com.craftingdead.protect.IntegrityChecker
-
Verifies the integrity of a resource against an expected hash.
- version() - Method in record class com.craftingdead.protect.client.integrity.LoadedModInfo
-
Returns the value of the
versionrecord component. - VERSION - Static variable in class com.craftingdead.protect.BuildInfo
-
Version string for this build.
W
- writeWhitelist(AllowedModsData, Path) - Static method in class com.craftingdead.protect.whitelist.AllowedModsGenerator
-
Writes the whitelist data to a JSON file.
All Classes and Interfaces|All Packages|Constant Field Values