Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/Feature.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import net.minecraft.client.Minecraft;
import net.wurstclient.event.EventManager;
import net.wurstclient.keybinds.PossibleKeybind;
import net.wurstclient.mixinterface.IMinecraftClient;
import net.wurstclient.mixinterface.IMinecraft;
import net.wurstclient.settings.Setting;
import net.wurstclient.util.ChatUtils;

Expand All @@ -25,7 +25,7 @@ public abstract class Feature
protected static final WurstClient WURST = WurstClient.INSTANCE;
protected static final EventManager EVENTS = WURST.getEventManager();
protected static final Minecraft MC = WurstClient.MC;
protected static final IMinecraftClient IMC = WurstClient.IMC;
protected static final IMinecraft IMC = WurstClient.IMC;

private final LinkedHashMap<String, Setting> settings =
new LinkedHashMap<>();
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/wurstclient/WurstClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import net.wurstclient.hud.IngameHUD;
import net.wurstclient.keybinds.KeybindList;
import net.wurstclient.keybinds.KeybindProcessor;
import net.wurstclient.mixinterface.IMinecraftClient;
import net.wurstclient.mixinterface.IMinecraft;
import net.wurstclient.navigator.Navigator;
import net.wurstclient.other_feature.OtfList;
import net.wurstclient.other_feature.OtherFeature;
Expand All @@ -48,7 +48,7 @@ public enum WurstClient
INSTANCE;

public static Minecraft MC;
public static IMinecraftClient IMC;
public static IMinecraft IMC;

public static final String VERSION = "7.51.1";
public static final String MC_VERSION = "1.21.10";
Expand Down Expand Up @@ -81,7 +81,7 @@ public void initialize()
System.out.println("Starting Wurst Client...");

MC = Minecraft.getInstance();
IMC = (IMinecraftClient)MC;
IMC = (IMinecraft)MC;
wurstFolder = createWurstFolder();

Path analyticsFile = wurstFolder.resolve("analytics.json");
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/ai/PathProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import net.minecraft.core.BlockPos;
import net.minecraft.world.phys.Vec3;
import net.wurstclient.WurstClient;
import net.wurstclient.mixinterface.IKeyBinding;
import net.wurstclient.mixinterface.IKeyMapping;

public abstract class PathProcessor
{
Expand Down Expand Up @@ -77,6 +77,6 @@ public static final void releaseControls()
{
// reset keys
for(KeyMapping key : CONTROLS)
IKeyBinding.get(key).resetPressedState();
IKeyMapping.get(key).resetPressedState();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
import net.minecraft.util.StringUtil;
import net.wurstclient.WurstClient;
import net.wurstclient.altmanager.*;
import net.wurstclient.mixinterface.IMinecraftClient;
import net.wurstclient.mixinterface.IMinecraft;
import net.wurstclient.util.MultiProcessingUtils;
import net.wurstclient.util.json.JsonException;
import net.wurstclient.util.json.JsonUtils;
Expand Down Expand Up @@ -179,8 +179,7 @@ private void updateAltButtons()
editButton.active = altSelected;
deleteButton.active = altSelected;

logoutButton.active =
((IMinecraftClient)minecraft).getWurstSession() != null;
logoutButton.active = ((IMinecraft)minecraft).getWurstSession() != null;
}

@Override
Expand Down Expand Up @@ -225,7 +224,7 @@ private void pressLogin()

private void pressLogout()
{
((IMinecraftClient)minecraft).setWurstSession(null);
((IMinecraft)minecraft).setWurstSession(null);
updateAltButtons();
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/hacks/AntiBlindHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ public AntiBlindHack()
}

// See BackgroundRendererMixin, LightmapTextureManagerMixin,
// WorldRendererMixin, ClientPlayerEntityMixin.hasStatusEffect()
// LevelRendererMixin, LocalPlayerMixin.hasEffect()
}
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/hacks/AutoCompleteHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ public void onRefresh(String draftMessage,
lastRefreshTime = System.currentTimeMillis();
}

