mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-23 06:01:38 -09:00
entity keygen function
This commit is contained in:
parent
8b1787b25d
commit
2c8bb5b6e0
@ -1055,4 +1055,8 @@ globalThis.modapi_postinit = "(" + (() => {
|
||||
var values = [...ModAPI.reflect.getClassById("net.minecraft.block.Block").staticVariables.blockRegistry.$modapi_specmap.values()];
|
||||
return qhash(block, values);
|
||||
}
|
||||
ModAPI.keygen.entity = function (entity) {
|
||||
var values = ModAPI.reflect.getClassById("net.minecraft.entity.EntityList").staticVariables.idToClassMapping.$elementData.data.filter(x=>x).map(x=>x.$key.$value);
|
||||
return qhash(entity, values);
|
||||
}
|
||||
}).toString() + ")();";
|
||||
|
Loading…
x
Reference in New Issue
Block a user