net.minecraft.client.network.ClientPlayerInteractionManager Java Examples
The following examples show how to use
net.minecraft.client.network.ClientPlayerInteractionManager.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MixinMerchantContainer.java From multiconnect with MIT License | 6 votes |
@Unique private void autofill(ClientPlayerInteractionManager interactionManager, ClientPlayerEntity player, int inputSlot, ItemStack stackNeeded) { if (stackNeeded.isEmpty()) return; int slot; for (slot = 3; slot < 39; slot++) { ItemStack stack = slots.get(slot).getStack(); if (stack.getItem() == stackNeeded.getItem() && ItemStack.areTagsEqual(stack, stackNeeded)) { break; } } if (slot == 39) return; boolean wasHoldingItem = !player.inventory.getCursorStack().isEmpty(); interactionManager.clickSlot(syncId, slot, 0, SlotActionType.PICKUP, player); interactionManager.clickSlot(syncId, slot, 0, SlotActionType.PICKUP_ALL, player); interactionManager.clickSlot(syncId, inputSlot, 0, SlotActionType.PICKUP, player); if (wasHoldingItem) interactionManager.clickSlot(syncId, slot, 0, SlotActionType.PICKUP, player); }
Example #2
Source File: MixinClientPlayerInteractionManager.java From bleachhack-1.14 with GNU General Public License v3.0 | 6 votes |
@Redirect(method = "method_2902", at = @At(value = "FIELD", target = "Lnet/minecraft/client/network/ClientPlayerInteractionManager;field_3716:I", ordinal = 3)) public void onDamageBlockFirst(ClientPlayerInteractionManager clientPlayerInteractionManager, int i) { i = ModuleManager.getModule(Nuker.class).isToggled() ? (int) ModuleManager.getModule(Nuker.class).getSettings().get(2).toSlider().getValue() : ModuleManager.getModule(SpeedMine.class).isToggled() && ModuleManager.getModule(SpeedMine.class).getSettings().get(0).toMode().mode == 1 ? (int) ModuleManager.getModule(SpeedMine.class).getSettings().get(2).toSlider().getValue() : 5; this.field_3716 = i; }
Example #3
Source File: MixinClientPlayerInteractionManager.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Redirect(method = "method_2902", at = @At(value = "FIELD", target = "Lnet/minecraft/client/network/ClientPlayerInteractionManager;field_3716:I", ordinal = 4)) public void onDamageBlockSecond(ClientPlayerInteractionManager clientPlayerInteractionManager, int i) { i = ModuleManager.getModule(Nuker.class).isToggled() ? (int) ModuleManager.getModule(Nuker.class).getSettings().get(2).toSlider().getValue() : ModuleManager.getModule(SpeedMine.class).isToggled() && ModuleManager.getModule(SpeedMine.class).getSettings().get(0).toMode().mode == 1 ? (int) ModuleManager.getModule(SpeedMine.class).getSettings().get(2).toSlider().getValue() : 5; this.field_3716 = i; }
Example #4
Source File: MixinClientPlayerInteractionManager.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Redirect(method = "attackBlock", at = @At(value = "FIELD", target = "Lnet/minecraft/client/network/ClientPlayerInteractionManager;field_3716:I")) public void attackBlock(ClientPlayerInteractionManager clientPlayerInteractionManager, int i) { i = ModuleManager.getModule(Nuker.class).isToggled() ? (int) ModuleManager.getModule(Nuker.class).getSettings().get(2).toSlider().getValue() : ModuleManager.getModule(SpeedMine.class).isToggled() && ModuleManager.getModule(SpeedMine.class).getSettings().get(0).toMode().mode == 1 ? (int) ModuleManager.getModule(SpeedMine.class).getSettings().get(2).toSlider().getValue() : 5; this.field_3716 = i; }
Example #5
Source File: MixinClientPlayerInteractionManager.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Redirect(method = "updateBlockBreakingProgress", at = @At(value = "FIELD", target = "Lnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingCooldown:I", ordinal = 3)) public void updateBlockBreakingProgress(ClientPlayerInteractionManager clientPlayerInteractionManager, int i) { i = ModuleManager.getModule(Nuker.class).isToggled() ? (int) ModuleManager.getModule(Nuker.class).getSettings().get(2).toSlider().getValue() : ModuleManager.getModule(SpeedMine.class).isToggled() && ModuleManager.getModule(SpeedMine.class).getSettings().get(0).toMode().mode == 1 ? (int) ModuleManager.getModule(SpeedMine.class).getSettings().get(2).toSlider().getValue() : 5; this.blockBreakingCooldown = i; }
Example #6
Source File: MixinClientPlayerInteractionManager.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Redirect(method = "updateBlockBreakingProgress", at = @At(value = "FIELD", target = "Lnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingCooldown:I", ordinal = 4)) public void updateBlockBreakingProgress2(ClientPlayerInteractionManager clientPlayerInteractionManager, int i) { i = ModuleManager.getModule(Nuker.class).isToggled() ? (int) ModuleManager.getModule(Nuker.class).getSettings().get(2).toSlider().getValue() : ModuleManager.getModule(SpeedMine.class).isToggled() && ModuleManager.getModule(SpeedMine.class).getSettings().get(0).toMode().mode == 1 ? (int) ModuleManager.getModule(SpeedMine.class).getSettings().get(2).toSlider().getValue() : 5; this.blockBreakingCooldown = i; }
Example #7
Source File: MixinClientPlayerInteractionManager.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Redirect(method = "attackBlock", at = @At(value = "FIELD", target = "Lnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingCooldown:I")) public void attackBlock(ClientPlayerInteractionManager clientPlayerInteractionManager, int i) { i = ModuleManager.getModule(Nuker.class).isToggled() ? (int) ModuleManager.getModule(Nuker.class).getSettings().get(2).toSlider().getValue() : ModuleManager.getModule(SpeedMine.class).isToggled() && ModuleManager.getModule(SpeedMine.class).getSettings().get(0).toMode().mode == 1 ? (int) ModuleManager.getModule(SpeedMine.class).getSettings().get(2).toSlider().getValue() : 5; this.blockBreakingCooldown = i; }
Example #8
Source File: MixinClientPlayerInteractionManager.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Redirect(method = "updateBlockBreakingProgress", at = @At(value = "FIELD", target = "Lnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingCooldown:I", ordinal = 3)) public void updateBlockBreakingProgress(ClientPlayerInteractionManager clientPlayerInteractionManager, int i) { i = ModuleManager.getModule(Nuker.class).isToggled() ? (int) ModuleManager.getModule(Nuker.class).getSettings().get(2).toSlider().getValue() : ModuleManager.getModule(SpeedMine.class).isToggled() && ModuleManager.getModule(SpeedMine.class).getSettings().get(0).toMode().mode == 1 ? (int) ModuleManager.getModule(SpeedMine.class).getSettings().get(2).toSlider().getValue() : 5; this.blockBreakingCooldown = i; }
Example #9
Source File: MixinClientPlayerInteractionManager.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Redirect(method = "updateBlockBreakingProgress", at = @At(value = "FIELD", target = "Lnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingCooldown:I", ordinal = 4)) public void updateBlockBreakingProgress2(ClientPlayerInteractionManager clientPlayerInteractionManager, int i) { i = ModuleManager.getModule(Nuker.class).isToggled() ? (int) ModuleManager.getModule(Nuker.class).getSettings().get(2).toSlider().getValue() : ModuleManager.getModule(SpeedMine.class).isToggled() && ModuleManager.getModule(SpeedMine.class).getSettings().get(0).toMode().mode == 1 ? (int) ModuleManager.getModule(SpeedMine.class).getSettings().get(2).toSlider().getValue() : 5; this.blockBreakingCooldown = i; }
Example #10
Source File: MixinClientPlayerInteractionManager.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Redirect(method = "attackBlock", at = @At(value = "FIELD", target = "Lnet/minecraft/client/network/ClientPlayerInteractionManager;blockBreakingCooldown:I")) public void attackBlock(ClientPlayerInteractionManager clientPlayerInteractionManager, int i) { i = ModuleManager.getModule(Nuker.class).isToggled() ? (int) ModuleManager.getModule(Nuker.class).getSettings().get(2).toSlider().getValue() : ModuleManager.getModule(SpeedMine.class).isToggled() && ModuleManager.getModule(SpeedMine.class).getSettings().get(0).toMode().mode == 1 ? (int) ModuleManager.getModule(SpeedMine.class).getSettings().get(2).toSlider().getValue() : 5; this.blockBreakingCooldown = i; }