-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Search: New Features and QOL Improvements (#498)
* Search: New Features and QOL Improvements New features: 1. Entity search 2. Illegal bedrock / nether water search 3. Dimension filters: only search for blocks in a specific dimensions 4. Command shortcuts for adding/removing all shulkers and signs 5. Performance optimization: Only check new and changed blocks in their respective events. Prevents constant searching over unchanged blocks 6. Option to hide rendering on F1 7. Tweaks to certain block colors with auto coloring 8. Greatly increased max render range of found blocks: Useful while traveling at very high speeds when you can easily miss found blocks * Dynamic list type for CollectionSetting * revert CollectionSetting changes sorry but it doesn't work * Smol cleanup --------- Co-authored-by: Constructor <fractalminds@protonmail.com>
- Loading branch information
1 parent
90d5575
commit 77d66d9
Showing
12 changed files
with
466 additions
and
90 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/main/java/com/lambda/mixin/network/MixinNetHandlerPlayClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.lambda.mixin.network; | ||
|
||
import com.lambda.client.event.LambdaEventBus; | ||
import com.lambda.client.event.events.ChunkDataEvent; | ||
import net.minecraft.client.multiplayer.WorldClient; | ||
import net.minecraft.client.network.NetHandlerPlayClient; | ||
import net.minecraft.network.play.server.SPacketChunkData; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(value = NetHandlerPlayClient.class) | ||
public class MixinNetHandlerPlayClient { | ||
|
||
@Shadow private WorldClient world; | ||
|
||
@Inject(method = "handleChunkData", at = @At("TAIL")) | ||
public void handleChunkData(SPacketChunkData packetIn, CallbackInfo ci) { | ||
LambdaEventBus.INSTANCE.post(new ChunkDataEvent(packetIn.isFullChunk(), this.world.getChunk(packetIn.getChunkX(), packetIn.getChunkZ()))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/com/lambda/client/event/events/ChunkDataEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.lambda.client.event.events | ||
|
||
import com.lambda.client.event.Event | ||
import net.minecraft.world.chunk.Chunk | ||
|
||
/** | ||
* Event emitted when chunk data is read | ||
*/ | ||
class ChunkDataEvent(val isFullChunk: Boolean, val chunk: Chunk): Event |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.