├── .gitattributes ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug.yml │ └── compat-request.yml └── workflows │ ├── build-and-test.yml │ └── release-tags.yml ├── .gitignore ├── .idea ├── codeStyles │ ├── Project.xml │ └── codeStyleConfig.xml └── copyright │ ├── LGPL.xml │ └── profiles_settings.xml ├── COPYING ├── COPYING.LESSER ├── CREDITS ├── LICENSE ├── README.MD ├── build.gradle.kts ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle.kts └── src └── main ├── java └── com │ └── falsepattern │ └── endlessids │ ├── EndlessIDs.java │ ├── Hooks.java │ ├── PlaceholderBiome.java │ ├── asm │ ├── AsmTransformException.java │ ├── AsmUtil.java │ ├── EndlessIDsCore.java │ ├── EndlessIDsTransformer.java │ ├── FieldNotFoundException.java │ ├── GameDataHooks.java │ ├── IClassNodeTransformer.java │ ├── MethodNotFoundException.java │ ├── stubpackage │ │ └── cpw │ │ │ └── mods │ │ │ └── fml │ │ │ └── common │ │ │ └── registry │ │ │ └── GameData.java │ └── transformer │ │ ├── DevFixer.java │ │ ├── FmlRegistry.java │ │ ├── GameDataAccelerator.java │ │ ├── SpaceCoreModInfoGenerator.java │ │ └── chunk │ │ ├── ChunkProviderSuperPatcher.java │ │ └── LOTRFieldExposer.java │ ├── config │ ├── DarkWorldIDConfig.java │ ├── FuturepackIDConfig.java │ └── GeneralConfig.java │ ├── constants │ ├── ExtendedConstants.java │ └── VanillaConstants.java │ ├── containers │ ├── BiomeContainer.java │ ├── BlockItemContainer.java │ ├── DataWatcherContainer.java │ ├── EnchantmentContainer.java │ ├── PotionContainer.java │ └── _Dummy.java │ ├── managers │ ├── BiomeManager.java │ ├── BlockIDManager.java │ └── BlockMetaManager.java │ ├── mixin │ ├── helpers │ │ ├── AIDCStringFixer.java │ │ ├── BiomePatchHelper.java │ │ ├── ChunkBiomeHook.java │ │ ├── GalaxySpaceHelper.java │ │ ├── IHBMBiomeSyncPacket.java │ │ ├── IS1DPacketEntityEffectMixin.java │ │ ├── LOTRBiomeVariantStorageShort.java │ │ ├── ShortUtil.java │ │ ├── SubChunkBlockHook.java │ │ └── stubpackage │ │ │ └── lotr │ │ │ └── common │ │ │ └── network │ │ │ └── LOTRPacketBiomeVariantsWatch.java │ ├── mixins │ │ ├── client │ │ │ ├── biome │ │ │ │ └── biomewand │ │ │ │ │ └── BiomeWandItemMixin.java │ │ │ ├── blockitem │ │ │ │ └── vanilla │ │ │ │ │ ├── NetHandlerPlayClientMixin.java │ │ │ │ │ ├── PlayerControllerMPMixin.java │ │ │ │ │ └── RenderGlobalMixin.java │ │ │ ├── potion │ │ │ │ └── vanilla │ │ │ │ │ └── NetHandlerPlayClientMixin.java │ │ │ └── redstone │ │ │ │ ├── BlockRedstoneWireMixin.java │ │ │ │ └── RenderBlocksMixin.java │ │ └── common │ │ │ ├── antiidconflict │ │ │ ├── AntiIdConflictBaseMixin.java │ │ │ ├── BiomeGenBasePlaceholderMixin.java │ │ │ ├── BiomesManagerMixin.java │ │ │ ├── DimensionsManagerMixin.java │ │ │ ├── EnchantementsManagerMixin.java │ │ │ ├── EntitiesManagerMixin.java │ │ │ └── PotionsManagerMixin.java │ │ │ ├── biome │ │ │ ├── abyssalcraft │ │ │ │ └── AbyssalCraftMixin.java │ │ │ ├── antiqueatlas │ │ │ │ ├── BiomeDetectorBaseMixin.java │ │ │ │ └── BiomeDetectorNetherMixin.java │ │ │ ├── arocketry │ │ │ │ ├── AdvancedRocketryMixin.java │ │ │ │ └── ChunkProviderSpaceMixin.java │ │ │ ├── atg │ │ │ │ ├── ATGBiomeConfigMixin.java │ │ │ │ ├── ATGBiomeManagerMixin.java │ │ │ │ └── ATGWorldGenRocksMixin.java │ │ │ ├── biometweaker │ │ │ │ └── BiomeEventHandlerMixin.java │ │ │ ├── biomewand │ │ │ │ └── BiomeWandItemMixin.java │ │ │ ├── bop │ │ │ │ ├── BOPBiomeManagerMixin.java │ │ │ │ └── BOPBiomesMixin.java │ │ │ ├── buildcraft │ │ │ │ └── BuildcraftEnergyMixin.java │ │ │ ├── climatecontrol │ │ │ │ ├── api │ │ │ │ │ ├── BiomeSettingsMixin.java │ │ │ │ │ └── ClimateControlRulesMixin.java │ │ │ │ ├── customGenLayer │ │ │ │ │ ├── ConfirmBiomeMixin.java │ │ │ │ │ ├── GenLayerBiomeByClimateMixin.java │ │ │ │ │ ├── GenLayerBiomeByTaggedClimateMixin.java │ │ │ │ │ ├── GenLayerDefineClimateMixin.java │ │ │ │ │ ├── GenLayerLowlandRiverMixMixin.java │ │ │ │ │ ├── GenLayerSmoothCoastMixin.java │ │ │ │ │ └── GenLayerSubBiomeMixin.java │ │ │ │ ├── genLayerPack │ │ │ │ │ ├── GenLayerHillsMixin.java │ │ │ │ │ ├── GenLayerPackMixin.java │ │ │ │ │ ├── GenLayerSmoothMixin.java │ │ │ │ │ ├── GenLayerVoronoiZoomMixin.java │ │ │ │ │ └── GenLayerZoomMixin.java │ │ │ │ └── generator │ │ │ │ │ ├── AbstractWorldGeneratorMixin.java │ │ │ │ │ ├── BiomeSwapperMixin.java │ │ │ │ │ └── SubBiomeChooserMixin.java │ │ │ ├── compactmachines │ │ │ │ └── CubeToolsMixin.java │ │ │ ├── darkworld │ │ │ │ └── ModBiomesMixin.java │ │ │ ├── dimdoors │ │ │ │ └── DDBiomeGenBaseMixin.java │ │ │ ├── dragonapi │ │ │ │ ├── GenLayerRiverEventMixin.java │ │ │ │ ├── IDTypeMixin.java │ │ │ │ ├── ReikaChunkHelperMixin.java │ │ │ │ ├── ReikaWorldHelperMixin.java │ │ │ │ └── vanilla │ │ │ │ │ └── GenLayerRiverMixMixin.java │ │ │ ├── eb │ │ │ │ ├── BiomeIDsMixin.java │ │ │ │ ├── GenLayerArchipelagoEdgeMixin.java │ │ │ │ ├── GenLayerEBHillsMixin.java │ │ │ │ ├── GenLayerEBRiverMixMixin.java │ │ │ │ └── GenLayerEBVoronoiZoomMixin.java │ │ │ ├── enderlicious │ │ │ │ ├── BiomeConfigurationMixin.java │ │ │ │ └── EndChunkProviderMixin.java │ │ │ ├── erebus │ │ │ │ └── ModBiomesMixin.java │ │ │ ├── extendedplanets │ │ │ │ └── ChunkProviderOceanMixin.java │ │ │ ├── extraplanets │ │ │ │ └── ConfigMixin.java │ │ │ ├── extrautilities │ │ │ │ └── ChunkProviderEndOfTimeMixin.java │ │ │ ├── factorization │ │ │ │ └── HammerChunkProviderMixin.java │ │ │ ├── futurepack │ │ │ │ └── BiomeGenSpaceMixin.java │ │ │ ├── gadomancy │ │ │ │ └── ChunkProviderTCOuterMixin.java │ │ │ ├── galacticraft │ │ │ │ ├── ChunkProviderOrbitMixin.java │ │ │ │ └── ConfigManagerCoreMixin.java │ │ │ ├── galaxyspace │ │ │ │ ├── ChunkProviderKuiperMixin.java │ │ │ │ ├── ChunkProviderMarsSSMixin.java │ │ │ │ ├── ChunkProviderSpaceLakesMixin.java │ │ │ │ └── ChunkProviderVenusSSMixin.java │ │ │ ├── highlands │ │ │ │ └── ConfigMixin.java │ │ │ ├── icg │ │ │ │ └── MysteriumPatchesFixesCaveMixin.java │ │ │ ├── ir3 │ │ │ │ └── IR2Mixin.java │ │ │ ├── lotr │ │ │ │ ├── LOTRBiomeVariantStorageMixin.java │ │ │ │ ├── LOTRChunkProviderMixin.java │ │ │ │ ├── LOTRChunkProviderUtumnoMixin.java │ │ │ │ ├── LOTRDimensionMixin.java │ │ │ │ ├── LOTRPacketBiomeVariantsWatchHandlerMixin.java │ │ │ │ ├── LOTRWorldChunkManagerMixin.java │ │ │ │ └── LOTRWorldProviderMixin.java │ │ │ ├── naturescompass │ │ │ │ └── BiomeUtilsMixin.java │ │ │ ├── netherlicious │ │ │ │ └── BiomeConfigurationMixin.java │ │ │ ├── nomadictents │ │ │ │ └── TentChunkProviderMixin.java │ │ │ ├── owg │ │ │ │ └── ChunkGeneratorBetaMixin.java │ │ │ ├── randomthings │ │ │ │ ├── ItemBiomePainterMixin.java │ │ │ │ └── MessagePaintBiomeMixin.java │ │ │ ├── restructured │ │ │ │ └── BiomeHelperMixin.java │ │ │ ├── rtg │ │ │ │ ├── ChunkProviderRTGMixin.java │ │ │ │ ├── LandscapeGeneratorMixin.java │ │ │ │ └── WorldChunkManagerRTGMixin.java │ │ │ ├── rwg │ │ │ │ ├── ChunkGeneratorRealisticMixin.java │ │ │ │ ├── RealisticBiomeBaseMixin.java │ │ │ │ └── VillageMaterialsMixin.java │ │ │ ├── thaumcraft │ │ │ │ └── UtilsMixin.java │ │ │ ├── thut │ │ │ │ └── Vector3Mixin.java │ │ │ ├── tmor │ │ │ │ └── ChunkProviderSanctuatiteMixin.java │ │ │ ├── tropicraft │ │ │ │ └── GenLayerTropiVoronoiZoomMixin.java │ │ │ ├── twilightforest │ │ │ │ └── TFBiomeBaseMixin.java │ │ │ ├── vanilla │ │ │ │ ├── BiomeDictionaryMixin.java │ │ │ │ ├── BiomeGenBaseMixin.java │ │ │ │ ├── BiomeGenBasePlaceholderMixin.java │ │ │ │ ├── ChunkMixin.java │ │ │ │ ├── GenLayerRiverMixMixin.java │ │ │ │ └── GenLayerVoronoiZoomMixin.java │ │ │ └── witchery │ │ │ │ └── WorldChunkManagerMirrorMixin.java │ │ │ ├── blockitem │ │ │ ├── cofhlib │ │ │ │ └── BlockHelperMixin.java │ │ │ ├── dragonapi │ │ │ │ ├── BlockPropertiesMixin.java │ │ │ │ └── IDTypeMixin.java │ │ │ ├── matteroverdrive │ │ │ │ ├── InventoryMixin.java │ │ │ │ └── ItemPatternMixin.java │ │ │ ├── mfqm │ │ │ │ └── MFQMMixin.java │ │ │ ├── ntm │ │ │ │ ├── ChunkRadiationHandlerPRISMMixin.java │ │ │ │ └── ChunkRadiationHandlerPRISM_SubChunkMixin.java │ │ │ ├── ubc │ │ │ │ ├── BiomeUndergroundDecoratorMixin.java │ │ │ │ └── OreUBifierMixin.java │ │ │ ├── vanilla │ │ │ │ ├── BlockFireMixin.java │ │ │ │ ├── BlockMixin.java │ │ │ │ ├── ExtendedBlockStorageMixin.java │ │ │ │ ├── ItemInWorldManagerMixin.java │ │ │ │ ├── ItemStackMixin.java │ │ │ │ ├── PacketBufferMixin.java │ │ │ │ ├── S22PacketMultiBlockChangeMixin.java │ │ │ │ ├── S24PacketBlockActionMixin.java │ │ │ │ ├── StatListMixin.java │ │ │ │ └── WorldMixin.java │ │ │ └── worldedit │ │ │ │ └── BaseBlockMixin.java │ │ │ ├── datawatcher │ │ │ ├── mfqm │ │ │ │ └── MFQMDataWatcherMixin.java │ │ │ └── vanilla │ │ │ │ └── DataWatcherMixin.java │ │ │ ├── enchantment │ │ │ └── vanilla │ │ │ │ └── EnchantmentMixin.java │ │ │ ├── entity │ │ │ └── vanilla │ │ │ │ ├── EntityListMixin.java │ │ │ │ ├── EntityRegistryMixin.java │ │ │ │ └── S0FPacketSpawnMobMixin.java │ │ │ ├── potion │ │ │ ├── thaumcraft │ │ │ │ └── ConfigMixin.java │ │ │ └── vanilla │ │ │ │ ├── PotionEffectMixin.java │ │ │ │ ├── PotionMixin.java │ │ │ │ └── network │ │ │ │ ├── S1DPacketEntityEffectMixin.java │ │ │ │ └── S1EPacketRemoveEntityEffectMixin.java │ │ │ └── redstone │ │ │ ├── BlockCompressedPoweredMixin.java │ │ │ ├── BlockRedstoneDiodeMixin.java │ │ │ ├── BlockRedstoneTorchMixin.java │ │ │ └── WorldMixin.java │ └── plugin │ │ ├── Mixin.java │ │ ├── MixinPlugin.java │ │ └── TargetedMod.java │ ├── patching │ ├── ClientManager.java │ ├── CommonManager.java │ ├── Patch.java │ ├── ServerManager.java │ └── patches │ │ └── common │ │ ├── Futurepack.java │ │ └── Tropicraft.java │ └── util │ ├── DataUtil.java │ └── WeakIdentityHashMap.java └── resources ├── LICENSE ├── META-INF └── EIDdeps.json ├── endlessids.png ├── mcmod.info └── mixins.endlessids.json /.gitattributes: -------------------------------------------------------------------------------- 1 | * text eol=lf 2 | 3 | *.[jJ][aA][rR] binary 4 | 5 | *.[pP][nN][gG] binary 6 | *.[jJ][pP][gG] binary 7 | *.[jJ][pP][eE][gG] binary 8 | *.[gG][iI][fF] binary 9 | *.[tT][iI][fF] binary 10 | *.[tT][iI][fF][fF] binary 11 | *.[iI][cC][oO] binary 12 | *.[sS][vV][gG] text 13 | *.[eE][pP][sS] binary 14 | *.[xX][cC][fF] binary 15 | 16 | *.[kK][aA][rR] binary 17 | *.[mM]4[aA] binary 18 | *.[mM][iI][dD] binary 19 | *.[mM][iI][dD][iI] binary 20 | *.[mM][pP]3 binary 21 | *.[oO][gG][gG] binary 22 | *.[rR][aA] binary 23 | 24 | *.7[zZ] binary 25 | *.[gG][zZ] binary 26 | *.[tT][aA][rR] binary 27 | *.[tT][gG][zZ] binary 28 | *.[zZ][iI][pP] binary 29 | 30 | *.[tT][cC][nN] binary 31 | *.[sS][oO] binary 32 | *.[dD][lL][lL] binary 33 | *.[dD][yY][lL][iI][bB] binary 34 | *.[pP][sS][dD] binary 35 | *.[tT][tT][fF] binary 36 | *.[oO][tT][fF] binary 37 | 38 | *.[pP][aA][tT][cC][hH] -text 39 | 40 | *.[bB][aA][tT] text eol=crlf 41 | *.[cC][mM][dD] text eol=crlf 42 | *.[pP][sS]1 text eol=crlf 43 | 44 | *[aA][uU][tT][oO][gG][eE][nN][eE][rR][aA][tT][eE][dD]* binary 45 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | patreon: falsepattern 2 | ko_fi: falsepattern -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug.yml: -------------------------------------------------------------------------------- 1 | name: Crash 2 | description: The game has a problem when EndlessIDs is present 3 | title: "[Bug]: " 4 | labels: ["bug"] 5 | assignees: 6 | - falsepattern 7 | body: 8 | - type: input 9 | id: modpack 10 | attributes: 11 | label: Modpack 12 | description: You should include the pack's exact name and version here to make debugging easier. 13 | validations: 14 | required: true 15 | - type: textarea 16 | id: logs 17 | attributes: 18 | label: Game log 19 | description: Attach the fml-client-latest.log file here. 20 | validations: 21 | required: true 22 | - type: textarea 23 | id: description 24 | attributes: 25 | label: Description 26 | description: Describe how and when you experience this bug. 27 | validations: 28 | required: true -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/compat-request.yml: -------------------------------------------------------------------------------- 1 | name: Compatibility Request 2 | description: If you tested EndlessIDs with another mod and it crashes or has weird bugs, you can ask for a compatibility patch through this. 3 | title: "[Compatibility Request]: " 4 | labels: ["compat-request"] 5 | assignees: 6 | - falsepattern 7 | body: 8 | - type: input 9 | id: modname 10 | attributes: 11 | label: Other mod's name 12 | description: The name of the other mod 13 | validations: 14 | required: true 15 | - type: input 16 | id: dist 17 | attributes: 18 | label: Other mod's CurseForge/Modrinth/Homepage 19 | description: Mods on curseforge/modrinth are the easiest to write compat for. A link to the main site where the other mod is hosted is also fine if it's not on these sites. Do not put just a direct download link here. 20 | validations: 21 | required: true 22 | - type: dropdown 23 | id: license 24 | attributes: 25 | label: Other mod's license 26 | description: What license does the other mod have? (Open source mods are easier to write compatibility patches for) 27 | validations: 28 | required: true 29 | - type: textarea 30 | id: logs 31 | attributes: 32 | label: Game log 33 | description: Attach the fml-client-latest.log file here. 34 | validations: 35 | required: true 36 | - type: textarea 37 | id: description 38 | attributes: 39 | label: Description 40 | description: Describe how and when you experience this problem. 41 | validations: 42 | required: true -------------------------------------------------------------------------------- /.github/workflows/build-and-test.yml: -------------------------------------------------------------------------------- 1 | name: Build and test 2 | 3 | on: 4 | pull_request: 5 | branches: 6 | - master 7 | push: 8 | branches: 9 | - master 10 | 11 | jobs: 12 | build-and-test: 13 | uses: FalsePattern/fpgradle-workflows/.github/workflows/build-and-test.yml@master 14 | with: 15 | timeout: 90 16 | workspace: setupCIWorkspace 17 | client-only: false 18 | -------------------------------------------------------------------------------- /.github/workflows/release-tags.yml: -------------------------------------------------------------------------------- 1 | name: Release Tags 2 | 3 | on: 4 | push: 5 | tags: 6 | - '*' 7 | 8 | permissions: 9 | contents: write 10 | 11 | jobs: 12 | release-tags: 13 | uses: FalsePattern/fpgradle-workflows/.github/workflows/release-tags.yml@master 14 | with: 15 | workspace: "setupCIWorkspace" 16 | secrets: 17 | MAVEN_DEPLOY_USER: ${{ secrets.MAVEN_DEPLOY_USER }} 18 | MAVEN_DEPLOY_PASSWORD: ${{ secrets.MAVEN_DEPLOY_PASSWORD }} 19 | MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} 20 | CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} 21 | 22 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/copyright/LGPL.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /CREDITS: -------------------------------------------------------------------------------- 1 | The code is originally based on NotEnoughIDs, created by fewizz and Player, 2 | which was released under the MIT license on CurseForge at 3 | https://www.curseforge.com/minecraft/mc-mods/notenoughids 4 | 5 | Original License text of NotEnoughIDs: 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ------------------------------------------------------------------------------ 24 | Some patches have been adapted from the GTNH fork of NotEnoughIDs, 25 | its license is as follows: 26 | 27 | GTNH modifications Copyright (c) 2021-2022 The GTNH Team 28 | 29 | This code is licensed LGPL v3.0 or later. Feel free to use our changes, 30 | just give back any changes you make to the community as well! -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | EndlessIDs 2 | 3 | Copyright (C) 2022-2025 FalsePattern, The MEGA Team 4 | All Rights Reserved 5 | 6 | The above copyright notice, this permission notice and the word "MEGA" 7 | shall be included in all copies or substantial portions of the Software. 8 | 9 | This program is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU Lesser General Public License as published by 11 | the Free Software Foundation, only version 3 of the License. 12 | 13 | This program is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU Lesser General Public License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with this program. If not, see . -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GTMEGA/EndlessIDs/5dc630fca99a166f7f523d3790f18d8dde1fff66/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /settings.gradle.kts: -------------------------------------------------------------------------------- 1 | plugins { 2 | id("org.gradle.toolchains.foojay-resolver-convention") version("0.9.0") 3 | } 4 | 5 | rootProject.name = "EndlessIDs" 6 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/PlaceholderBiome.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids; 24 | 25 | import net.minecraft.world.biome.BiomeGenBase; 26 | 27 | public class PlaceholderBiome extends BiomeGenBase { 28 | public PlaceholderBiome(int id, BiomeGenBase parent) { 29 | super(id); 30 | biomeName = "EndlessIDs ID conflict avoidance placeholder for ID " + parent.biomeID + " [" + 31 | parent.getClass().getName() + "]"; 32 | } 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/asm/AsmTransformException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.asm; 24 | 25 | public class AsmTransformException extends RuntimeException { 26 | private static final long serialVersionUID = 5128914670008752449L; 27 | 28 | public AsmTransformException(final String message) { 29 | super(message); 30 | } 31 | 32 | public AsmTransformException(final Throwable cause) { 33 | super(cause); 34 | } 35 | 36 | public AsmTransformException(final String message, final Throwable cause) { 37 | super(message, cause); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/asm/FieldNotFoundException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.asm; 24 | 25 | public class FieldNotFoundException extends AsmTransformException { 26 | public FieldNotFoundException(final String field) { 27 | super("can't find field " + field); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/asm/IClassNodeTransformer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.asm; 24 | 25 | import org.objectweb.asm.tree.ClassNode; 26 | 27 | public interface IClassNodeTransformer { 28 | void transform(final ClassNode p0, final boolean p1); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/asm/MethodNotFoundException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.asm; 24 | 25 | public class MethodNotFoundException extends AsmTransformException { 26 | public MethodNotFoundException(final String method) { 27 | super("can't find method " + method); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/asm/stubpackage/cpw/mods/fml/common/registry/GameData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.asm.stubpackage.cpw.mods.fml.common.registry; 24 | 25 | import com.falsepattern.endlessids.util.WeakIdentityHashMap; 26 | 27 | import net.minecraft.block.Block; 28 | import net.minecraft.item.ItemBlock; 29 | 30 | import java.lang.ref.WeakReference; 31 | 32 | public class GameData { 33 | public WeakIdentityHashMap> endlessIDsItemBlockCache; 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/config/FuturepackIDConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.config; 24 | 25 | import com.falsepattern.endlessids.Tags; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.lib.config.Config; 28 | import com.falsepattern.lib.config.ConfigurationManager; 29 | 30 | @Config(modid = Tags.MODID, 31 | category = "futurepack") 32 | public class FuturepackIDConfig { 33 | @Config.Comment("Original: 97") 34 | @Config.RangeInt(min = 40, 35 | max = ExtendedConstants.biomeIDCount - 1) 36 | @Config.DefaultInt(2097) 37 | public static int spaceID; 38 | 39 | static { 40 | ConfigurationManager.selfInit(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/containers/BiomeContainer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.containers; 24 | 25 | public class BiomeContainer extends _Dummy { 26 | public BiomeContainer() { 27 | super("biome", "Biome"); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/containers/BlockItemContainer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.containers; 24 | 25 | public class BlockItemContainer extends _Dummy { 26 | public BlockItemContainer() { 27 | super("blockitem", "BlockItem"); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/containers/DataWatcherContainer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.containers; 24 | 25 | public class DataWatcherContainer extends _Dummy { 26 | public DataWatcherContainer() { 27 | super("datawatcher", "DataWatcher"); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/containers/EnchantmentContainer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.containers; 24 | 25 | public class EnchantmentContainer extends _Dummy { 26 | public EnchantmentContainer() { 27 | super("enchantment", "Enchantment"); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/containers/PotionContainer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.containers; 24 | 25 | public class PotionContainer extends _Dummy { 26 | public PotionContainer() { 27 | super("potion", "Potion"); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/containers/_Dummy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.containers; 24 | 25 | import com.falsepattern.endlessids.Tags; 26 | import com.google.common.eventbus.EventBus; 27 | import lombok.val; 28 | 29 | import cpw.mods.fml.common.DummyModContainer; 30 | import cpw.mods.fml.common.LoadController; 31 | import cpw.mods.fml.common.ModMetadata; 32 | import cpw.mods.fml.common.versioning.DefaultArtifactVersion; 33 | 34 | public class _Dummy extends DummyModContainer { 35 | public _Dummy(String id, String name) { 36 | super(createMetadata(id, name)); 37 | } 38 | 39 | private static ModMetadata createMetadata(String id, String name) { 40 | val meta = new ModMetadata(); 41 | meta.modId = Tags.MODID + "_" + id; 42 | meta.name = Tags.MODNAME + " " + name + " Module"; 43 | meta.version = Tags.VERSION; 44 | meta.dependencies.add(new DefaultArtifactVersion(Tags.MODID, Tags.VERSION)); 45 | meta.parent = Tags.MODID; 46 | return meta; 47 | } 48 | 49 | @Override 50 | public boolean registerBus(EventBus bus, LoadController controller) { 51 | return true; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/helpers/AIDCStringFixer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.helpers; 24 | 25 | import lombok.AccessLevel; 26 | import lombok.NoArgsConstructor; 27 | 28 | @NoArgsConstructor(access = AccessLevel.PRIVATE) 29 | public final class AIDCStringFixer { 30 | public static String fixString(String str) { 31 | str = str.replace("\\", ""); 32 | str = str.replace("vaible", "vailable"); 33 | return str; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/helpers/BiomePatchHelper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.helpers; 24 | 25 | import lombok.val; 26 | 27 | import net.minecraft.world.biome.BiomeGenBase; 28 | import net.minecraft.world.chunk.Chunk; 29 | 30 | import java.util.function.IntFunction; 31 | 32 | import static com.falsepattern.endlessids.EndlessIDs.ZERO_LENGTH_BIOME_ARRAY_PLACEHOLDER; 33 | 34 | public class BiomePatchHelper { 35 | public static byte[] getBiomeArrayTweaked(Chunk chunk, IntFunction biomesForGeneration) { 36 | val chunkBiomes = ((ChunkBiomeHook) chunk).getBiomeShortArray(); 37 | 38 | for (int i = 0; i < chunkBiomes.length; ++i) { 39 | chunkBiomes[i] = (short) biomesForGeneration.apply(i).biomeID; 40 | } 41 | return ZERO_LENGTH_BIOME_ARRAY_PLACEHOLDER; 42 | } 43 | 44 | public static byte[] getBiomeArrayTweaked(Chunk chunk, BiomeGenBase[] biomesForGeneration) { 45 | val chunkBiomes = ((ChunkBiomeHook) chunk).getBiomeShortArray(); 46 | 47 | for (int i = 0; i < chunkBiomes.length; ++i) { 48 | chunkBiomes[i] = (short) biomesForGeneration[i].biomeID; 49 | } 50 | return ZERO_LENGTH_BIOME_ARRAY_PLACEHOLDER; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/helpers/ChunkBiomeHook.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.helpers; 24 | 25 | public interface ChunkBiomeHook { 26 | short[] getBiomeShortArray(); 27 | 28 | void setBiomeShortArray(short[] data); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/helpers/IHBMBiomeSyncPacket.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.helpers; 24 | 25 | public interface IHBMBiomeSyncPacket { 26 | void eid$setBiome(short biome); 27 | short eid$getBiome(); 28 | 29 | void eid$setBiomeArray(short[] biomeArray); 30 | short[] eid$getBiomeArray(); 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/helpers/IS1DPacketEntityEffectMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.helpers; 24 | 25 | public interface IS1DPacketEntityEffectMixin { 26 | int endlessids$getIDExtended(); 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/helpers/ShortUtil.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.helpers; 24 | 25 | import lombok.AccessLevel; 26 | import lombok.NoArgsConstructor; 27 | 28 | @NoArgsConstructor(access = AccessLevel.PRIVATE) 29 | public final class ShortUtil { 30 | public static int unsignedShortToInt(short s) { 31 | return s & 65535; 32 | } 33 | 34 | public static int[] unsignedShortToIntArray(short[] shorts) { 35 | int[] ints = new int[shorts.length]; 36 | 37 | for (int i = 0; i < shorts.length; ++i) { 38 | ints[i] = unsignedShortToInt(shorts[i]); 39 | } 40 | 41 | return ints; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/helpers/stubpackage/lotr/common/network/LOTRPacketBiomeVariantsWatch.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.helpers.stubpackage.lotr.common.network; 24 | 25 | public class LOTRPacketBiomeVariantsWatch { 26 | public int chunkX; 27 | public int chunkZ; 28 | public byte[] variants; 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/client/blockitem/vanilla/PlayerControllerMPMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.client.blockitem.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | import net.minecraft.client.multiplayer.PlayerControllerMP; 32 | 33 | @Mixin(PlayerControllerMP.class) 34 | public abstract class PlayerControllerMPMixin { 35 | @ModifyConstant(method = "onPlayerDestroyBlock", 36 | constant = @Constant(intValue = VanillaConstants.bitsPerID, 37 | ordinal = 0), 38 | require = 1) 39 | private int extend1(int constant) { 40 | return ExtendedConstants.bitsPerID; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/client/blockitem/vanilla/RenderGlobalMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.client.blockitem.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | import net.minecraft.client.renderer.RenderGlobal; 32 | import cpw.mods.fml.relauncher.Side; 33 | import cpw.mods.fml.relauncher.SideOnly; 34 | 35 | @SideOnly(Side.CLIENT) 36 | @Mixin(RenderGlobal.class) 37 | public abstract class RenderGlobalMixin { 38 | @ModifyConstant(method = "playAuxSFX", 39 | constant = @Constant(intValue = VanillaConstants.blockIDMask), 40 | require = 1) 41 | private int extend1(int constant) { 42 | return ExtendedConstants.blockIDMask; 43 | } 44 | 45 | @ModifyConstant(method = "playAuxSFX", 46 | constant = @Constant(intValue = VanillaConstants.bitsPerID), 47 | require = 1) 48 | private int extend2(int constant) { 49 | return ExtendedConstants.bitsPerID; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/client/redstone/BlockRedstoneWireMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.client.redstone; 24 | 25 | import com.falsepattern.endlessids.config.GeneralConfig; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.injection.Constant; 28 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 29 | 30 | import net.minecraft.block.BlockRedstoneWire; 31 | 32 | @Mixin(BlockRedstoneWire.class) 33 | public abstract class BlockRedstoneWireMixin { 34 | @ModifyConstant(method = "randomDisplayTick", 35 | constant = @Constant(floatValue = 15.0F), 36 | require = 1) 37 | private float bigRedstone(float constant) { 38 | return GeneralConfig.maxRedstone; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/client/redstone/RenderBlocksMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.client.redstone; 24 | 25 | import com.falsepattern.endlessids.config.GeneralConfig; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.injection.Constant; 28 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 29 | 30 | import net.minecraft.client.renderer.RenderBlocks; 31 | 32 | @Mixin(RenderBlocks.class) 33 | public abstract class RenderBlocksMixin { 34 | @ModifyConstant(method = "renderBlockRedstoneWire", 35 | constant = @Constant(floatValue = 15.0F), 36 | require = 1) 37 | private float bigRedstone(float constant) { 38 | return GeneralConfig.maxRedstone; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/antiidconflict/DimensionsManagerMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.antiidconflict; 24 | 25 | import code.elix_x.coremods.antiidconflict.managers.DimensionsManager; 26 | import com.falsepattern.endlessids.mixin.helpers.AIDCStringFixer; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | @Mixin(value = DimensionsManager.class, 32 | remap = false) 33 | public abstract class DimensionsManagerMixin { 34 | 35 | @ModifyConstant(method = "*", 36 | constant = {@Constant(stringValue = "\\dimensions"), 37 | @Constant(stringValue = "\\main.cfg"), 38 | @Constant(stringValue = "\\avaibleIDs.txt"), 39 | @Constant(stringValue = "\\occupiedIDs.txt"), 40 | @Constant(stringValue = "\\AllIDs.txt")}) 41 | private static String fixPaths(String original) { 42 | return AIDCStringFixer.fixString(original); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/antiidconflict/EnchantementsManagerMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.antiidconflict; 24 | 25 | import code.elix_x.coremods.antiidconflict.managers.EnchantementsManager; 26 | import com.falsepattern.endlessids.mixin.helpers.AIDCStringFixer; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | @Mixin(value = EnchantementsManager.class, 32 | remap = false) 33 | public abstract class EnchantementsManagerMixin { 34 | 35 | @ModifyConstant(method = "*", 36 | constant = {@Constant(stringValue = "\\enchantements"), 37 | @Constant(stringValue = "\\main.cfg"), 38 | @Constant(stringValue = "\\avaibleIDs.txt"), 39 | @Constant(stringValue = "\\occupiedIDs.txt"), 40 | @Constant(stringValue = "\\AllIDs.txt")}) 41 | private static String fixPaths(String original) { 42 | return AIDCStringFixer.fixString(original); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/antiidconflict/EntitiesManagerMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.antiidconflict; 24 | 25 | import code.elix_x.coremods.antiidconflict.managers.EntitiesManager; 26 | import com.falsepattern.endlessids.mixin.helpers.AIDCStringFixer; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | @Mixin(value = EntitiesManager.class, 32 | remap = false) 33 | public abstract class EntitiesManagerMixin { 34 | 35 | @ModifyConstant(method = "*", 36 | constant = {@Constant(stringValue = "\\entities"), 37 | @Constant(stringValue = "\\main.cfg"), 38 | @Constant(stringValue = "\\avaibleIDs.txt"), 39 | @Constant(stringValue = "\\occupiedIDs.txt"), 40 | @Constant(stringValue = "\\AllIDs.txt")}) 41 | private static String fixPaths(String original) { 42 | return AIDCStringFixer.fixString(original); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/antiidconflict/PotionsManagerMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.antiidconflict; 24 | 25 | import code.elix_x.coremods.antiidconflict.managers.PotionsManager; 26 | import com.falsepattern.endlessids.mixin.helpers.AIDCStringFixer; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | @Mixin(value = PotionsManager.class, 32 | remap = false) 33 | public abstract class PotionsManagerMixin { 34 | 35 | @ModifyConstant(method = "*", 36 | constant = {@Constant(stringValue = "\\potions"), 37 | @Constant(stringValue = "\\main.cfg"), 38 | @Constant(stringValue = "\\avaibleIDs.txt"), 39 | @Constant(stringValue = "\\occupiedIDs.txt"), 40 | @Constant(stringValue = "\\conflictedIDs.txt"), 41 | @Constant(stringValue = "\\AllIDs.txt")}) 42 | private static String fixPaths(String original) { 43 | return AIDCStringFixer.fixString(original); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/arocketry/ChunkProviderSpaceMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.arocketry; 24 | 25 | import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.injection.At; 28 | import org.spongepowered.asm.mixin.injection.Redirect; 29 | import zmaster587.advancedRocketry.api.AdvancedRocketryBiomes; 30 | import zmaster587.advancedRocketry.world.ChunkProviderSpace; 31 | 32 | import net.minecraft.world.chunk.Chunk; 33 | 34 | @Mixin(value = ChunkProviderSpace.class, 35 | remap = false) 36 | public abstract class ChunkProviderSpaceMixin { 37 | 38 | @Redirect(method = "provideChunk", 39 | at = @At(value = "INVOKE", 40 | target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B", 41 | remap = true), 42 | remap = true, 43 | require = 1) 44 | private byte[] setBiomesTweaked(Chunk chunk) { 45 | return BiomePatchHelper.getBiomeArrayTweaked(chunk, (i) -> AdvancedRocketryBiomes.spaceBiome); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/atg/ATGBiomeConfigMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.atg; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | import ttftcuts.atg.config.configfiles.ATGBiomeConfig; 31 | 32 | @Mixin(value = ATGBiomeConfig.class, 33 | remap = false) 34 | public abstract class ATGBiomeConfigMixin { 35 | @ModifyConstant(method = {"", "postInit"}, 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | require = 4) 38 | private static int extendIDs(int constant) { 39 | return ExtendedConstants.biomeIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/atg/ATGBiomeManagerMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.atg; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | import ttftcuts.atg.gen.ATGBiomeManager; 31 | 32 | @Mixin(value = ATGBiomeManager.class, 33 | remap = false) 34 | public abstract class ATGBiomeManagerMixin { 35 | @ModifyConstant(method = "", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | require = 1) 38 | private static int extendIDs(int constant) { 39 | return ExtendedConstants.biomeIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/atg/ATGWorldGenRocksMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.atg; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | import ttftcuts.atg.feature.ATGWorldGenRocks; 31 | 32 | @Mixin(value = ATGWorldGenRocks.class, 33 | remap = false) 34 | public abstract class ATGWorldGenRocksMixin { 35 | @ModifyConstant(method = "", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | require = 3) 38 | private static int extendIDs(int constant) { 39 | return ExtendedConstants.biomeIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/bop/BOPBiomesMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.bop; 24 | 25 | import biomesoplenty.common.core.BOPBiomes; 26 | import biomesoplenty.common.world.BOPBiomeManager; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.Overwrite; 29 | 30 | import net.minecraft.world.biome.BiomeGenBase; 31 | 32 | @Mixin(value = BOPBiomes.class, 33 | remap = false) 34 | public abstract class BOPBiomesMixin { 35 | /** 36 | * @author FalsePattern 37 | * @reason Suppress NPE 38 | */ 39 | @Overwrite 40 | private static void disableRiver(BiomeGenBase biome) { 41 | try { 42 | BOPBiomeManager.overworldRiverBiomes[biome.biomeID] = biome; 43 | } catch (Throwable t) { 44 | t.printStackTrace(); 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/buildcraft/BuildcraftEnergyMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.buildcraft; 24 | 25 | import buildcraft.BuildCraftEnergy; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(value = BuildCraftEnergy.class, 33 | remap = false) 34 | public abstract class BuildcraftEnergyMixin { 35 | @ModifyConstant(method = "findUnusedBiomeID", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | require = 1) 38 | private int extendIDs(int constant) { 39 | return ExtendedConstants.biomeIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/api/BiomeSettingsMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.api; 24 | 25 | import climateControl.api.BiomeSettings; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(BiomeSettings.class) 33 | public abstract class BiomeSettingsMixin { 34 | @ModifyConstant(method = "nameDefaultClimates", 35 | remap = false, 36 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 37 | require = 1) 38 | private int extendBiomes(int constant) { 39 | return ExtendedConstants.biomeIDMask; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/api/ClimateControlRulesMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.api; 24 | 25 | import climateControl.api.ClimateControlRules; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(ClimateControlRules.class) 33 | public abstract class ClimateControlRulesMixin { 34 | @ModifyConstant(method = "", 35 | remap = false, 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | require = 4) 38 | private int extendBiomes(int constant) { 39 | return ExtendedConstants.biomeIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/customGenLayer/ConfirmBiomeMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.customGenLayer; 24 | 25 | import climateControl.customGenLayer.ConfirmBiome; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(ConfirmBiome.class) 33 | public abstract class ConfirmBiomeMixin { 34 | @ModifyConstant(method = "getInts", 35 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 36 | require = 1) 37 | private int extendBiomes(int constant) { 38 | return ExtendedConstants.biomeIDMask; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/customGenLayer/GenLayerBiomeByClimateMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.customGenLayer; 24 | 25 | import climateControl.customGenLayer.GenLayerBiomeByClimate; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(GenLayerBiomeByClimate.class) 33 | public abstract class GenLayerBiomeByClimateMixin { 34 | @ModifyConstant(method = "getInts", 35 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 36 | require = 1) 37 | private int extendBiomes1(int constant) { 38 | return ExtendedConstants.biomeIDCount; 39 | } 40 | @ModifyConstant(method = "getInts", 41 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 42 | require = 1) 43 | private int extendBiomes2(int constant) { 44 | return ExtendedConstants.biomeIDMask; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/customGenLayer/GenLayerBiomeByTaggedClimateMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.customGenLayer; 24 | 25 | import climateControl.customGenLayer.GenLayerBiomeByTaggedClimate; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(GenLayerBiomeByTaggedClimate.class) 33 | public abstract class GenLayerBiomeByTaggedClimateMixin { 34 | @ModifyConstant(method = "getInts", 35 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 36 | require = 1) 37 | private int extendBiomes(int constant) { 38 | return ExtendedConstants.biomeIDMask; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/customGenLayer/GenLayerDefineClimateMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.customGenLayer; 24 | 25 | import climateControl.customGenLayer.GenLayerDefineClimate; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(GenLayerDefineClimate.class) 33 | public abstract class GenLayerDefineClimateMixin { 34 | @ModifyConstant(method = "getInts", 35 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 36 | require = 1) 37 | private int extendBiomes(int constant) { 38 | return ExtendedConstants.biomeIDMask; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/customGenLayer/GenLayerLowlandRiverMixMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.customGenLayer; 24 | 25 | import climateControl.customGenLayer.GenLayerLowlandRiverMix; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(GenLayerLowlandRiverMix.class) 33 | public abstract class GenLayerLowlandRiverMixMixin { 34 | @ModifyConstant(method = "getInts", 35 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 36 | require = 3) 37 | private int extendBiomes(int constant) { 38 | return ExtendedConstants.biomeIDMask; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/customGenLayer/GenLayerSmoothCoastMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.customGenLayer; 24 | 25 | import climateControl.customGenLayer.GenLayerSmoothCoast; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(GenLayerSmoothCoast.class) 33 | public abstract class GenLayerSmoothCoastMixin { 34 | @ModifyConstant(method = "getInts", 35 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 36 | require = 1) 37 | private int extendBiomes(int constant) { 38 | return ExtendedConstants.biomeIDCount; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/customGenLayer/GenLayerSubBiomeMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.customGenLayer; 24 | 25 | import climateControl.customGenLayer.GenLayerSubBiome; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(GenLayerSubBiome.class) 33 | public abstract class GenLayerSubBiomeMixin { 34 | @ModifyConstant(method = "getInts", 35 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 36 | require = 1) 37 | private int extendBiomes1(int constant) { 38 | return ExtendedConstants.biomeIDCount; 39 | } 40 | @ModifyConstant(method = "getInts", 41 | constant = @Constant(intValue = 128), 42 | require = 1) 43 | private int extendBiomes2(int constant) { 44 | return ExtendedConstants.biomeIDCount - 128; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/genLayerPack/GenLayerHillsMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.genLayerPack; 24 | 25 | import climateControl.genLayerPack.GenLayerHills; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(GenLayerHills.class) 33 | public abstract class GenLayerHillsMixin { 34 | @ModifyConstant(method = "getInts", 35 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 36 | require = 1) 37 | private int extendBiomes1(int constant) { 38 | return ExtendedConstants.biomeIDMask; 39 | } 40 | @ModifyConstant(method = "getInts", 41 | constant = @Constant(intValue = 128, 42 | ordinal = 0), 43 | require = 1) 44 | private int extendBiomes2(int constant) { 45 | return ExtendedConstants.biomeIDCount - 128; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/genLayerPack/GenLayerPackMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.genLayerPack; 24 | 25 | import climateControl.genLayerPack.GenLayerPack; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(GenLayerPack.class) 33 | public abstract class GenLayerPackMixin { 34 | @ModifyConstant(method = {"isBiomeOceanic", "isOceanic"}, 35 | remap = false, 36 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 37 | require = 2) 38 | private static int extendBiomes(int constant) { 39 | return ExtendedConstants.biomeIDMask; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/genLayerPack/GenLayerSmoothMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.genLayerPack; 24 | 25 | import climateControl.genLayerPack.GenLayerSmooth; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(GenLayerSmooth.class) 33 | public abstract class GenLayerSmoothMixin { 34 | @ModifyConstant(method = "getInts", 35 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 36 | require = 2) 37 | private int extendBiomes(int constant) { 38 | return ExtendedConstants.biomeIDMask; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/genLayerPack/GenLayerVoronoiZoomMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.genLayerPack; 24 | 25 | import climateControl.genLayerPack.GenLayerVoronoiZoom; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(GenLayerVoronoiZoom.class) 33 | public abstract class GenLayerVoronoiZoomMixin { 34 | @ModifyConstant(method = "getInts", 35 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 36 | require = 2) 37 | private int extendBiomes(int constant) { 38 | return ExtendedConstants.biomeIDMask; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/genLayerPack/GenLayerZoomMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.genLayerPack; 24 | 25 | import climateControl.genLayerPack.GenLayerZoom; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(GenLayerZoom.class) 33 | public abstract class GenLayerZoomMixin { 34 | @ModifyConstant(method = "getInts", 35 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 36 | require = 6) 37 | private int extendBiomes(int constant) { 38 | return ExtendedConstants.biomeIDCount; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/generator/AbstractWorldGeneratorMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.generator; 24 | 25 | import climateControl.generator.AbstractWorldGenerator; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(AbstractWorldGenerator.class) 33 | public abstract class AbstractWorldGeneratorMixin { 34 | @ModifyConstant(method = "setRules", 35 | remap = false, 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | require = 1) 38 | private int extendBiomes(int constant) { 39 | return ExtendedConstants.biomeIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/generator/BiomeSwapperMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.generator; 24 | 25 | import climateControl.generator.BiomeSwapper; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(BiomeSwapper.class) 33 | public abstract class BiomeSwapperMixin { 34 | @ModifyConstant(method = "", 35 | remap = false, 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | require = 2) 38 | private int extendBiomes(int constant) { 39 | return ExtendedConstants.biomeIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/climatecontrol/generator/SubBiomeChooserMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.climatecontrol.generator; 24 | 25 | import climateControl.generator.SubBiomeChooser; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(SubBiomeChooser.class) 33 | public abstract class SubBiomeChooserMixin { 34 | @ModifyConstant(method = "", 35 | remap = false, 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | require = 1) 38 | private int extendBiomes(int constant) { 39 | return ExtendedConstants.biomeIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/dragonapi/GenLayerRiverEventMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.dragonapi; 24 | 25 | import Reika.DragonAPI.Instantiable.Event.GenLayerRiverEvent; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(value = GenLayerRiverEvent.class, 33 | remap = false) 34 | public abstract class GenLayerRiverEventMixin { 35 | @ModifyConstant(method = "fire_1614", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 37 | require = 2) 38 | private static int increaseBiomeMask(int constant) { 39 | return ExtendedConstants.biomeIDMask; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/dragonapi/IDTypeMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.dragonapi; 24 | 25 | import Reika.DragonAPI.Extras.IDType; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | @Mixin(value = IDType.class, 32 | remap = false) 33 | public abstract class IDTypeMixin { 34 | @ModifyConstant(method = "", 35 | constant = @Constant(intValue = 254), 36 | require = 1) 37 | private static int extendBiomeIDs(int constant) { 38 | return ExtendedConstants.biomeIDCount - 2; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/dragonapi/vanilla/GenLayerRiverMixMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.dragonapi.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | import net.minecraft.world.gen.layer.GenLayerRiverMix; 32 | 33 | @Mixin(GenLayerRiverMix.class) 34 | public abstract class GenLayerRiverMixMixin { 35 | @ModifyConstant(method = "getInts", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 37 | expect = -1) 38 | private int extendTheID(int constant) { 39 | return ExtendedConstants.biomeIDMask; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/eb/BiomeIDsMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.eb; 24 | 25 | import enhancedbiomes.world.biomestats.BiomeIDs; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.injection.Constant; 28 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 29 | 30 | @Mixin(value = BiomeIDs.class, 31 | remap = false) 32 | public abstract class BiomeIDsMixin { 33 | @ModifyConstant(method = "", 34 | constant = @Constant(intValue = 39), 35 | require = 1) 36 | private static int extendIDs(int id) { 37 | return id + 6000; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/eb/GenLayerArchipelagoEdgeMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.eb; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import enhancedbiomes.world.gen.layer.GenLayerArchipelagoEdge; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(value = GenLayerArchipelagoEdge.class, 33 | remap = false) 34 | public abstract class GenLayerArchipelagoEdgeMixin { 35 | @ModifyConstant(method = "getInts", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | remap = true, 38 | require = 5) 39 | private int extendIDs(int constant) { 40 | return ExtendedConstants.biomeIDCount; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/eb/GenLayerEBRiverMixMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.eb; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import enhancedbiomes.world.gen.layer.GenLayerEBRiverMix; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(value = GenLayerEBRiverMix.class, 33 | remap = false) 34 | public abstract class GenLayerEBRiverMixMixin { 35 | @ModifyConstant(method = "getInts", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | remap = true, 38 | require = 1) 39 | private int extendIDs1(int constant) { 40 | return ExtendedConstants.biomeIDCount; 41 | } 42 | 43 | @ModifyConstant(method = "getInts", 44 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 45 | remap = true, 46 | require = 1) 47 | private int extendIDs2(int constant) { 48 | return ExtendedConstants.biomeIDMask; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/eb/GenLayerEBVoronoiZoomMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.eb; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import enhancedbiomes.world.gen.layer.GenLayerEBVoronoiZoom; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(value = GenLayerEBVoronoiZoom.class, 33 | remap = false) 34 | public abstract class GenLayerEBVoronoiZoomMixin { 35 | @ModifyConstant(method = "getInts", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 37 | remap = true, 38 | require = 2) 39 | private int extendIDs(int constant) { 40 | return ExtendedConstants.biomeIDMask; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/enderlicious/BiomeConfigurationMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.enderlicious; 24 | 25 | import DelirusCrux.Enderlicious.Common.Utility.Configuration.BiomeConfiguration; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.injection.Constant; 28 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 29 | 30 | @Mixin(value = BiomeConfiguration.class, 31 | remap = false) 32 | public abstract class BiomeConfigurationMixin { 33 | @ModifyConstant(method = "init", 34 | constant = {@Constant(intValue = 200), @Constant(intValue = 210)}, 35 | require = 2) 36 | private static int shiftBiomeIDsUp(int id) { 37 | return id + 3000; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/extendedplanets/ChunkProviderOceanMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.extendedplanets; 24 | 25 | import ExtendedPlanets.dimension.other.ChunkProviderOcean; 26 | import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.Shadow; 29 | import org.spongepowered.asm.mixin.injection.At; 30 | import org.spongepowered.asm.mixin.injection.Redirect; 31 | 32 | import net.minecraft.world.biome.BiomeGenBase; 33 | import net.minecraft.world.chunk.Chunk; 34 | 35 | @Mixin(ChunkProviderOcean.class) 36 | public abstract class ChunkProviderOceanMixin { 37 | @Shadow(remap = false) private BiomeGenBase[] biomesForGeneration; 38 | 39 | @Redirect(method = "provideChunk", 40 | at = @At(value = "INVOKE", 41 | target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B"), 42 | require = 1) 43 | private byte[] setBiomesTweaked(Chunk instance) { 44 | return BiomePatchHelper.getBiomeArrayTweaked(instance, biomesForGeneration); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/extraplanets/ConfigMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.extraplanets; 24 | 25 | import com.mjr.extraplanets.Config; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.injection.At; 28 | import org.spongepowered.asm.mixin.injection.Redirect; 29 | 30 | import net.minecraftforge.common.config.Configuration; 31 | import net.minecraftforge.common.config.Property; 32 | 33 | @Mixin(value = Config.class, 34 | remap = false) 35 | public abstract class ConfigMixin { 36 | @Redirect(method = "load", 37 | at = @At(value = "INVOKE", 38 | target = "Lnet/minecraftforge/common/config/Configuration;get(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)Lnet/minecraftforge/common/config/Property;")) 39 | private static Property shiftBiomeIDsUp(Configuration config, String category, String key, int defaultValue, String comment) { 40 | if (category.equals("biomeID")) { 41 | defaultValue += 17000; 42 | comment = "[range: 0 ~ 65535, default: " + defaultValue + "]"; 43 | } 44 | return config.get(category, key, defaultValue, comment); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/factorization/HammerChunkProviderMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.factorization; 24 | 25 | import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper; 26 | import factorization.fzds.HammerChunkProvider; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.At; 29 | import org.spongepowered.asm.mixin.injection.Redirect; 30 | 31 | import net.minecraft.world.biome.BiomeGenBase; 32 | import net.minecraft.world.chunk.Chunk; 33 | 34 | @Mixin(HammerChunkProvider.class) 35 | public abstract class HammerChunkProviderMixin { 36 | @Redirect(method = "provideChunk", 37 | at = @At(value = "INVOKE", 38 | target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B"), 39 | require = 1) 40 | private byte[] setBiomesTweaked(Chunk instance) { 41 | return BiomePatchHelper.getBiomeArrayTweaked(instance, i -> BiomeGenBase.plains); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/futurepack/BiomeGenSpaceMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.futurepack; 24 | 25 | import com.falsepattern.endlessids.config.FuturepackIDConfig; 26 | import futurepack.common.dim.BiomeGenSpace; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | @Mixin(value = BiomeGenSpace.class, 32 | remap = false) 33 | public abstract class BiomeGenSpaceMixin { 34 | @ModifyConstant(method = "", 35 | constant = @Constant(intValue = 97), 36 | require = 1) 37 | private static int shiftBiomeIDsUp(int id) { 38 | return FuturepackIDConfig.spaceID; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/galacticraft/ChunkProviderOrbitMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.galacticraft; 24 | 25 | import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper; 26 | import micdoodle8.mods.galacticraft.core.world.gen.BiomeGenBaseOrbit; 27 | import micdoodle8.mods.galacticraft.core.world.gen.ChunkProviderOrbit; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.At; 30 | import org.spongepowered.asm.mixin.injection.Redirect; 31 | 32 | import net.minecraft.world.chunk.Chunk; 33 | 34 | @Mixin(value = ChunkProviderOrbit.class, 35 | remap = false) 36 | public abstract class ChunkProviderOrbitMixin { 37 | 38 | @Redirect(method = "provideChunk", 39 | at = @At(value = "INVOKE", 40 | target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B", 41 | remap = true), 42 | remap = true, 43 | require = 1) 44 | private byte[] setBiomesTweaked(Chunk chunk) { 45 | return BiomePatchHelper.getBiomeArrayTweaked(chunk, (i) -> BiomeGenBaseOrbit.space); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/galaxyspace/ChunkProviderKuiperMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.galaxyspace; 24 | 25 | import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper; 26 | import com.falsepattern.endlessids.mixin.helpers.GalaxySpaceHelper; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.Pseudo; 29 | import org.spongepowered.asm.mixin.injection.At; 30 | import org.spongepowered.asm.mixin.injection.Redirect; 31 | 32 | import net.minecraft.world.chunk.Chunk; 33 | 34 | @Pseudo 35 | @Mixin(targets = {"galaxyspace.systems.SolarSystem.planets.kuiperbelt.dimension.ChunkProviderKuiper", 36 | "galaxyspace.SolarSystem.planets.kuiperbelt.dimension.ChunkProviderKuiper"}, 37 | remap = false) 38 | public abstract class ChunkProviderKuiperMixin { 39 | @SuppressWarnings("UnresolvedMixinReference") 40 | @Redirect(method = "func_73154_d", 41 | at = @At(value = "INVOKE", 42 | target = "Lnet/minecraft/world/chunk/Chunk;func_76605_m()[B"), 43 | require = 0, 44 | expect = 0) 45 | private byte[] setBiomesTweaked(Chunk chunk) { 46 | return BiomePatchHelper.getBiomeArrayTweaked(chunk, (i) -> GalaxySpaceHelper.GSSpace()); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/galaxyspace/ChunkProviderMarsSSMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.galaxyspace; 24 | 25 | import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper; 26 | import com.falsepattern.endlessids.mixin.helpers.GalaxySpaceHelper; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.Pseudo; 29 | import org.spongepowered.asm.mixin.injection.At; 30 | import org.spongepowered.asm.mixin.injection.Redirect; 31 | 32 | import net.minecraft.world.chunk.Chunk; 33 | 34 | @Pseudo 35 | @Mixin(targets = {"galaxyspace.systems.SolarSystem.satellites.mars.dimension.ChunkProviderMarsSS", 36 | "galaxyspace.SolarSystem.satellites.mars.dimension.ChunkProviderMarsSS"}, 37 | remap = false) 38 | public abstract class ChunkProviderMarsSSMixin { 39 | 40 | @SuppressWarnings("UnresolvedMixinReference") 41 | @Redirect(method = "func_73154_d", 42 | at = @At(value = "INVOKE", 43 | target = "Lnet/minecraft/world/chunk/Chunk;func_76605_m()[B"), 44 | require = 0, 45 | expect = 0) 46 | private byte[] setBiomesTweaked(Chunk chunk) { 47 | return BiomePatchHelper.getBiomeArrayTweaked(chunk, (i) -> GalaxySpaceHelper.GSSpace()); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/galaxyspace/ChunkProviderVenusSSMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.galaxyspace; 24 | 25 | import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper; 26 | import com.falsepattern.endlessids.mixin.helpers.GalaxySpaceHelper; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.Pseudo; 29 | import org.spongepowered.asm.mixin.injection.At; 30 | import org.spongepowered.asm.mixin.injection.Redirect; 31 | 32 | import net.minecraft.world.chunk.Chunk; 33 | 34 | @Pseudo 35 | @Mixin(targets = {"galaxyspace.systems.SolarSystem.satellites.venus.dimension.ChunkProviderVenusSS", 36 | "galaxyspace.SolarSystem.satellites.venus.dimension.ChunkProviderVenusSS"}, 37 | remap = false) 38 | public abstract class ChunkProviderVenusSSMixin { 39 | 40 | @SuppressWarnings("UnresolvedMixinReference") 41 | @Redirect(method = "func_73154_d", 42 | at = @At(value = "INVOKE", 43 | target = "Lnet/minecraft/world/chunk/Chunk;func_76605_m()[B"), 44 | require = 1) 45 | private byte[] setBiomesTweaked(Chunk chunk) { 46 | return BiomePatchHelper.getBiomeArrayTweaked(chunk, (i) -> GalaxySpaceHelper.GSSpace()); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/highlands/ConfigMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.highlands; 24 | 25 | import highlands.Config; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.injection.At; 28 | import org.spongepowered.asm.mixin.injection.ModifyArg; 29 | 30 | @Mixin(value = Config.class, 31 | remap = false) 32 | public abstract class ConfigMixin { 33 | @ModifyArg(method = "addBiomeEntries", 34 | at = @At(value = "INVOKE", 35 | target = "Lnet/minecraftforge/common/config/Configuration;get(Ljava/lang/String;Ljava/lang/String;I)Lnet/minecraftforge/common/config/Property;"), 36 | index = 2, 37 | require = 44) 38 | private static int shiftBiomeIDsUp(int id) { 39 | return id + 7000; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/icg/MysteriumPatchesFixesCaveMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.icg; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import net.tclproject.mysteriumlib.asm.fixes.MysteriumPatchesFixesCave; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(value = MysteriumPatchesFixesCave.class, 33 | remap = false) 34 | public abstract class MysteriumPatchesFixesCaveMixin { 35 | @ModifyConstant(method = "", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | require = 1) 38 | private static int extendIDs(int constant) { 39 | return ExtendedConstants.biomeIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/lotr/LOTRDimensionMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.lotr; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import lotr.common.LOTRDimension; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(value = LOTRDimension.class, 33 | remap = false) 34 | public abstract class LOTRDimensionMixin { 35 | @ModifyConstant(method = "", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | require = 1) 38 | private int extendBiomes(int constant) { 39 | return ExtendedConstants.biomeIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/naturescompass/BiomeUtilsMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.naturescompass; 24 | 25 | import com.chaosthedude.naturescompass.util.BiomeUtils; 26 | import com.falsepattern.endlessids.PlaceholderBiome; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.At; 29 | import org.spongepowered.asm.mixin.injection.Inject; 30 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; 31 | 32 | import net.minecraft.world.biome.BiomeGenBase; 33 | 34 | @Mixin(value = BiomeUtils.class, 35 | remap = false) 36 | public abstract class BiomeUtilsMixin { 37 | @Inject(method = "biomeIsBlacklisted", 38 | at = @At("HEAD"), 39 | cancellable = true, 40 | require = 1) 41 | private static void blockPlaceholders(BiomeGenBase biome, CallbackInfoReturnable cir) { 42 | if (biome instanceof PlaceholderBiome) { 43 | cir.setReturnValue(true); 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/netherlicious/BiomeConfigurationMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.netherlicious; 24 | 25 | import DelirusCrux.Netherlicious.Utility.Configuration.BiomeConfiguration; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.injection.Constant; 28 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 29 | 30 | @Mixin(value = BiomeConfiguration.class, 31 | remap = false) 32 | public abstract class BiomeConfigurationMixin { 33 | @ModifyConstant(method = "init", 34 | constant = {@Constant(intValue = 170), @Constant(intValue = 175)}, 35 | require = 2) 36 | private static int shiftBiomeIDsUp(int id) { 37 | return id + 3000; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/nomadictents/TentChunkProviderMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.nomadictents; 24 | 25 | import com.falsepattern.endlessids.mixin.helpers.ChunkBiomeHook; 26 | import com.yurtmod.dimension.TentChunkProvider; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.At; 29 | import org.spongepowered.asm.mixin.injection.Redirect; 30 | 31 | import net.minecraft.world.biome.BiomeGenBase; 32 | import net.minecraft.world.chunk.Chunk; 33 | 34 | import java.util.Arrays; 35 | 36 | @Mixin(value = TentChunkProvider.class, 37 | remap = false) 38 | public abstract class TentChunkProviderMixin { 39 | @Redirect(method = "provideChunk", 40 | at = @At(value = "INVOKE", 41 | remap = true, 42 | target = "Lnet/minecraft/world/chunk/Chunk;setBiomeArray([B)V"), 43 | remap = true, 44 | require = 1) 45 | private void setBiomesTweaked(Chunk chunk, byte[] p_76616_1_) { 46 | short[] biomeMap = new short[256]; 47 | Arrays.fill(biomeMap, (short) BiomeGenBase.ocean.biomeID); 48 | ((ChunkBiomeHook) chunk).setBiomeShortArray(biomeMap); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/rtg/LandscapeGeneratorMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.rtg; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | import rtg.world.gen.LandscapeGenerator; 31 | 32 | @Mixin(value = LandscapeGenerator.class, 33 | remap = false) 34 | public abstract class LandscapeGeneratorMixin { 35 | @ModifyConstant(method = "getNewerNoise", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | require = 1) 38 | private int extendIDs(int constant) { 39 | return ExtendedConstants.biomeIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/rtg/WorldChunkManagerRTGMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.rtg; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | import rtg.world.biome.WorldChunkManagerRTG; 31 | 32 | @Mixin(WorldChunkManagerRTG.class) 33 | public abstract class WorldChunkManagerRTGMixin { 34 | @ModifyConstant(method = "getRainfall", 35 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 36 | require = 2) 37 | private int extendBiomes(int constant) { 38 | return ExtendedConstants.biomeIDMask; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/rwg/ChunkGeneratorRealisticMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.rwg; 24 | 25 | import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.Pseudo; 28 | import org.spongepowered.asm.mixin.Shadow; 29 | import org.spongepowered.asm.mixin.injection.At; 30 | import org.spongepowered.asm.mixin.injection.Redirect; 31 | 32 | import net.minecraft.world.biome.BiomeGenBase; 33 | import net.minecraft.world.chunk.Chunk; 34 | import net.minecraft.world.chunk.IChunkProvider; 35 | 36 | @Pseudo 37 | @Mixin(targets = "rwg.world.ChunkGeneratorRealistic", 38 | remap = false) 39 | public abstract class ChunkGeneratorRealisticMixin implements IChunkProvider { 40 | @Shadow 41 | private BiomeGenBase[] baseBiomesList; 42 | 43 | @SuppressWarnings("UnresolvedMixinReference") 44 | @Redirect(method = "func_73154_d", 45 | at = @At(value = "INVOKE", 46 | target = "Lnet/minecraft/world/chunk/Chunk;func_76605_m()[B"), 47 | require = 0, 48 | expect = 0) 49 | private byte[] setBiomesTweaked(Chunk chunk) { 50 | return BiomePatchHelper.getBiomeArrayTweaked(chunk, baseBiomesList); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/rwg/RealisticBiomeBaseMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.rwg; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.Pseudo; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Pseudo 33 | @Mixin(targets = "rwg.biomes.realistic.RealisticBiomeBase", 34 | remap = false) 35 | public abstract class RealisticBiomeBaseMixin { 36 | @ModifyConstant(method = "", 37 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 38 | require = 1) 39 | private static int extendBiomeIDCount(int constant) { 40 | return ExtendedConstants.biomeIDCount; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/rwg/VillageMaterialsMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.rwg; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.Pseudo; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Pseudo 33 | @Mixin(targets = "rwg.data.VillageMaterials", 34 | remap = false) 35 | public abstract class VillageMaterialsMixin { 36 | @ModifyConstant(method = "", 37 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 38 | require = 1) 39 | private static int extendBiomeIDCount(int constant) { 40 | return ExtendedConstants.biomeIDCount; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/tmor/ChunkProviderSanctuatiteMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.tmor; 24 | 25 | import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.Shadow; 28 | import org.spongepowered.asm.mixin.injection.At; 29 | import org.spongepowered.asm.mixin.injection.Redirect; 30 | import sheenrox82.RioV.src.world.chunk.ChunkProviderSanctuatite; 31 | 32 | import net.minecraft.world.biome.BiomeGenBase; 33 | import net.minecraft.world.chunk.Chunk; 34 | 35 | @Mixin(ChunkProviderSanctuatite.class) 36 | public abstract class ChunkProviderSanctuatiteMixin { 37 | @Shadow(remap = false) private BiomeGenBase[] biomesForGeneration; 38 | 39 | @Redirect(method = "provideChunk", 40 | at = @At(value = "INVOKE", 41 | target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B"), 42 | require = 1) 43 | private byte[] setBiomesTweaked(Chunk instance) { 44 | return BiomePatchHelper.getBiomeArrayTweaked(instance, biomesForGeneration); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/tropicraft/GenLayerTropiVoronoiZoomMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.tropicraft; 24 | 25 | import com.falsepattern.endlessids.constants.VanillaConstants; 26 | import net.tropicraft.world.genlayer.GenLayerTropiVoronoiZoom; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | @Mixin(value = GenLayerTropiVoronoiZoom.class, 32 | remap = false) 33 | public abstract class GenLayerTropiVoronoiZoomMixin { 34 | @ModifyConstant(method = "getInts", 35 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 36 | remap = true, 37 | require = 1) 38 | private int fixStupidBitMask(int constant) { 39 | return 0xFFFFFFFF; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/vanilla/BiomeDictionaryMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.vanilla; 24 | 25 | import com.falsepattern.endlessids.PlaceholderBiome; 26 | import lombok.val; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.At; 29 | import org.spongepowered.asm.mixin.injection.Inject; 30 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 31 | 32 | import net.minecraft.world.biome.BiomeGenBase; 33 | import net.minecraftforge.common.BiomeDictionary; 34 | 35 | @Mixin(value = BiomeDictionary.class, 36 | remap = false) 37 | public abstract class BiomeDictionaryMixin { 38 | @Inject(method = "registerAllBiomesAndGenerateEvents", 39 | at = @At("HEAD"), 40 | require = 1) 41 | private static void cleanupBiomeArray(CallbackInfo ci) { 42 | val biomes = BiomeGenBase.getBiomeGenArray(); 43 | for (int i = 0; i < biomes.length; i++) { 44 | if (biomes[i] instanceof PlaceholderBiome) { 45 | biomes[i] = null; 46 | } 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/vanilla/BiomeGenBaseMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | import net.minecraft.world.biome.BiomeGenBase; 32 | 33 | @Mixin(BiomeGenBase.class) 34 | public abstract class BiomeGenBaseMixin { 35 | @ModifyConstant(method = "", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDCount), 37 | require = 1) 38 | private static int extendBiomeList(int constant) { 39 | return ExtendedConstants.biomeIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/vanilla/GenLayerRiverMixMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | import net.minecraft.world.gen.layer.GenLayerRiverMix; 32 | 33 | @Mixin(GenLayerRiverMix.class) 34 | public abstract class GenLayerRiverMixMixin { 35 | @ModifyConstant(method = "getInts", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 37 | require = 1) 38 | private int extendTheID(int constant) { 39 | return ExtendedConstants.biomeIDMask; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/vanilla/GenLayerVoronoiZoomMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | import net.minecraft.world.gen.layer.GenLayerVoronoiZoom; 32 | 33 | @Mixin(GenLayerVoronoiZoom.class) 34 | public abstract class GenLayerVoronoiZoomMixin { 35 | @ModifyConstant(method = "getInts", 36 | constant = @Constant(intValue = VanillaConstants.biomeIDMask), 37 | require = 2) 38 | private int extendTheID(int constant) { 39 | return ExtendedConstants.biomeIDMask; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/biome/witchery/WorldChunkManagerMirrorMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.biome.witchery; 24 | 25 | import com.emoniph.witchery.dimension.WorldChunkManagerMirror; 26 | import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.At; 29 | import org.spongepowered.asm.mixin.injection.Redirect; 30 | 31 | import net.minecraft.world.biome.BiomeGenBase; 32 | import net.minecraft.world.chunk.Chunk; 33 | 34 | @Mixin(value = WorldChunkManagerMirror.class, 35 | remap = false) 36 | public abstract class WorldChunkManagerMirrorMixin { 37 | @Redirect(method = "provideChunk", 38 | at = @At(value = "INVOKE", 39 | target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B", 40 | remap = true), 41 | remap = true, 42 | require = 1) 43 | private byte[] setBiomesTweaked(Chunk chunk) { 44 | return BiomePatchHelper.getBiomeArrayTweaked(chunk, (i) -> BiomeGenBase.hell); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/blockitem/cofhlib/BlockHelperMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.blockitem.cofhlib; 24 | 25 | import cofh.lib.util.helpers.BlockHelper; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(value = BlockHelper.class, 33 | remap = false) 34 | public abstract class BlockHelperMixin { 35 | @ModifyConstant(method = "", 36 | constant = {@Constant(intValue = VanillaConstants.blockIDCount), 37 | @Constant(intValue = VanillaConstants.blockIDCount / 4)}, 38 | require = 1) 39 | private static int extend(int constant) { 40 | return ExtendedConstants.blockIDCount; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/blockitem/dragonapi/BlockPropertiesMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.blockitem.dragonapi; 24 | 25 | import Reika.DragonAPI.Extras.BlockProperties; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(value = BlockProperties.class, 33 | remap = false) 34 | public abstract class BlockPropertiesMixin { 35 | @ModifyConstant(method = "", 36 | constant = @Constant(intValue = VanillaConstants.blockIDCount), 37 | require = 1) 38 | private static int extendColorArray(int constant) { 39 | return ExtendedConstants.blockIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/blockitem/dragonapi/IDTypeMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.blockitem.dragonapi; 24 | 25 | import Reika.DragonAPI.Extras.IDType; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | @Mixin(value = IDType.class, 32 | remap = false) 33 | public abstract class IDTypeMixin { 34 | @ModifyConstant(method = "", 35 | constant = {@Constant(intValue = 4095), @Constant(intValue = 32767)}, 36 | require = 2) 37 | private static int extendBlockItemIDs(int constant) { 38 | return ExtendedConstants.maxBlockID; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/blockitem/matteroverdrive/InventoryMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.blockitem.matteroverdrive; 24 | 25 | import com.falsepattern.endlessids.util.DataUtil; 26 | import matteroverdrive.data.Inventory; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.At; 29 | import org.spongepowered.asm.mixin.injection.Redirect; 30 | 31 | import net.minecraft.nbt.NBTTagCompound; 32 | 33 | @Mixin(Inventory.class) 34 | public abstract class InventoryMixin { 35 | @Redirect(method = "readFromNBT", 36 | at = @At(value = "INVOKE", 37 | target = "Lnet/minecraft/nbt/NBTTagCompound;hasKey(Ljava/lang/String;I)Z"), 38 | require = 1) 39 | private boolean fixHasKey(NBTTagCompound instance, String p_150297_1_, int p_150297_2_) { 40 | return DataUtil.nbtHasID(instance); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/blockitem/ntm/ChunkRadiationHandlerPRISMMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.blockitem.ntm; 24 | 25 | import com.falsepattern.endlessids.mixin.helpers.SubChunkBlockHook; 26 | import com.hbm.handler.radiation.ChunkRadiationHandlerPRISM; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.At; 29 | import org.spongepowered.asm.mixin.injection.Redirect; 30 | 31 | import net.minecraft.world.chunk.storage.ExtendedBlockStorage; 32 | 33 | @Mixin(ChunkRadiationHandlerPRISM.class) 34 | public abstract class ChunkRadiationHandlerPRISMMixin { 35 | @Redirect(method = "updateSystem", 36 | at = @At(value = "INVOKE", 37 | target = "Lnet/minecraft/world/chunk/storage/ExtendedBlockStorage;getBlockLSBArray()[B"), 38 | require = 1) 39 | private byte[] extendLSBArray(ExtendedBlockStorage instance) { 40 | return ((SubChunkBlockHook)instance).eid$getB1(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/blockitem/ntm/ChunkRadiationHandlerPRISM_SubChunkMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.blockitem.ntm; 24 | 25 | import com.falsepattern.endlessids.mixin.helpers.SubChunkBlockHook; 26 | import com.hbm.handler.radiation.ChunkRadiationHandlerPRISM; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.At; 29 | import org.spongepowered.asm.mixin.injection.Redirect; 30 | 31 | import net.minecraft.world.chunk.storage.ExtendedBlockStorage; 32 | 33 | @Mixin(ChunkRadiationHandlerPRISM.SubChunk.class) 34 | public abstract class ChunkRadiationHandlerPRISM_SubChunkMixin { 35 | @Redirect(method = "rebuild", 36 | at = @At(value = "INVOKE", 37 | target = "Lnet/minecraft/world/chunk/storage/ExtendedBlockStorage;getBlockLSBArray()[B"), 38 | require = 1) 39 | private byte[] extendLSBArray(ExtendedBlockStorage instance) { 40 | return ((SubChunkBlockHook)instance).eid$getB1(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/blockitem/ubc/OreUBifierMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.blockitem.ubc; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import exterminatorJeff.undergroundBiomes.worldGen.OreUBifier; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(value = OreUBifier.class, 33 | remap = false) 34 | public abstract class OreUBifierMixin { 35 | @ModifyConstant(method = "renewBlockReplacers", 36 | constant = @Constant(intValue = VanillaConstants.blockIDCount), 37 | require = 1) 38 | private int extendReplacerArraySize(int constant) { 39 | return ExtendedConstants.blockIDCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/blockitem/vanilla/BlockFireMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.blockitem.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | import net.minecraft.block.BlockFire; 32 | 33 | @Mixin(BlockFire.class) 34 | public abstract class BlockFireMixin { 35 | @ModifyConstant(method = {"", "rebuildFireInfo", "getFlammability", "getEncouragement"}, 36 | constant = @Constant(intValue = VanillaConstants.blockIDCount), 37 | remap = false, 38 | require = 1) 39 | private static int extendIDs(int constant) { 40 | return ExtendedConstants.blockIDCount; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/blockitem/vanilla/ItemInWorldManagerMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.blockitem.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | import net.minecraft.server.management.ItemInWorldManager; 32 | 33 | @Mixin(ItemInWorldManager.class) 34 | public abstract class ItemInWorldManagerMixin { 35 | @ModifyConstant(method = "tryHarvestBlock", 36 | constant = @Constant(intValue = VanillaConstants.bitsPerID, 37 | ordinal = 0), 38 | require = 1) 39 | private int extend1(int constant) { 40 | return ExtendedConstants.bitsPerID; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/blockitem/vanilla/S24PacketBlockActionMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.blockitem.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | import net.minecraft.network.play.server.S24PacketBlockAction; 32 | 33 | @Mixin(S24PacketBlockAction.class) 34 | public abstract class S24PacketBlockActionMixin { 35 | @ModifyConstant(method = {"readPacketData", "writePacketData"}, 36 | constant = @Constant(intValue = VanillaConstants.blockIDMask), 37 | require = 2) 38 | private int extend1(int constant) { 39 | return ExtendedConstants.blockIDMask; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/blockitem/vanilla/StatListMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.blockitem.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | import net.minecraft.stats.StatList; 32 | 33 | @Mixin(StatList.class) 34 | public abstract class StatListMixin { 35 | @ModifyConstant(method = "", 36 | constant = {@Constant(intValue = VanillaConstants.blockIDCount)}, 37 | require = 1) 38 | private static int modifyMineBlockStatArraySize(int constant) { 39 | return ExtendedConstants.blockIDCount; 40 | } 41 | 42 | @ModifyConstant(method = "", 43 | constant = {@Constant(intValue = VanillaConstants.itemIDCount)}, 44 | require = 3) 45 | private static int modifyItemStatArraysSize(int constant) { 46 | return ExtendedConstants.itemIDCount; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/blockitem/vanilla/WorldMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.blockitem.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.injection.Constant; 29 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 30 | 31 | import net.minecraft.world.World; 32 | 33 | @Mixin(World.class) 34 | public abstract class WorldMixin { 35 | @ModifyConstant(method = "func_147480_a", 36 | constant = @Constant(intValue = VanillaConstants.bitsPerID), 37 | require = 1) 38 | private int modifySoundShift(int original) { 39 | return ExtendedConstants.bitsPerID; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/datawatcher/mfqm/MFQMDataWatcherMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.datawatcher.mfqm; 24 | 25 | import MoreFunQuicksandMod.main.MFQM; 26 | import com.falsepattern.endlessids.constants.ExtendedConstants; 27 | import com.falsepattern.endlessids.constants.VanillaConstants; 28 | import org.spongepowered.asm.mixin.Mixin; 29 | import org.spongepowered.asm.mixin.injection.Constant; 30 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 31 | 32 | @Mixin(value = MFQM.class, 33 | remap = false) 34 | public abstract class MFQMDataWatcherMixin { 35 | @ModifyConstant(method = "preInit", 36 | constant = {@Constant(intValue = VanillaConstants.maxWatchableID, 37 | ordinal = 0), @Constant(intValue = VanillaConstants.maxWatchableID, 38 | ordinal = 1), 39 | @Constant(intValue = VanillaConstants.maxWatchableID, 40 | ordinal = 2)}, 41 | require = 3) 42 | private int extendWatchableIDLimit(int constant) { 43 | return ExtendedConstants.maxWatchableID; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/enchantment/vanilla/EnchantmentMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.enchantment.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.injection.Constant; 28 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 29 | 30 | import net.minecraft.enchantment.Enchantment; 31 | 32 | @Mixin(Enchantment.class) 33 | public abstract class EnchantmentMixin { 34 | @ModifyConstant(method = "", 35 | constant = @Constant(intValue = 256), 36 | require = 1) 37 | private static int extendEnchantmentIDRange(int original) { 38 | return ExtendedConstants.maximumEnchantmentIDs; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/entity/vanilla/EntityListMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.entity.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import com.falsepattern.endlessids.constants.VanillaConstants; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.Shadow; 29 | import org.spongepowered.asm.mixin.injection.At; 30 | import org.spongepowered.asm.mixin.injection.Constant; 31 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 32 | import org.spongepowered.asm.mixin.injection.Redirect; 33 | 34 | import net.minecraft.entity.EntityList; 35 | 36 | 37 | @Mixin(EntityList.class) 38 | public abstract class EntityListMixin { 39 | 40 | @ModifyConstant(method = "addMapping(Ljava/lang/Class;Ljava/lang/String;I)V", 41 | constant = @Constant(intValue = VanillaConstants.maxEntityID), 42 | require = 1) 43 | private static int extendRange(int constant) { 44 | return ExtendedConstants.maxEntityID; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/potion/vanilla/PotionMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.potion.vanilla; 24 | 25 | import com.falsepattern.endlessids.constants.ExtendedConstants; 26 | import org.spongepowered.asm.mixin.Final; 27 | import org.spongepowered.asm.mixin.Mixin; 28 | import org.spongepowered.asm.mixin.Mutable; 29 | import org.spongepowered.asm.mixin.Shadow; 30 | import org.spongepowered.asm.mixin.injection.At; 31 | import org.spongepowered.asm.mixin.injection.Inject; 32 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 33 | 34 | import net.minecraft.potion.Potion; 35 | 36 | import java.util.Arrays; 37 | 38 | @Mixin(Potion.class) 39 | public abstract class PotionMixin { 40 | 41 | @Shadow(aliases = "field_76425_a") 42 | @Final 43 | @Mutable 44 | public static Potion[] potionTypes; 45 | 46 | 47 | @Inject(method = "", 48 | at = @At(value = "RETURN"), 49 | require = 1) 50 | private static void clinit(CallbackInfo ci) { 51 | potionTypes = Arrays.copyOf(potionTypes, ExtendedConstants.maximumPotionIDs); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/redstone/BlockCompressedPoweredMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.redstone; 24 | 25 | import com.falsepattern.endlessids.config.GeneralConfig; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.injection.At; 28 | import org.spongepowered.asm.mixin.injection.Inject; 29 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; 30 | 31 | import net.minecraft.block.BlockCompressedPowered; 32 | import net.minecraft.world.IBlockAccess; 33 | 34 | @Mixin(BlockCompressedPowered.class) 35 | public abstract class BlockCompressedPoweredMixin { 36 | @Inject(method = "isProvidingWeakPower", 37 | at = @At("HEAD"), 38 | cancellable = true, 39 | require = 1) 40 | private void bigRedstone(IBlockAccess p_149709_1_, int p_149709_2_, int p_149709_3_, int p_149709_4_, int p_149709_5_, CallbackInfoReturnable cir) { 41 | cir.setReturnValue(GeneralConfig.maxRedstone); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/redstone/BlockRedstoneDiodeMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.redstone; 24 | 25 | import com.falsepattern.endlessids.config.GeneralConfig; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.injection.At; 28 | import org.spongepowered.asm.mixin.injection.Inject; 29 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; 30 | 31 | import net.minecraft.block.BlockRedstoneDiode; 32 | import net.minecraft.world.IBlockAccess; 33 | 34 | @Mixin(BlockRedstoneDiode.class) 35 | public abstract class BlockRedstoneDiodeMixin { 36 | @Inject(method = "func_149904_f", 37 | at = @At("HEAD"), 38 | cancellable = true) 39 | private void bigRedstone(IBlockAccess p_149904_1_, int p_149904_2_, int p_149904_3_, int p_149904_4_, int p_149904_5_, CallbackInfoReturnable cir) { 40 | cir.setReturnValue(GeneralConfig.maxRedstone); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/redstone/BlockRedstoneTorchMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.redstone; 24 | 25 | import com.falsepattern.endlessids.config.GeneralConfig; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.injection.Constant; 28 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 29 | 30 | import net.minecraft.block.BlockRedstoneTorch; 31 | 32 | @Mixin(BlockRedstoneTorch.class) 33 | public abstract class BlockRedstoneTorchMixin { 34 | @ModifyConstant(method = "isProvidingWeakPower", 35 | constant = @Constant(intValue = 15), 36 | require = 1) 37 | private int bigRedstone(int original) { 38 | return GeneralConfig.maxRedstone; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/mixins/common/redstone/WorldMixin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.mixins.common.redstone; 24 | 25 | import com.falsepattern.endlessids.config.GeneralConfig; 26 | import org.spongepowered.asm.mixin.Mixin; 27 | import org.spongepowered.asm.mixin.injection.Constant; 28 | import org.spongepowered.asm.mixin.injection.ModifyConstant; 29 | 30 | import net.minecraft.world.World; 31 | 32 | @Mixin(World.class) 33 | public abstract class WorldMixin { 34 | @ModifyConstant(method = {"getStrongestIndirectPower", "getBlockPowerInput"}, 35 | constant = @Constant(intValue = 15), 36 | require = 8) 37 | private int bigRedstone(int constant) { 38 | return GeneralConfig.maxRedstone; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/mixin/plugin/MixinPlugin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.mixin.plugin; 24 | 25 | import com.falsepattern.endlessids.Tags; 26 | import com.falsepattern.lib.mixin.IMixin; 27 | import com.falsepattern.lib.mixin.IMixinPlugin; 28 | import com.falsepattern.lib.mixin.ITargetedMod; 29 | import lombok.Getter; 30 | import org.apache.logging.log4j.Logger; 31 | 32 | public class MixinPlugin implements IMixinPlugin { 33 | public static final Logger LOG = IMixinPlugin.createLogger(Tags.MODNAME); 34 | 35 | @Getter 36 | private final Logger logger = LOG; 37 | 38 | @Override 39 | public IMixin[] getMixinEnumValues() { 40 | return Mixin.values(); 41 | } 42 | 43 | @Override 44 | public ITargetedMod[] getTargetedModEnumValues() { 45 | return TargetedMod.values(); 46 | } 47 | 48 | @Override 49 | public boolean useNewFindJar() { 50 | return true; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/patching/ClientManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.patching; 24 | 25 | public class ClientManager extends CommonManager { 26 | public ClientManager() { 27 | super(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/patching/Patch.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.patching; 24 | 25 | import lombok.RequiredArgsConstructor; 26 | 27 | @RequiredArgsConstructor 28 | public class Patch { 29 | public final String modid; 30 | 31 | @SuppressWarnings("RedundantThrows") 32 | public boolean construct() throws Exception { 33 | return false; 34 | } 35 | 36 | @SuppressWarnings("RedundantThrows") 37 | public boolean preInit() throws Exception { 38 | return false; 39 | } 40 | 41 | @SuppressWarnings("RedundantThrows") 42 | public boolean init() throws Exception { 43 | return false; 44 | } 45 | 46 | @SuppressWarnings("RedundantThrows") 47 | public boolean postInit() throws Exception { 48 | return false; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/patching/ServerManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.patching; 24 | 25 | public class ServerManager extends CommonManager { 26 | public ServerManager() { 27 | super(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/patching/patches/common/Futurepack.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.patching.patches.common; 24 | 25 | import com.falsepattern.endlessids.config.GeneralConfig; 26 | import com.falsepattern.endlessids.patching.Patch; 27 | 28 | public class Futurepack extends Patch { 29 | public Futurepack() { 30 | super("fp"); 31 | } 32 | 33 | @Override 34 | public boolean construct() throws Exception { 35 | if (!GeneralConfig.extendBiome) { 36 | return false; 37 | } 38 | Class.forName("futurepack.common.dim.BiomeGenSpace"); 39 | return true; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/falsepattern/endlessids/patching/patches/common/Tropicraft.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EndlessIDs 3 | * 4 | * Copyright (C) 2022-2025 FalsePattern, The MEGA Team 5 | * All Rights Reserved 6 | * 7 | * The above copyright notice, this permission notice and the words "MEGA" 8 | * shall be included in all copies or substantial portions of the Software. 9 | * 10 | * This program is free software: you can redistribute it and/or modify 11 | * it under the terms of the GNU Lesser General Public License as published by 12 | * the Free Software Foundation, only version 3 of the License. 13 | * 14 | * This program is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public License 20 | * along with this program. If not, see . 21 | */ 22 | 23 | package com.falsepattern.endlessids.patching.patches.common; 24 | 25 | import com.falsepattern.endlessids.config.GeneralConfig; 26 | import com.falsepattern.endlessids.patching.Patch; 27 | 28 | public class Tropicraft extends Patch { 29 | public Tropicraft() { 30 | super("tropicraft"); 31 | } 32 | 33 | @Override 34 | public boolean init() throws ClassNotFoundException { 35 | if (!GeneralConfig.extendBiome) { 36 | return false; 37 | } 38 | Class.forName("net.tropicraft.world.biomes.BiomeGenTropicraft"); 39 | return true; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/resources/LICENSE: -------------------------------------------------------------------------------- 1 | EndlessIDs 2 | 3 | Copyright (C) 2022-2025 FalsePattern, The MEGA Team 4 | All Rights Reserved 5 | 6 | The above copyright notice, this permission notice and the word "MEGA" 7 | shall be included in all copies or substantial portions of the Software. 8 | 9 | This program is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU Lesser General Public License as published by 11 | the Free Software Foundation, only version 3 of the License. 12 | 13 | This program is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU Lesser General Public License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with this program. If not, see . -------------------------------------------------------------------------------- /src/main/resources/META-INF/EIDdeps.json: -------------------------------------------------------------------------------- 1 | { 2 | "identifier": "falsepatternlib_dependencies", 3 | "repositories": [ 4 | "https://repo1.maven.org/maven2/" 5 | ], 6 | "dependencies": { 7 | "always": { 8 | "common": [ 9 | "it.unimi.dsi:fastutil:8.5.15" 10 | ], 11 | "client": [], 12 | "server": [] 13 | }, 14 | "obf": { 15 | "common": [], 16 | "client": [], 17 | "server": [] 18 | }, 19 | "dev": { 20 | "common": [], 21 | "client": [], 22 | "server": [] 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/resources/endlessids.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GTMEGA/EndlessIDs/5dc630fca99a166f7f523d3790f18d8dde1fff66/src/main/resources/endlessids.png -------------------------------------------------------------------------------- /src/main/resources/mcmod.info: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "modid": "${modId}", 4 | "name": "${modName}", 5 | "description": "Extend ALL the IDs!", 6 | "version": "${modVersion}", 7 | "mcversion": "${minecraftVersion}", 8 | "url": "https://github.com/GTMEGA/EndlessIDs", 9 | "updateUrl": "", 10 | "authorList": [ 11 | "FalsePattern" 12 | ], 13 | "credits": "Originally based on NotEnoughIDs by fewizz and Player. Logo by Houstonruss.", 14 | "logoFile": "endlessids.png", 15 | "screenshots": [], 16 | "dependencies": [] 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /src/main/resources/mixins.endlessids.json: -------------------------------------------------------------------------------- 1 | { 2 | "required": true, 3 | "minVersion": "0.8.5", 4 | "package": "com.falsepattern.endlessids.mixin.mixins", 5 | "plugin": "com.falsepattern.endlessids.mixin.plugin.MixinPlugin", 6 | "refmap": "mixins.endlessids.refmap.json", 7 | "target": "@env(DEFAULT)", 8 | "compatibilityLevel": "JAVA_8" 9 | } 10 | 11 | --------------------------------------------------------------------------------