// See ChatInputSuggestorMixin
// See CommandSuggestionsMixin
}
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/hacks/AutoLibrarianHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import net.wurstclient.hack.Hack;
import net.wurstclient.hacks.autolibrarian.BookOffer;
import net.wurstclient.hacks.autolibrarian.UpdateBooksSetting;
import net.wurstclient.mixinterface.IKeyBinding;
import net.wurstclient.mixinterface.IKeyMapping;
import net.wurstclient.settings.BookOffersSetting;
import net.wurstclient.settings.CheckboxSetting;
import net.wurstclient.settings.FaceTargetSetting;
Expand Down Expand Up @@ -325,7 +325,7 @@ private void placeJobSite()
? InteractionHand.MAIN_HAND : InteractionHand.OFF_HAND;

// sneak-place to avoid activating trapdoors/chests/etc.
IKeyBinding sneakKey = IKeyBinding.get(MC.options.keyShift);
IKeyMapping sneakKey = IKeyMapping.get(MC.options.keyShift);
sneakKey.setDown(true);
if(!MC.player.isShiftKeyDown())
return;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/hacks/AutoMineHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import net.wurstclient.events.HandleBlockBreakingListener;
import net.wurstclient.events.UpdateListener;
import net.wurstclient.hack.Hack;
import net.wurstclient.mixinterface.IKeyBinding;
import net.wurstclient.mixinterface.IKeyMapping;
import net.wurstclient.settings.CheckboxSetting;

@SearchTags({"auto mine", "AutoBreak", "auto break"})
Expand Down Expand Up @@ -59,7 +59,7 @@ protected void onDisable()
{
EVENTS.remove(UpdateListener.class, this);
EVENTS.remove(HandleBlockBreakingListener.class, this);
IKeyBinding.get(MC.options.keyAttack).resetPressedState();
IKeyMapping.get(MC.options.keyAttack).resetPressedState();
MC.gameMode.stopDestroyBlock();
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/hacks/AutoStealHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@ public boolean areButtonsVisible()
return buttons.isChecked();
}

