- Status
- Offline
- Joined
- Jul 18, 2023
- Messages
- 707
- Reaction score
- 3
Attention all Minecraft aficionados! Rejoice as you delve into our exclusive thread featuring free and downloadable Minecraft resources, including the highly sought-after source "NoSoundLag." As enthusiasts ourselves, we understand the value of credible and effective sources, which is why every entry in the "Minecraft Cheat Sources" section has undergone rigorous testing to guarantee reliability.
NoSoundLag:
Code:
private static final List<SoundEvent> sounds = Arrays.asList(SoundEvents.ITEM_ARMOR_EQUIP_GENERIC,
SoundEvents.ITEM_ARMOR_EQIIP_ELYTRA,
SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND,
SoundEvents.ITEM_ARMOR_EQUIP_IRON,
SoundEvents.ITEM_ARMOR_EQUIP_GOLD,
SoundEvents.ITEM_ARMOR_EQUIP_CHAIN,
SoundEvents.ITEM_ARMOR_EQUIP_LEATHER);
@EventTarget
public void onPacketReceive(PacketEvent.Receive event) {
if (event.getPacket() instanceof SPacketSoundEffect) {
SPacketSoundEffect effect = (SPacketSoundEffect) event.getPacket();
if (sounds.contains(effect.getSound())) {
event.setCancelled(true);
}
}
}
}