no-render module

no-render: Minecraft 26.3 cheat module, full source for every implementation (1 client: Meteor Client).

1 implementationRender

Clients with this module

Full module source: 1 implementation

Every implementation below is the complete module file, verbatim. Expand a client to read its code.

Meteor ClientRendersrc/main/java/meteordevelopment/meteorclient/systems/modules/render/NoRender.javaJava · 614 lines · 18.9 KB

Disables certain animations or overlays from rendering.

Settingsportal-overlayspyglass-overlaynauseapumpkin-overlaypowdered-snow-overlayfire-overlayliquid-overlayin-wall-overlayvignettegui-backgroundtotem-animationeating-particlesenchantment-glintboss-barscoreboardcrosshairtitleheld-item-nameobfuscationpotion-iconsmessage-signature-indicatorweatherworld-borderblindnessdarknessfogenchantment-table-booksign-textblock-break-overlaybeacon-beamsfalling-blockscave-cullingmap-markersmap-contentsbannersfirework-explosionsparticlesbarrier-invisibilitytexture-rotationsblock-entities
NoRender.javaJava · Minecraft 26.2 · 614 lines · 18.9 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client).
3
 * Copyright (c) Meteor Development.
4
 */
5
6
package meteordevelopment.meteorclient.systems.modules.render;
7
8
import meteordevelopment.meteorclient.events.render.RenderBlockEntityEvent;
9
import meteordevelopment.meteorclient.events.world.ChunkOcclusionEvent;
10
import meteordevelopment.meteorclient.events.world.ParticleEvent;
11
import meteordevelopment.meteorclient.mixin.BlockEntityRenderStateAccessor;
12
import meteordevelopment.meteorclient.settings.*;
13
import meteordevelopment.meteorclient.systems.modules.Categories;
14
import meteordevelopment.meteorclient.systems.modules.Module;
15
import meteordevelopment.orbit.EventHandler;
16
import net.minecraft.core.particles.ParticleType;
17
import net.minecraft.core.particles.ParticleTypes;
18
import net.minecraft.world.entity.Entity;
19
import net.minecraft.world.entity.EntityType;
20
import net.minecraft.world.level.block.AbstractBannerBlock;
21
import net.minecraft.world.level.block.Block;
22
import net.minecraft.world.level.block.EntityBlock;
23
24
import java.util.List;
25
import java.util.Set;
26
27
public class NoRender extends Module {
28
    private final SettingGroup sgOverlay = settings.createGroup("Overlay");
29
    private final SettingGroup sgHUD = settings.createGroup("HUD");
30
    private final SettingGroup sgWorld = settings.createGroup("World");
31
    private final SettingGroup sgEntity = settings.createGroup("Entity");
32
33
    // Overlay
34
35
    private final Setting<Boolean> noPortalOverlay = sgOverlay.add(new BoolSetting.Builder()
36
        .name("portal-overlay")
37
        .description("Disables rendering of the nether portal overlay.")
38
        .defaultValue(false)
39
        .build()
40
    );
41
42
    private final Setting<Boolean> noSpyglassOverlay = sgOverlay.add(new BoolSetting.Builder()
43
        .name("spyglass-overlay")
44
        .description("Disables rendering of the spyglass overlay.")
45
        .defaultValue(false)
46
        .build()
47
    );
48
49
    private final Setting<Boolean> noNausea = sgOverlay.add(new BoolSetting.Builder()
50
        .name("nausea")
51
        .description("Disables rendering of the nausea overlay.")
52
        .defaultValue(false)
53
        .build()
54
    );
55
56
    private final Setting<Boolean> noPumpkinOverlay = sgOverlay.add(new BoolSetting.Builder()
57
        .name("pumpkin-overlay")
58
        .description("Disables rendering of the pumpkin head overlay")
59
        .defaultValue(false)
60
        .build()
61
    );
62
63
    private final Setting<Boolean> noPowderedSnowOverlay = sgOverlay.add(new BoolSetting.Builder()
64
        .name("powdered-snow-overlay")
65
        .description("Disables rendering of the powdered snow overlay.")
66
        .defaultValue(false)
67
        .build()
68
    );
69
70
    private final Setting<Boolean> noFireOverlay = sgOverlay.add(new BoolSetting.Builder()
71
        .name("fire-overlay")
72
        .description("Disables rendering of the fire overlay.")
73
        .defaultValue(false)
74
        .build()
75
    );
76
77
    private final Setting<Boolean> noLiquidOverlay = sgOverlay.add(new BoolSetting.Builder()
78
        .name("liquid-overlay")
79
        .description("Disables rendering of the liquid overlay.")
80
        .defaultValue(false)
81
        .build()
82
    );
83
84
    private final Setting<Boolean> noInWallOverlay = sgOverlay.add(new BoolSetting.Builder()
85
        .name("in-wall-overlay")
86
        .description("Disables rendering of the overlay when inside blocks.")
87
        .defaultValue(false)
88
        .build()
89
    );
90
91
    private final Setting<Boolean> noVignette = sgOverlay.add(new BoolSetting.Builder()
92
        .name("vignette")
93
        .description("Disables rendering of the vignette overlay.")
94
        .defaultValue(false)
95
        .build()
96
    );
97
98
    private final Setting<Boolean> noGuiBackground = sgOverlay.add(new BoolSetting.Builder()
99
        .name("gui-background")
100
        .description("Disables rendering of the GUI background overlay.")
101
        .defaultValue(false)
102
        .build()
103
    );
104
105
    private final Setting<Boolean> noTotemAnimation = sgOverlay.add(new BoolSetting.Builder()
106
        .name("totem-animation")
107
        .description("Disables rendering of the totem animation when you pop a totem.")
108
        .defaultValue(false)
109
        .build()
110
    );
111
112
    private final Setting<Boolean> noEatParticles = sgOverlay.add(new BoolSetting.Builder()
113
        .name("eating-particles")
114
        .description("Disables rendering of eating particles.")
115
        .defaultValue(false)
116
        .build()
117
    );
118
119
    private final Setting<Boolean> noEnchantGlint = sgOverlay.add(new BoolSetting.Builder()
120
        .name("enchantment-glint")
121
        .description("Disables rending of the enchantment glint.")
122
        .defaultValue(false)
123
        .build()
124
    );
125
126
    // HUD
127
128
    private final Setting<Boolean> noBossBar = sgHUD.add(new BoolSetting.Builder()
129
        .name("boss-bar")
130
        .description("Disable rendering of boss bars.")
131
        .defaultValue(false)
132
        .build()
133
    );
134
135
    private final Setting<Boolean> noScoreboard = sgHUD.add(new BoolSetting.Builder()
136
        .name("scoreboard")
137
        .description("Disable rendering of the scoreboard.")
138
        .defaultValue(false)
139
        .build()
140
    );
141
142
    private final Setting<Boolean> noCrosshair = sgHUD.add(new BoolSetting.Builder()
143
        .name("crosshair")
144
        .description("Disables rendering of the crosshair.")
145
        .defaultValue(false)
146
        .build()
147
    );
148
    private final Setting<Boolean> noTitle = sgHUD.add(new BoolSetting.Builder()
149
        .name("title")
150
        .description("Disables rendering of the title.")
151
        .defaultValue(false)
152
        .build()
153
    );
154
155
    private final Setting<Boolean> noHeldItemName = sgHUD.add(new BoolSetting.Builder()
156
        .name("held-item-name")
157
        .description("Disables rendering of the held item name.")
158
        .defaultValue(false)
159
        .build()
160
    );
161
162
    private final Setting<Boolean> noObfuscation = sgHUD.add(new BoolSetting.Builder()
163
        .name("obfuscation")
164
        .description("Disables obfuscation styling of characters.")
165
        .defaultValue(false)
166
        .build()
167
    );
168
169
    private final Setting<Boolean> noPotionIcons = sgHUD.add(new BoolSetting.Builder()
170
        .name("potion-icons")
171
        .description("Disables rendering of status effect icons.")
172
        .defaultValue(false)
173
        .build()
174
    );
175
176
    private final Setting<Boolean> noMessageSignatureIndicator = sgHUD.add(new BoolSetting.Builder()
177
        .name("message-signature-indicator")
178
        .description("Disables chat message signature indicator on the left of the message.")
179
        .defaultValue(false)
180
        .build()
181
    );
182
183
    // World
184
185
    private final Setting<Boolean> noWeather = sgWorld.add(new BoolSetting.Builder()
186
        .name("weather")
187
        .description("Disables rendering of weather.")
188
        .defaultValue(false)
189
        .build()
190
    );
191
192
    private final Setting<Boolean> noWorldBorder = sgWorld.add(new BoolSetting.Builder()
193
        .name("world-border")
194
        .description("Disables rendering of the world border.")
195
        .defaultValue(false)
196
        .build()
197
    );
198
199
    private final Setting<Boolean> noBlindness = sgWorld.add(new BoolSetting.Builder()
200
        .name("blindness")
201
        .description("Disables rendering of blindness.")
202
        .defaultValue(false)
203
        .build()
204
    );
205
206
    private final Setting<Boolean> noDarkness = sgWorld.add(new BoolSetting.Builder()
207
        .name("darkness")
208
        .description("Disables rendering of darkness.")
209
        .defaultValue(false)
210
        .build()
211
    );
212
213
    private final Setting<Boolean> noFog = sgWorld.add(new BoolSetting.Builder()
214
        .name("fog")
215
        .description("Disables rendering of fog.")
216
        .defaultValue(false)
217
        .build()
218
    );
219
220
    private final Setting<Boolean> noEnchTableBook = sgWorld.add(new BoolSetting.Builder()
221
        .name("enchantment-table-book")
222
        .description("Disables rendering of books above enchanting tables.")
223
        .defaultValue(false)
224
        .build()
225
    );
226
227
    private final Setting<Boolean> noSignText = sgWorld.add(new BoolSetting.Builder()
228
        .name("sign-text")
229
        .description("Disables rendering of text on signs.")
230
        .defaultValue(false)
231
        .build()
232
    );
233
234
    private final Setting<Boolean> noBlockBreakOverlay = sgWorld.add(new BoolSetting.Builder()
235
        .name("block-break-overlay")
236
        .description("Disables rendering of block-break overlay.")
237
        .defaultValue(false)
238
        .build()
239
    );
240
241
    private final Setting<Boolean> noBeaconBeams = sgWorld.add(new BoolSetting.Builder()
242
        .name("beacon-beams")
243
        .description("Disables rendering of beacon beams.")
244
        .defaultValue(false)
245
        .build()
246
    );
247
248
    private final Setting<Boolean> noFallingBlocks = sgWorld.add(new BoolSetting.Builder()
249
        .name("falling-blocks")
250
        .description("Disables rendering of falling blocks.")
251
        .defaultValue(false)
252
        .build()
253
    );
254
255
    private final Setting<Boolean> noCaveCulling = sgWorld.add(new BoolSetting.Builder()
256
        .name("cave-culling")
257
        .description("Disables Minecraft's cave culling algorithm.")
258
        .defaultValue(false)
259
        .onChanged(_ -> mc.levelExtractor.allChanged())
260
        .build()
261
    );
262
263
    private final Setting<Boolean> noMapMarkers = sgWorld.add(new BoolSetting.Builder()
264
        .name("map-markers")
265
        .description("Disables markers on maps.")
266
        .defaultValue(false)
267
        .build()
268
    );
269
270
    private final Setting<Boolean> noMapContents = sgWorld.add(new BoolSetting.Builder()
271
        .name("map-contents")
272
        .description("Disable rendering of maps.")
273
        .defaultValue(false)
274
        .build()
275
    );
276
277
    private final Setting<BannerRenderMode> bannerRender = sgWorld.add(new EnumSetting.Builder<BannerRenderMode>()
278
        .name("banners")
279
        .description("Changes rendering of banners.")
280
        .defaultValue(BannerRenderMode.Everything)
281
        .build()
282
    );
283
284
    private final Setting<Boolean> noFireworkExplosions = sgWorld.add(new BoolSetting.Builder()
285
        .name("firework-explosions")
286
        .description("Disables rendering of firework explosions.")
287
        .defaultValue(false)
288
        .build()
289
    );
290
291
    private final Setting<List<ParticleType<?>>> particles = sgWorld.add(new ParticleTypeListSetting.Builder()
292
        .name("particles")
293
        .description("Particles to not render.")
294
        .build()
295
    );
296
297
    private final Setting<Boolean> noBarrierInvis = sgWorld.add(new BoolSetting.Builder()
298
        .name("barrier-invisibility")
299
        .description("Disables barriers being invisible when not holding one.")
300
        .defaultValue(false)
301
        .build()
302
    );
303
304
    private final Setting<Boolean> noTextureRotations = sgWorld.add(new BoolSetting.Builder()
305
        .name("texture-rotations")
306
        .description("Changes texture rotations and model offsets to use a constant value instead of the block position.")
307
        .defaultValue(false)
308
        .onChanged(_ -> mc.levelExtractor.allChanged())
309
        .build()
310
    );
311
312
    private final Setting<List<Block>> blockEntities = sgWorld.add(new BlockListSetting.Builder()
313
        .name("block-entities")
314
        .description("Block entities (chest, shulker block, etc.) to not render.")
315
        .filter(block -> block instanceof EntityBlock && !(block instanceof AbstractBannerBlock))
316
        .build()
317
    );
318
319
    // Entity
320
321
    private final Setting<Set<EntityType<?>>> entities = sgEntity.add(new EntityTypeListSetting.Builder()
322
        .name("entities")
323
        .description("Disables rendering of selected entities.")
324
        .build()
325
    );
326
327
    private final Setting<Boolean> dropSpawnPacket = sgEntity.add(new BoolSetting.Builder()
328
        .name("drop-spawn-packets")
329
        .description("WARNING! Drops all spawn packets of entities selected in the above list.")
330
        .defaultValue(false)
331
        .build()
332
    );
333
334
    private final Setting<Boolean> noArmor = sgEntity.add(new BoolSetting.Builder()
335
        .name("armor")
336
        .description("Disables rendering of armor on entities.")
337
        .defaultValue(false)
338
        .build()
339
    );
340
341
    private final Setting<Boolean> noInvisibility = sgEntity.add(new BoolSetting.Builder()
342
        .name("invisibility")
343
        .description("Shows invisible entities.")
344
        .defaultValue(false)
345
        .build()
346
    );
347
348
    private final Setting<Boolean> noGlowing = sgEntity.add(new BoolSetting.Builder()
349
        .name("glowing")
350
        .description("Disables rendering of the glowing effect")
351
        .defaultValue(false)
352
        .build()
353
    );
354
355
    private final Setting<Boolean> noMobInSpawner = sgEntity.add(new BoolSetting.Builder()
356
        .name("spawner-entities")
357
        .description("Disables rendering of spinning mobs inside of mob spawners")
358
        .defaultValue(false)
359
        .build()
360
    );
361
362
    private final Setting<Boolean> noDeadEntities = sgEntity.add(new BoolSetting.Builder()
363
        .name("dead-entities")
364
        .description("Disables rendering of dead entities")
365
        .defaultValue(false)
366
        .build()
367
    );
368
369
    private final Setting<Boolean> noNametags = sgEntity.add(new BoolSetting.Builder()
370
        .name("nametags")
371
        .description("Disables rendering of entity nametags")
372
        .defaultValue(false)
373
        .build()
374
    );
375
376
    public NoRender() {
377
        super(Categories.Render, "no-render", "Disables certain animations or overlays from rendering.");
378
    }
379
380
    @Override
381
    public void onActivate() {
382
        if (noCaveCulling.get() || noTextureRotations.get()) {
383
            mc.levelExtractor.allChanged();
384
        }
385
    }
386
387
    @Override
388
    public void onDeactivate() {
389
        if (noCaveCulling.get() || noTextureRotations.get()) {
390
            mc.levelExtractor.allChanged();
391
        }
392
    }
393
394
    // Overlay
395
396
    public boolean noPortalOverlay() {
397
        return isActive() && noPortalOverlay.get();
398
    }
399
400
    public boolean noSpyglassOverlay() {
401
        return isActive() && noSpyglassOverlay.get();
402
    }
403
404
    public boolean noNausea() {
405
        return isActive() && noNausea.get();
406
    }
407
408
    public boolean noPumpkinOverlay() {
409
        return isActive() && noPumpkinOverlay.get();
410
    }
411
412
    public boolean noFireOverlay() {
413
        return isActive() && noFireOverlay.get();
414
    }
415
416
    public boolean noLiquidOverlay() {
417
        return isActive() && noLiquidOverlay.get();
418
    }
419
420
    public boolean noPowderedSnowOverlay() {
421
        return isActive() && noPowderedSnowOverlay.get();
422
    }
423
424
    public boolean noInWallOverlay() {
425
        return isActive() && noInWallOverlay.get();
426
    }
427
428
    public boolean noVignette() {
429
        return isActive() && noVignette.get();
430
    }
431
432
    public boolean noGuiBackground() {
433
        return isActive() && noGuiBackground.get();
434
    }
435
436
    public boolean noTotemAnimation() {
437
        return isActive() && noTotemAnimation.get();
438
    }
439
440
    public boolean noEatParticles() {
441
        return isActive() && noEatParticles.get();
442
    }
443
444
    public boolean noEnchantGlint() {
445
        return isActive() && noEnchantGlint.get();
446
    }
447
448
    // HUD
449
450
    public boolean noBossBar() {
451
        return isActive() && noBossBar.get();
452
    }
453
454
    public boolean noScoreboard() {
455
        return isActive() && noScoreboard.get();
456
    }
457
458
    public boolean noCrosshair() {
459
        return isActive() && noCrosshair.get();
460
    }
461
462
    public boolean noTitle() {
463
        return isActive() && noTitle.get();
464
    }
465
466
    public boolean noHeldItemName() {
467
        return isActive() && noHeldItemName.get();
468
    }
469
470
    public boolean noObfuscation() {
471
        return isActive() && noObfuscation.get();
472
    }
473
474
    public boolean noPotionIcons() {
475
        return isActive() && noPotionIcons.get();
476
    }
477
478
    public boolean noMessageSignatureIndicator() {
479
        return isActive() && noMessageSignatureIndicator.get();
480
    }
481
482
    // World
483
484
    public boolean noWeather() {
485
        return isActive() && noWeather.get();
486
    }
487
488
    public boolean noWorldBorder() {
489
        return isActive() && noWorldBorder.get();
490
    }
491
492
    public boolean noBlindness() {
493
        return isActive() && noBlindness.get();
494
    }
495
496
    public boolean noDarkness() {
497
        return isActive() && noDarkness.get();
498
    }
499
500
    public boolean noFog() {
501
        return isActive() && noFog.get();
502
    }
503
504
    public boolean noEnchTableBook() {
505
        return isActive() && noEnchTableBook.get();
506
    }
507
508
    public boolean noSignText() {
509
        return isActive() && noSignText.get();
510
    }
511
512
    public boolean noParticle(ParticleType<?> type) {
513
        return isActive() && particles.get().contains(type);
514
    }
515
516
    public boolean noBlockBreakOverlay() {
517
        return isActive() && noBlockBreakOverlay.get();
518
    }
519
520
    public boolean noBeaconBeams() {
521
        return isActive() && noBeaconBeams.get();
522
    }
523
524
    public boolean noFallingBlocks() {
525
        return isActive() && noFallingBlocks.get();
526
    }
527
528
    @EventHandler
529
    private void onChunkOcclusion(ChunkOcclusionEvent event) {
530
        if (noCaveCulling.get()) event.cancel();
531
    }
532
533
    public boolean noMapMarkers() {
534
        return isActive() && noMapMarkers.get();
535
    }
536
537
    public boolean noMapContents() {
538
        return isActive() && noMapContents.get();
539
    }
540
541
    public BannerRenderMode getBannerRenderMode() {
542
        if (!isActive()) return BannerRenderMode.Everything;
543
        else return bannerRender.get();
544
    }
545
546
    public boolean noFireworkExplosions() {
547
        return isActive() && noFireworkExplosions.get();
548
    }
549
550
    @EventHandler
551
    private void onAddParticle(ParticleEvent event) {
552
        if (noWeather.get() && event.particle.getType() == ParticleTypes.RAIN) event.cancel();
553
        else if (noFireworkExplosions.get() && event.particle.getType() == ParticleTypes.FIREWORK) event.cancel();
554
        else if (particles.get().contains(event.particle.getType())) event.cancel();
555
    }
556
557
    public boolean noBarrierInvis() {
558
        return isActive() && noBarrierInvis.get();
559
    }
560
561
    public boolean noTextureRotations() {
562
        return isActive() && noTextureRotations.get();
563
    }
564
565
    @EventHandler
566
    private void onRenderBlockEntity(RenderBlockEntityEvent event) {
567
        if (blockEntities.get().contains(((BlockEntityRenderStateAccessor) event.blockEntityState).meteor$getBlockState().getBlock())) event.cancel();
568
    }
569
570
    // Entity
571
572
    public boolean noEntity(Entity entity) {
573
        return isActive() && entities.get().contains(entity.getType());
574
    }
575
576
    public boolean noEntity(EntityType<?> entity) {
577
        return isActive() && entities.get().contains(entity);
578
    }
579
580
    public boolean getDropSpawnPacket() {
581
        return isActive() && dropSpawnPacket.get();
582
    }
583
584
    public boolean noArmor() {
585
        return isActive() && noArmor.get();
586
    }
587
588
    public boolean noInvisibility() {
589
        return isActive() && noInvisibility.get();
590
    }
591
592
    public boolean noGlowing() {
593
        return isActive() && noGlowing.get();
594
    }
595
596
    public boolean noMobInSpawner() {
597
        return isActive() && noMobInSpawner.get();
598
    }
599
600
    public boolean noDeadEntities() {
601
        return isActive() && noDeadEntities.get();
602
    }
603
604
    public boolean noNametags() {
605
        return isActive() && noNametags.get();
606
    }
607
608
    public enum BannerRenderMode {
609
        Everything,
610
        Pillar,
611
        None
612
    }
613
}
614