// See GenericContainerScreenMixin and ShulkerBoxScreenMixin
// See ContainerScreenMixin and ShulkerBoxScreenMixin
}
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/hacks/AutoToolHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import net.wurstclient.events.BlockBreakingProgressListener;
import net.wurstclient.events.UpdateListener;
import net.wurstclient.hack.Hack;
import net.wurstclient.mixinterface.IClientPlayerInteractionManager;
import net.wurstclient.mixinterface.IMultiPlayerGameMode;
import net.wurstclient.settings.CheckboxSetting;
import net.wurstclient.settings.SliderSetting;
import net.wurstclient.settings.SliderSetting.ValueDisplay;
Expand Down Expand Up @@ -224,7 +224,7 @@ private void putAwayDamagedTool(int repairMode)
{
Inventory inv = MC.player.getInventory();
int selectedSlot = inv.getSelectedSlot();
IClientPlayerInteractionManager im = IMC.getInteractionManager();
IMultiPlayerGameMode im = IMC.getInteractionManager();

// If there's an empty slot in the main inventory,
// shift-click the damaged item out of the hotbar
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/wurstclient/hacks/AutoTotemHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import net.wurstclient.SearchTags;
import net.wurstclient.events.UpdateListener;
import net.wurstclient.hack.Hack;
import net.wurstclient.mixinterface.IClientPlayerInteractionManager;
import net.wurstclient.mixinterface.IMultiPlayerGameMode;
import net.wurstclient.settings.CheckboxSetting;
import net.wurstclient.settings.SliderSetting;
import net.wurstclient.settings.SliderSetting.ValueDisplay;
Expand Down Expand Up @@ -125,7 +125,7 @@ private void moveToOffhand(int itemSlot)
{
boolean offhandEmpty = MC.player.getOffhandItem().isEmpty();

IClientPlayerInteractionManager im = IMC.getInteractionManager();
IMultiPlayerGameMode im = IMC.getInteractionManager();
im.windowClick_PICKUP(itemSlot);
im.windowClick_PICKUP(45);

Expand All @@ -138,7 +138,7 @@ private void finishMovingTotem()
if(nextTickSlot == -1)
return;

IClientPlayerInteractionManager im = IMC.getInteractionManager();
IMultiPlayerGameMode im = IMC.getInteractionManager();
im.windowClick_PICKUP(nextTickSlot);
nextTickSlot = -1;
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/hacks/AutoWalkHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import net.wurstclient.SearchTags;
import net.wurstclient.events.UpdateListener;
import net.wurstclient.hack.Hack;
import net.wurstclient.mixinterface.IKeyBinding;
import net.wurstclient.mixinterface.IKeyMapping;

@SearchTags({"auto walk"})
public final class AutoWalkHack extends Hack implements UpdateListener
Expand All @@ -32,7 +32,7 @@ protected void onEnable()
protected void onDisable()
{
EVENTS.remove(UpdateListener.class, this);
IKeyBinding.get(MC.options.keyUp).resetPressedState();
IKeyMapping.get(MC.options.keyUp).resetPressedState();
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/hacks/BarrierEspHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ public BarrierEspHack()
setCategory(Category.RENDER);
}

// See ClientWorldMixin
// See ClientLevelMixin
}
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/hacks/CreativeFlightHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import net.wurstclient.SearchTags;
import net.wurstclient.events.UpdateListener;
import net.wurstclient.hack.Hack;
import net.wurstclient.mixinterface.IKeyBinding;
import net.wurstclient.mixinterface.IKeyMapping;
import net.wurstclient.settings.CheckboxSetting;
import net.wurstclient.settings.SliderSetting;
import net.wurstclient.settings.SliderSetting.ValueDisplay;
Expand Down Expand Up @@ -126,6 +126,6 @@ private void restoreKeyPresses()
KeyMapping[] keys = {MC.options.keyJump, MC.options.keyShift};

for(KeyMapping key : keys)
IKeyBinding.get(key).resetPressedState();
IKeyMapping.get(key).resetPressedState();
}
}
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/hacks/FreecamHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import net.wurstclient.events.*;
import net.wurstclient.hack.DontSaveState;
import net.wurstclient.hack.Hack;
import net.wurstclient.mixinterface.IKeyBinding;
import net.wurstclient.mixinterface.IKeyMapping;
import net.wurstclient.settings.CheckboxSetting;
import net.wurstclient.settings.ColorSetting;
import net.wurstclient.settings.SliderSetting;
Expand Down Expand Up @@ -77,7 +77,7 @@ protected void onEnable()
opt.keyRight, opt.keyJump, opt.keyShift};

for(KeyMapping binding : bindings)
IKeyBinding.get(binding).resetPressedState();
IKeyMapping.get(binding).resetPressedState();
}

@Override
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/net/wurstclient/hacks/FullbrightHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import net.wurstclient.SearchTags;
import net.wurstclient.events.UpdateListener;
import net.wurstclient.hack.Hack;
import net.wurstclient.mixinterface.ISimpleOption;
import net.wurstclient.mixinterface.IOptionInstance;
import net.wurstclient.settings.CheckboxSetting;
import net.wurstclient.settings.EnumSetting;
import net.wurstclient.settings.SliderSetting;
Expand Down Expand Up @@ -96,7 +96,7 @@ private void setGamma(double target)
wasGammaChanged = true;

OptionInstance<Double> gammaOption = MC.options.gamma();
ISimpleOption<Double> gammaOption2 = ISimpleOption.get(gammaOption);
IOptionInstance<Double> gammaOption2 = IOptionInstance.get(gammaOption);
double oldGammaValue = gammaOption.get();

if(!fade.isChecked() || Math.abs(oldGammaValue - target) <= 0.5)
Expand All @@ -114,7 +114,7 @@ private void setGamma(double target)
private void resetGamma(double target)
{
OptionInstance<Double> gammaOption = MC.options.gamma();
ISimpleOption<Double> gammaOption2 = ISimpleOption.get(gammaOption);
IOptionInstance<Double> gammaOption2 = IOptionInstance.get(gammaOption);
double oldGammaValue = gammaOption.get();

if(!fade.isChecked() || Math.abs(oldGammaValue - target) <= 0.5)
Expand Down Expand Up @@ -193,5 +193,5 @@ public String toString()
}
}

