i18n-api/src/main/java/com/blackypaw/mc/i18n/InjectionHandle.java
/**
	 * Constructs the encoded string for the handle.
	 *
	 * @return The encoded string for the handle
	 */
Constructs the encoded string for the handle.
@return The encoded string for the handle
Constructs the encoded string for the handle . @return The encoded string for the handle
private String encode() {
		int localizerId = localizer.getId();
		int injectionId = this.id;
		char[] encoded = new char[12];
		encoded[0] = 'i';
		encoded[1] = 'n';
		encoded[2] = 'j';
		encoded[3] = 'c';
		encoded[4] = (char) ( (localizerId >>> 24) & 0xFF );
		encoded[5] = (char) ( (localizerId >>> 16) & 0xFF );
		encoded[6] = (char) ( (localizerId >>>  8) & 0xFF );
		encoded[7] = (char) ( (localizerId) & 0xFF );
		encoded[8]  = (char) ( (injectionId >>> 24) & 0xFF );
		encoded[9]  = (char) ( (injectionId >>> 16) & 0xFF );
		encoded[10] = (char) ( (injectionId >>>  8) & 0xFF );
		encoded[11] = (char) ( (injectionId) & 0xFF );
		return new String( encoded );
	}
private String encode ( ) { int localizerId = localizer . getId ( ) ; int injectionId = this . id ; char [ ] encoded = new char [ 12 ] ; encoded [ 0 ] = 'i' ; encoded [ 1 ] = 'n' ; encoded [ 2 ] = 'j' ; encoded [ 3 ] = 'c' ; encoded [ 4 ] = ( char ) ( ( localizerId >>> 24 ) & 0xFF ) ; encoded [ 5 ] = ( char ) ( ( localizerId >>> 16 ) & 0xFF ) ; encoded [ 6 ] = ( char ) ( ( localizerId >>> 8 ) & 0xFF ) ; encoded [ 7 ] = ( char ) ( ( localizerId ) & 0xFF ) ; encoded [ 8 ] = ( char ) ( ( injectionId >>> 24 ) & 0xFF ) ; encoded [ 9 ] = ( char ) ( ( injectionId >>> 16 ) & 0xFF ) ; encoded [ 10 ] = ( char ) ( ( injectionId >>> 8 ) & 0xFF ) ; encoded [ 11 ] = ( char ) ( ( injectionId ) & 0xFF ) ; return new String ( encoded ) ; }
Constructs the encoded string for the handle.
Constructs the encoded string for the handle .
// We can safely convert into char directly as values between 0 - 255 // will fall onto the Basic Multilingual Plane of the Unicode standard // and will thus be equal to their actual integer value: // Characters 12 - 15 unused but reserved