1.20.6 Initial Update

New Decompiler
Runtime Official mappings
ItemStacks arnt Capability providers anymore, use Vanilla's system.

Co-authored-by: RealMangoRage <[email protected]>
Co-authored-by: Paint_Ninja <[email protected]>
This commit is contained in:
committed 2024-04-30 11:42:52 -07:00
1 parent e1fa61080a
commit 7b782e5b05
1114 files changed
+24245 -28536

No files matched your search

@@ -23,32 +23,6 @@ public class KeyMappingLookup {
map.put(modifier, new HashMap<>());
}
/** Replaced by {@link #getAll(InputConstants.Key) getAll} */
@Deprecated(forRemoval = true, since = "1.20.1")
@Nullable
public KeyMapping get(InputConstants.Key keyCode) {
var activeModifier = KeyModifier.getActiveModifier();
if (!activeModifier.matches(keyCode)) {
var binding = get(keyCode, activeModifier);
if (binding != null)
return binding;
}
return get(keyCode, KeyModifier.NONE);
}
@Nullable
@Deprecated(forRemoval = true, since = "1.20.1")
private KeyMapping get(InputConstants.Key keyCode, KeyModifier keyModifier) {
var bindings = map.get(keyModifier).get(keyCode);
if (bindings != null) {
for (var binding : bindings) {
if (binding.isActiveAndMatches(keyCode))
return binding;
}
}
return null;
}
/**
* Returns all active keys associated with the given key code and the active
* modifiers and conflict context.