// See ClientPlayerEntityMixin.hasStatusEffect()
// See LocalPlayerMixin.hasEffect()
}
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/hacks/HandNoClipHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ public boolean isBlockInList(BlockPos pos)
return blocks.contains(BlockUtils.getName(pos));
}

// See AbstractBlockStateMixin.onGetOutlineShape()
// See BlockStateBaseMixin.onGetOutlineShape()
}
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/hacks/InvWalkHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import net.wurstclient.clickgui.screens.ClickGuiScreen;
import net.wurstclient.events.UpdateListener;
import net.wurstclient.hack.Hack;
import net.wurstclient.mixinterface.IKeyBinding;
import net.wurstclient.mixinterface.IKeyMapping;
import net.wurstclient.settings.CheckboxSetting;

@SearchTags({"inv walk", "inventory walk", "InvMove", "inv move",
Expand Down Expand Up @@ -93,7 +93,7 @@ public void onUpdate()
keys.add(MC.options.keyJump);

for(KeyMapping key : keys)
IKeyBinding.get(key).resetPressedState();
IKeyMapping.get(key).resetPressedState();
}

private boolean isAllowedScreen(Screen screen)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/hacks/MileyCyrusHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import net.wurstclient.SearchTags;
import net.wurstclient.events.UpdateListener;
import net.wurstclient.hack.Hack;
import net.wurstclient.mixinterface.IKeyBinding;
import net.wurstclient.mixinterface.IKeyMapping;
import net.wurstclient.settings.SliderSetting;
import net.wurstclient.settings.SliderSetting.ValueDisplay;

Expand Down Expand Up @@ -43,7 +43,7 @@ protected void onEnable()
protected void onDisable()
{
EVENTS.remove(UpdateListener.class, this);
IKeyBinding.get(MC.options.keyShift).resetPressedState();
IKeyMapping.get(MC.options.keyShift).resetPressedState();
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/hacks/NameTagsHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ public boolean shouldForcePlayerNametags()
}

// See EntityRenderCommandQueueImpl, EntityRendererMixin,
// LivingEntityRendererMixin, MobEntityRendererMixin
// LivingEntityRendererMixin, MobRendererMixin
}
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/hacks/NoFireOverlayHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ public float getOverlayOffset()
return isEnabled() ? offset.getValueF() : 0;
}

// See InGameOverlayRendererMixin.getFireOffset()
// See ScreenEffectRendererMixin.getFireOffset()
}
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/hacks/NoLevitationHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public NoLevitationHack()
setCategory(Category.MOVEMENT);
}

// See ClientPlayerEntityMixin.hasStatusEffect() and
// ClientPlayerEntityMixin.getStatusEffect()
// See LocalPlayerMixin.hasEffect() and
// LocalPlayerMixin.getEffect()
}
4 changes: 2 additions & 2 deletions src/main/java/net/wurstclient/hacks/NoOverlayHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public NoOverlayHack()
setCategory(Category.RENDER);
}

// See CameraMixin.onGetSubmersionType(), IngameHudMixin.renderOverlay(),
// InGameOverlayRendererMixin.onRenderUnderwaterOverlay()
// See CameraMixin.onGetSubmersionType(), GuiMixin.onRenderOverlay(),
// ScreenEffectRendererMixin.onRenderUnderwaterOverlay()
}
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/hacks/NoPumpkinHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ public NoPumpkinHack()
setCategory(Category.RENDER);
}

// See IngameHudMixin.onRenderOverlay()
// See GuiMixin.onRenderOverlay()
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ public void adjustShieldPosition(PoseStack matrixStack, boolean blocking)
matrixStack.translate(0, -nonBlockingOffset.getValue(), 0);
}

// See HeldItemRendererMixin
// See ItemInHandRendererMixin
}
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/hacks/NoSlowdownHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ public NoSlowdownHack()
}

// See BlockMixin.onGetVelocityMultiplier() and
// ClientPlayerEntityMixin.wurstIsUsingItem()
// LocalPlayerMixin.wurstIsUsingItem()
}
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/hacks/NoVignetteHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ public NoVignetteHack()
setCategory(Category.RENDER);
}

// See IngameHudMixin.onRenderVignetteOverlay()
// See GuiMixin.onRenderVignetteOverlay()
}
Loading