Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Redirector

Redirector

Redirect Enum#values() allocation in codes and improve game performance.

433.3k
67
Optimization

Compatibility

Minecraft: Java Edition

1.20–1.20.4
1.19.x
1.18.x
1.17.1
1.16.5

Platforms

Forge

Supported environments

Client-side
Server-side
Client and server

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Join Discord server
Donate on Ko-fi

Creators

Kasualix
Kasualix Member

Details

Licensed LGPL-3.0-or-later
Published last year
Updated last year
DescriptionChangelogVersions

This mod is for 1.16.5 +, If you are looking for 1.12.2-, go Redirector [Retro]

We have changed our name from redirector to redirector, because the redirection targets are not only about directions but all enum values now.

Preface

In the well-known optimization mods for Minecraft, Sodium, Lithium or Phosphor, there is a common optimization concept: replacing references to element values in enum classes with static final field values references.

This technique aims to enhance performance by improving access speed and reducing unnecessary computations when frequently accessing the constants.

Introduction

Redirector is the complete implementation of this concept to reduce the required memory of the game.

Note

Redirector should work on both the client and server and can be installed on servers without requiring clients to also have the mod.

Issue Report

1.16.5+ : https://github.com/MCTeamPotato/Kasualix-Issue-Tracker

1.12.2-: https://github.com/Ecdcaeb/Redirectionor/issues

Misc

image

Modrinth is open source.

main@81b0922

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.