We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please describe the new feature or change.
Well the name describes it all really.
Please describe why you want this feature.
Mostly for personal use but im certain many people would love to not have to Mixin this themselves.
Here is my Mixin so you can go off it, im sure it wont look the same because im using the API and yours will be directly in the mod:
@Mixin(EnderMan.class) public class EnderMaskMixin { boolean found = false; @Inject(method = "isLookingAtMe", at = @At("HEAD"), cancellable = true) public void curioEnderMask(Player player, CallbackInfoReturnable<Boolean> cir) { found = false; CuriosApi.getCuriosHelper().getEquippedCurios(player).ifPresent(e -> { for (int i = 0; i < e.getSlots(); i++) { ItemStack itemStack = e.getStackInSlot(i); if (itemStack.getItem().isEnderMask(itemStack, player, (EnderMan) (Object) this)) { found = true; } } }); if(found){ cir.setReturnValue(false); } } }
The text was updated successfully, but these errors were encountered:
501b36d
TheIllusiveC4
No branches or pull requests
Please describe the new feature or change.
Well the name describes it all really.
Please describe why you want this feature.
Mostly for personal use but im certain many people would love to not have to Mixin this themselves.
Here is my Mixin so you can go off it, im sure it wont look the same because im using the API and yours will be directly in the mod:
The text was updated successfully, but these errors were encountered: