├── .github ├── ISSUE_TEMPLATE │ ├── config.yml │ ├── FEATURE-REQUEST.yml │ └── BUG-REPORT.yml ├── workflows │ └── release.yml └── FUNDING.yml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── neoforge ├── src │ └── main │ │ ├── resources │ │ ├── data │ │ │ └── elytraslot │ │ │ │ └── curios │ │ │ │ ├── entities │ │ │ │ └── elytraslot.json │ │ │ │ └── slots │ │ │ │ └── back.json │ │ └── META-INF │ │ │ ├── services │ │ │ ├── com.illusivesoulworks.elytraslot.platform.services.IClientPlatform │ │ │ ├── com.illusivesoulworks.elytraslot.platform.services.ILoadingPlatform │ │ │ └── com.illusivesoulworks.elytraslot.platform.services.IServerPlatform │ │ │ └── neoforge.mods.toml │ │ └── java │ │ └── com │ │ └── illusivesoulworks │ │ └── elytraslot │ │ ├── platform │ │ ├── NeoForgeServerPlatform.java │ │ ├── NeoForgeLoadingPlatform.java │ │ └── NeoForgeClientPlatform.java │ │ ├── common │ │ └── CurioElytra.java │ │ ├── ElytraSlotNeoForgeMod.java │ │ └── ElytraSlotNeoForgeClientMod.java └── build.gradle ├── fabric ├── src │ └── main │ │ ├── resources │ │ ├── data │ │ │ └── elytraslot │ │ │ │ └── accessories │ │ │ │ └── slot │ │ │ │ └── cape.json │ │ ├── META-INF │ │ │ └── services │ │ │ │ ├── com.illusivesoulworks.elytraslot.platform.services.IClientPlatform │ │ │ │ ├── com.illusivesoulworks.elytraslot.platform.services.IServerPlatform │ │ │ │ └── com.illusivesoulworks.elytraslot.platform.services.ILoadingPlatform │ │ └── fabric.mod.json │ │ └── java │ │ └── com │ │ └── illusivesoulworks │ │ └── elytraslot │ │ ├── platform │ │ ├── FabricLoadingPlatform.java │ │ ├── FabricServerPlatform.java │ │ └── FabricClientPlatform.java │ │ ├── common │ │ └── AccessoryElytra.java │ │ ├── ElytraSlotFabricClientMod.java │ │ └── ElytraSlotFabricMod.java └── build.gradle ├── common ├── src │ └── main │ │ ├── resources │ │ ├── elytraslot_icon.png │ │ ├── pack.mcmeta │ │ ├── elytraslot_integrations.mixins.json │ │ └── data │ │ │ └── elytraslot │ │ │ └── tags │ │ │ └── item │ │ │ └── elytra.json │ │ └── java │ │ └── com │ │ └── illusivesoulworks │ │ └── elytraslot │ │ ├── platform │ │ ├── services │ │ │ ├── ILoadingPlatform.java │ │ │ ├── IServerPlatform.java │ │ │ └── IClientPlatform.java │ │ ├── ClientServices.java │ │ └── Services.java │ │ ├── integration │ │ ├── IntegrationConstants.java │ │ └── minecraftcapes │ │ │ └── MinecraftCapesPlugin.java │ │ ├── ElytraSlotConstants.java │ │ ├── mixin │ │ ├── integration │ │ │ └── waveycapes │ │ │ │ └── CustomCapeRenderLayerMixin.java │ │ └── IntegrationMixinPlugin.java │ │ └── client │ │ └── ElytraSlotLayer.java └── build.gradle ├── .gitignore ├── .gitattributes ├── .idea └── scopes │ ├── Forge_sources.xml │ └── Fabric_sources.xml ├── CHANGELOG_LATEST.md ├── LICENSE ├── LGPL_3_0_or_later.xml ├── README.md ├── settings.gradle ├── gradle.properties ├── gradlew.bat ├── COPYING.LESSER ├── CHANGELOG.md ├── gradlew ├── checkstyle.xml └── COPYING /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusivesoulworks/elytraslot/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /neoforge/src/main/resources/data/elytraslot/curios/entities/elytraslot.json: -------------------------------------------------------------------------------- 1 | { 2 | "entities": ["player"], 3 | "slots": ["back"] 4 | } -------------------------------------------------------------------------------- /fabric/src/main/resources/data/elytraslot/accessories/slot/cape.json: -------------------------------------------------------------------------------- 1 | { 2 | "replace": false, 3 | "validators": ["elytraslot:glider"] 4 | } -------------------------------------------------------------------------------- /neoforge/src/main/resources/data/elytraslot/curios/slots/back.json: -------------------------------------------------------------------------------- 1 | { 2 | "replace": false, 3 | "validators": ["elytraslot:glider"] 4 | } -------------------------------------------------------------------------------- /common/src/main/resources/elytraslot_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusivesoulworks/elytraslot/HEAD/common/src/main/resources/elytraslot_icon.png -------------------------------------------------------------------------------- /common/src/main/resources/pack.mcmeta: -------------------------------------------------------------------------------- 1 | { 2 | "pack": { 3 | "description": "${mod_name} resources", 4 | "pack_format": 10 5 | } 6 | } -------------------------------------------------------------------------------- /fabric/src/main/resources/META-INF/services/com.illusivesoulworks.elytraslot.platform.services.IClientPlatform: -------------------------------------------------------------------------------- 1 | com.illusivesoulworks.elytraslot.platform.FabricClientPlatform -------------------------------------------------------------------------------- /fabric/src/main/resources/META-INF/services/com.illusivesoulworks.elytraslot.platform.services.IServerPlatform: -------------------------------------------------------------------------------- 1 | com.illusivesoulworks.elytraslot.platform.FabricServerPlatform -------------------------------------------------------------------------------- /fabric/src/main/resources/META-INF/services/com.illusivesoulworks.elytraslot.platform.services.ILoadingPlatform: -------------------------------------------------------------------------------- 1 | com.illusivesoulworks.elytraslot.platform.FabricLoadingPlatform -------------------------------------------------------------------------------- /neoforge/src/main/resources/META-INF/services/com.illusivesoulworks.elytraslot.platform.services.IClientPlatform: -------------------------------------------------------------------------------- 1 | com.illusivesoulworks.elytraslot.platform.NeoForgeClientPlatform -------------------------------------------------------------------------------- /neoforge/src/main/resources/META-INF/services/com.illusivesoulworks.elytraslot.platform.services.ILoadingPlatform: -------------------------------------------------------------------------------- 1 | com.illusivesoulworks.elytraslot.platform.NeoForgeLoadingPlatform -------------------------------------------------------------------------------- /neoforge/src/main/resources/META-INF/services/com.illusivesoulworks.elytraslot.platform.services.IServerPlatform: -------------------------------------------------------------------------------- 1 | com.illusivesoulworks.elytraslot.platform.NeoForgeServerPlatform -------------------------------------------------------------------------------- /common/src/main/java/com/illusivesoulworks/elytraslot/platform/services/ILoadingPlatform.java: -------------------------------------------------------------------------------- 1 | package com.illusivesoulworks.elytraslot.platform.services; 2 | 3 | public interface ILoadingPlatform { 4 | 5 | boolean isModLoaded(String modId); 6 | } 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # eclipse 2 | bin 3 | *.launch 4 | .settings 5 | .metadata 6 | .classpath 7 | .project 8 | 9 | # idea 10 | out 11 | *.ipr 12 | *.iws 13 | *.iml 14 | .idea/* 15 | !.idea/scopes 16 | 17 | # gradle 18 | build 19 | .gradle 20 | 21 | # other 22 | eclipse 23 | run 24 | runs 25 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text eol=lf 2 | *.bat text eol=crlf 3 | *.patch text eol=lf 4 | *.java text eol=lf 5 | *.gradle text eol=crlf 6 | *.png binary 7 | *.gif binary 8 | *.exe binary 9 | *.dll binary 10 | *.jar binary 11 | *.lzma binary 12 | *.zip binary 13 | *.pyd binary 14 | *.cfg text eol=lf 15 | *.jks binary -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /common/src/main/java/com/illusivesoulworks/elytraslot/integration/IntegrationConstants.java: -------------------------------------------------------------------------------- 1 | package com.illusivesoulworks.elytraslot.integration; 2 | 3 | public class IntegrationConstants { 4 | 5 | public static final String MINECRAFT_CAPES = "minecraftcapes"; 6 | public static final String WAVEY_CAPES = "waveycapes"; 7 | } 8 | -------------------------------------------------------------------------------- /common/src/main/java/com/illusivesoulworks/elytraslot/platform/services/IServerPlatform.java: -------------------------------------------------------------------------------- 1 | package com.illusivesoulworks.elytraslot.platform.services; 2 | 3 | import java.util.HashMap; 4 | import java.util.Map; 5 | 6 | public interface IServerPlatform { 7 | 8 | Map MODS = new HashMap<>(); 9 | 10 | boolean isModLoaded(String modId); 11 | } 12 | -------------------------------------------------------------------------------- /.idea/scopes/Forge_sources.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /common/src/main/resources/elytraslot_integrations.mixins.json: -------------------------------------------------------------------------------- 1 | { 2 | "required": false, 3 | "package": "com.illusivesoulworks.elytraslot.mixin.integration", 4 | "compatibilityLevel": "JAVA_16", 5 | "mixins": [ 6 | "waveycapes.CustomCapeRenderLayerMixin" 7 | ], 8 | "plugin": "com.illusivesoulworks.elytraslot.mixin.IntegrationMixinPlugin", 9 | "minVersion": "0.8", 10 | "refmap": "elytraslot.refmap.json" 11 | } -------------------------------------------------------------------------------- /.idea/scopes/Fabric_sources.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /fabric/src/main/java/com/illusivesoulworks/elytraslot/platform/FabricLoadingPlatform.java: -------------------------------------------------------------------------------- 1 | package com.illusivesoulworks.elytraslot.platform; 2 | 3 | import com.illusivesoulworks.elytraslot.platform.services.ILoadingPlatform; 4 | import net.fabricmc.loader.api.FabricLoader; 5 | 6 | public class FabricLoadingPlatform implements ILoadingPlatform { 7 | 8 | @Override 9 | public boolean isModLoaded(String modId) { 10 | return FabricLoader.getInstance().isModLoaded(modId); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /neoforge/src/main/java/com/illusivesoulworks/elytraslot/platform/NeoForgeServerPlatform.java: -------------------------------------------------------------------------------- 1 | package com.illusivesoulworks.elytraslot.platform; 2 | 3 | import com.illusivesoulworks.elytraslot.platform.services.IServerPlatform; 4 | import net.neoforged.fml.ModList; 5 | 6 | public class NeoForgeServerPlatform implements IServerPlatform { 7 | 8 | @Override 9 | public boolean isModLoaded(String modId) { 10 | return MODS.computeIfAbsent(modId, k -> ModList.get().isLoaded(modId)); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /fabric/src/main/java/com/illusivesoulworks/elytraslot/platform/FabricServerPlatform.java: -------------------------------------------------------------------------------- 1 | package com.illusivesoulworks.elytraslot.platform; 2 | 3 | import com.illusivesoulworks.elytraslot.platform.services.IServerPlatform; 4 | import net.fabricmc.loader.api.FabricLoader; 5 | 6 | public class FabricServerPlatform implements IServerPlatform { 7 | 8 | @Override 9 | public boolean isModLoaded(String modId) { 10 | return MODS.computeIfAbsent(modId, k -> FabricLoader.getInstance().isModLoaded(k)); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | on: [workflow_dispatch] 3 | 4 | jobs: 5 | build: 6 | runs-on: ubuntu-22.04 7 | container: 8 | image: mcr.microsoft.com/openjdk/jdk:21-ubuntu 9 | options: --user root 10 | steps: 11 | - uses: actions/checkout@v4 12 | - run: ./gradlew build publishFabricNeoForge 13 | env: 14 | CURSEFORGE_KEY: ${{ secrets.CURSEFORGE_KEY }} 15 | MODRINTH_KEY: ${{ secrets.MODRINTH_KEY }} 16 | DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} 17 | -------------------------------------------------------------------------------- /CHANGELOG_LATEST.md: -------------------------------------------------------------------------------- 1 | The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). 2 | 3 | This is a copy of the changelog for the most recent version. For the full version history, go [here](https://github.com/illusivesoulworks/elytraslot/blob/1.21.4/CHANGELOG.md). 4 | 5 | ## [10.0.1+1.21.4] - 2025.07.23 6 | ### Changed 7 | - Updated Caelus API requirement to 8.0.1 to fix an issue with helmets being damaged while gliding with an elytra in a 8 | curio slot 9 | -------------------------------------------------------------------------------- /neoforge/src/main/java/com/illusivesoulworks/elytraslot/platform/NeoForgeLoadingPlatform.java: -------------------------------------------------------------------------------- 1 | package com.illusivesoulworks.elytraslot.platform; 2 | 3 | import com.illusivesoulworks.elytraslot.platform.services.ILoadingPlatform; 4 | import com.illusivesoulworks.elytraslot.platform.services.IServerPlatform; 5 | import net.neoforged.fml.loading.FMLLoader; 6 | 7 | public class NeoForgeLoadingPlatform implements ILoadingPlatform { 8 | 9 | @Override 10 | public boolean isModLoaded(String modId) { 11 | return FMLLoader.getLoadingModList().getModFileById(modId) != null; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /fabric/src/main/java/com/illusivesoulworks/elytraslot/common/AccessoryElytra.java: -------------------------------------------------------------------------------- 1 | package com.illusivesoulworks.elytraslot.common; 2 | 3 | import io.wispforest.accessories.api.Accessory; 4 | import io.wispforest.accessories.api.slot.SlotReference; 5 | import net.minecraft.world.entity.EquipmentSlot; 6 | import net.minecraft.world.item.ItemStack; 7 | 8 | public class AccessoryElytra implements Accessory { 9 | 10 | @Override 11 | public boolean canEquip(ItemStack stack, SlotReference reference) { 12 | return stack.getItem() != reference.entity().getItemBySlot(EquipmentSlot.CHEST).getItem(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2019-2022 Illusive Soulworks 2 | 3 | Elytra Slot is free software: you can redistribute it and/or modify it 4 | under the terms of the GNU Lesser General Public License as published 5 | by the Free Software Foundation, either version 3 of the License, or 6 | any later version. 7 | 8 | Elytra Slot is distributed in the hope that it will be useful, but 9 | WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR PARTICULAR PURPOSE. See the 11 | GNU Lesser General Public License for more details. 12 | 13 | You should have received a copy of the GNU Lesser General Public 14 | License along with Elytra Slot. If not, see . 15 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: theillusivec4 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml: -------------------------------------------------------------------------------- 1 | name: Feature Request 2 | description: Make a suggestion for a new feature or improvements to existing ones 3 | title: "[Feature]: " 4 | labels: ["type: enhancement", "status: triage"] 5 | assignees: 6 | - TheIllusiveC4 7 | body: 8 | - type: markdown 9 | attributes: 10 | value: | 11 | Hello, and thanks for trying to make this mod better. Please respond to the following questions to the best of your ability. 12 | - type: textarea 13 | id: feature-description 14 | attributes: 15 | label: What is the new feature or improvement? 16 | description: Also, please explain why it would be a good addition to the mod. 17 | placeholder: An amazing idea for the mod! 18 | validations: 19 | required: true 20 | -------------------------------------------------------------------------------- /common/src/main/java/com/illusivesoulworks/elytraslot/platform/ClientServices.java: -------------------------------------------------------------------------------- 1 | package com.illusivesoulworks.elytraslot.platform; 2 | 3 | import com.illusivesoulworks.elytraslot.ElytraSlotConstants; 4 | import com.illusivesoulworks.elytraslot.platform.services.IClientPlatform; 5 | import java.util.ServiceLoader; 6 | 7 | public class ClientServices { 8 | 9 | public static final IClientPlatform CLIENT = load(IClientPlatform.class); 10 | 11 | public static T load(Class clazz) { 12 | final T loadedService = ServiceLoader.load(clazz) 13 | .findFirst() 14 | .orElseThrow( 15 | () -> new NullPointerException("Failed to load service for " + clazz.getName())); 16 | ElytraSlotConstants.LOG.debug("Loaded {} for service {}", loadedService, clazz); 17 | return loadedService; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /fabric/src/main/resources/fabric.mod.json: -------------------------------------------------------------------------------- 1 | { 2 | "schemaVersion": 1, 3 | "id": "${mod_id}", 4 | "version": "${version}", 5 | "name": "${mod_name}", 6 | "description": "${description}", 7 | "authors": [ 8 | "${mod_author}" 9 | ], 10 | "contact": { 11 | "sources": "${sources_url}", 12 | "issues": "${issues_url}" 13 | }, 14 | "license": "${license}", 15 | "icon": "${mod_id}_icon.png", 16 | "environment": "*", 17 | "entrypoints": { 18 | "main": [ 19 | "com.illusivesoulworks.elytraslot.ElytraSlotFabricMod" 20 | ], 21 | "client": [ 22 | "com.illusivesoulworks.elytraslot.ElytraSlotFabricClientMod" 23 | ] 24 | }, 25 | "mixins": [ 26 | "elytraslot_integrations.mixins.json" 27 | ], 28 | "depends": { 29 | "fabricloader": ">=0.14", 30 | "fabric": "*", 31 | "accessories": "*", 32 | "minecraft": "${minecraft_version_range_alt}", 33 | "java": ">=17" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /LGPL_3_0_or_later.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /common/src/main/java/com/illusivesoulworks/elytraslot/platform/Services.java: -------------------------------------------------------------------------------- 1 | package com.illusivesoulworks.elytraslot.platform; 2 | 3 | import com.illusivesoulworks.elytraslot.ElytraSlotConstants; 4 | import com.illusivesoulworks.elytraslot.platform.services.ILoadingPlatform; 5 | import com.illusivesoulworks.elytraslot.platform.services.IServerPlatform; 6 | import java.util.ServiceLoader; 7 | 8 | public class Services { 9 | 10 | public static final IServerPlatform SERVER = load(IServerPlatform.class); 11 | public static final ILoadingPlatform LOADING = load(ILoadingPlatform.class); 12 | 13 | public static T load(Class clazz) { 14 | final T loadedService = ServiceLoader.load(clazz) 15 | .findFirst() 16 | .orElseThrow( 17 | () -> new NullPointerException("Failed to load service for " + clazz.getName())); 18 | ElytraSlotConstants.LOG.debug("Loaded {} for service {}", loadedService, clazz); 19 | return loadedService; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /common/src/main/java/com/illusivesoulworks/elytraslot/integration/minecraftcapes/MinecraftCapesPlugin.java: -------------------------------------------------------------------------------- 1 | package com.illusivesoulworks.elytraslot.integration.minecraftcapes; 2 | 3 | import net.minecraft.client.renderer.entity.state.PlayerRenderState; 4 | import net.minecraft.resources.ResourceLocation; 5 | import net.minecraftcapes.ExtendedPlayerRenderState; 6 | import net.minecraftcapes.config.MinecraftCapesConfig; 7 | import net.minecraftcapes.player.PlayerHandler; 8 | 9 | public class MinecraftCapesPlugin { 10 | 11 | public static ResourceLocation getCapeLocation(PlayerRenderState playerRenderState) { 12 | 13 | if (playerRenderState instanceof ExtendedPlayerRenderState extState) { 14 | PlayerHandler playerHandler = extState.getMinecraftCapes$playerHandler(); 15 | 16 | if (playerHandler.getCapeLocation() != null && MinecraftCapesConfig.isCapeVisible()) { 17 | return playerHandler.getCapeLocation(); 18 | } 19 | } 20 | return null; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /common/src/main/java/com/illusivesoulworks/elytraslot/platform/services/IClientPlatform.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019-2022 Illusive Soulworks 3 | * 4 | * Elytra Slot is free software: you can redistribute it and/or modify it 5 | * under the terms of the GNU Lesser General Public License as published 6 | * by the Free Software Foundation, either version 3 of the License, or 7 | * any later version. 8 | * 9 | * Elytra Slot is distributed in the hope that it will be useful, but 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with Elytra Slot. If not, see . 16 | */ 17 | 18 | package com.illusivesoulworks.elytraslot.platform.services; 19 | 20 | import net.minecraft.client.renderer.entity.state.HumanoidRenderState; 21 | import net.minecraft.world.item.ItemStack; 22 | 23 | public interface IClientPlatform { 24 | 25 | ItemStack getRenderingElytra(HumanoidRenderState humanoidRenderState); 26 | } 27 | -------------------------------------------------------------------------------- /neoforge/src/main/resources/META-INF/neoforge.mods.toml: -------------------------------------------------------------------------------- 1 | modLoader="javafml" 2 | loaderVersion = "[1,)" 3 | license="${license}" 4 | issueTrackerURL = "${issues_url}" 5 | [[mods]] 6 | modId="${mod_id}" 7 | version="${version}" 8 | displayName="${mod_name}" 9 | displayURL = "${sources_url}" 10 | logoFile="${mod_id}_icon.png" 11 | logoBlur=false 12 | authors="${mod_author}" 13 | description=''' 14 | ${description} 15 | ''' 16 | [[mixins]] 17 | config = "${mod_id}_integrations.mixins.json" 18 | [[dependencies.${mod_id}]] 19 | modId="neoforge" 20 | type="required" 21 | versionRange="${neoforge_version_range}" 22 | ordering="NONE" 23 | side="BOTH" 24 | [[dependencies.${mod_id}]] 25 | modId="minecraft" 26 | type="required" 27 | versionRange = "${minecraft_version_range}" 28 | ordering="NONE" 29 | side="BOTH" 30 | [[dependencies.${mod_id}]] 31 | modId="curios" 32 | type="required" 33 | versionRange="${curios_version_range}" 34 | ordering="NONE" 35 | side="BOTH" 36 | [[dependencies.${mod_id}]] 37 | modId="caelus" 38 | type="required" 39 | versionRange="${caelus_version_range}" 40 | ordering="NONE" 41 | side="BOTH" 42 | -------------------------------------------------------------------------------- /common/src/main/java/com/illusivesoulworks/elytraslot/ElytraSlotConstants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019-2022 Illusive Soulworks 3 | * 4 | * Elytra Slot is free software: you can redistribute it and/or modify it 5 | * under the terms of the GNU Lesser General Public License as published 6 | * by the Free Software Foundation, either version 3 of the License, or 7 | * any later version. 8 | * 9 | * Elytra Slot is distributed in the hope that it will be useful, but 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with Elytra Slot. If not, see . 16 | */ 17 | 18 | package com.illusivesoulworks.elytraslot; 19 | 20 | import org.slf4j.Logger; 21 | import org.slf4j.LoggerFactory; 22 | 23 | public class ElytraSlotConstants { 24 | 25 | public static final String MOD_ID = "elytraslot"; 26 | public static final String MOD_NAME = "Elytra Slot"; 27 | public static final Logger LOG = LoggerFactory.getLogger(MOD_NAME); 28 | } -------------------------------------------------------------------------------- /common/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'multiloader-common' 3 | id 'net.neoforged.moddev' 4 | } 5 | 6 | neoForge { 7 | neoFormVersion = neo_form_version 8 | // Automatically enable AccessTransformers if the file exists 9 | def at = file('src/main/resources/META-INF/accesstransformer.cfg') 10 | if (at.exists()) { 11 | accessTransformers.add(at.absolutePath) 12 | } 13 | parchment { 14 | minecraftVersion = parchment_mc 15 | mappingsVersion = parchment_version 16 | } 17 | } 18 | 19 | dependencies { 20 | compileOnly group: 'org.spongepowered', name: 'mixin', version: '0.8.5' 21 | compileOnly group: 'org.ow2.asm', name: 'asm-tree', version: '9.3' 22 | implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1' 23 | 24 | compileOnly "curse.maven:mccapes-359836:${mccapes_cf_file_id}" 25 | } 26 | 27 | configurations { 28 | commonJava { 29 | canBeResolved = false 30 | canBeConsumed = true 31 | } 32 | commonResources { 33 | canBeResolved = false 34 | canBeConsumed = true 35 | } 36 | } 37 | 38 | artifacts { 39 | commonJava sourceSets.main.java.sourceDirectories.singleFile 40 | commonResources sourceSets.main.resources.sourceDirectories.singleFile 41 | } -------------------------------------------------------------------------------- /common/src/main/java/com/illusivesoulworks/elytraslot/mixin/integration/waveycapes/CustomCapeRenderLayerMixin.java: -------------------------------------------------------------------------------- 1 | package com.illusivesoulworks.elytraslot.mixin.integration.waveycapes; 2 | 3 | import com.illusivesoulworks.elytraslot.platform.ClientServices; 4 | import com.mojang.blaze3d.vertex.PoseStack; 5 | import net.minecraft.client.renderer.MultiBufferSource; 6 | import net.minecraft.client.renderer.entity.state.PlayerRenderState; 7 | import org.spongepowered.asm.mixin.Mixin; 8 | import org.spongepowered.asm.mixin.Pseudo; 9 | import org.spongepowered.asm.mixin.injection.At; 10 | import org.spongepowered.asm.mixin.injection.Inject; 11 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 12 | 13 | @Pseudo 14 | @Mixin(targets = "dev.tr7zw.waveycapes.renderlayers.CustomCapeRenderLayer", remap = false) 15 | public class CustomCapeRenderLayerMixin { 16 | 17 | @Inject(at = @At("HEAD"), method = "render", cancellable = true) 18 | private void elytraslot$render(PoseStack poseStack, MultiBufferSource multiBufferSource, 19 | int packedLight, PlayerRenderState renderState, float yRot, 20 | float xRot, CallbackInfo ci) { 21 | 22 | if (!ClientServices.CLIENT.getRenderingElytra(renderState).isEmpty()) { 23 | ci.cancel(); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/BUG-REPORT.yml: -------------------------------------------------------------------------------- 1 | name: Bug Report 2 | description: Create a report for bugs, crashes, and other unintended behavior 3 | title: "[Bug]: " 4 | labels: [ "type: bug", "status: triage" ] 5 | assignees: 6 | - TheIllusiveC4 7 | body: 8 | - type: markdown 9 | attributes: 10 | value: | 11 | Hello, and thanks for filling out this bug report. Please respond to the following questions to the best of your ability. 12 | - type: dropdown 13 | id: mc-version 14 | attributes: 15 | label: Minecraft Version 16 | description: What version of Minecraft are you running? (Unlisted versions are unsupported) 17 | options: 18 | - 1.21.4 19 | - 1.21.1 20 | - 1.20.1 21 | - 1.19.2 22 | validations: 23 | required: true 24 | - type: textarea 25 | id: what-happened 26 | attributes: 27 | label: What happened? 28 | description: Also tell us, what did you expect to happen and what are the steps to reproduce the issue? 29 | placeholder: A bug happened and I didn't expect that! 30 | validations: 31 | required: true 32 | - type: textarea 33 | id: logs 34 | attributes: 35 | label: Relevant Log Outputs 36 | description: | 37 | Please share any relevant log outputs using a paste site: 38 | » GitHub Gist 39 | » Paste.gg 40 | » Paste.ee 41 | » Pastebin.com 42 | » Hastebin.com -------------------------------------------------------------------------------- /neoforge/src/main/java/com/illusivesoulworks/elytraslot/platform/NeoForgeClientPlatform.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019-2022 Illusive Soulworks 3 | * 4 | * Elytra Slot is free software: you can redistribute it and/or modify it 5 | * under the terms of the GNU Lesser General Public License as published 6 | * by the Free Software Foundation, either version 3 of the License, or 7 | * any later version. 8 | * 9 | * Elytra Slot is distributed in the hope that it will be useful, but 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with Elytra Slot. If not, see . 16 | */ 17 | 18 | package com.illusivesoulworks.elytraslot.platform; 19 | 20 | import com.illusivesoulworks.elytraslot.ElytraSlotNeoForgeClientMod; 21 | import com.illusivesoulworks.elytraslot.platform.services.IClientPlatform; 22 | import net.minecraft.client.renderer.entity.state.HumanoidRenderState; 23 | import net.minecraft.world.item.ItemStack; 24 | 25 | public class NeoForgeClientPlatform implements IClientPlatform { 26 | 27 | @Override 28 | public ItemStack getRenderingElytra(HumanoidRenderState humanoidRenderState) { 29 | return humanoidRenderState.getRenderDataOrDefault(ElytraSlotNeoForgeClientMod.ELYTRA_RENDER, 30 | ItemStack.EMPTY); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Elytra Slot 2 | 3 | Elytra Slot is a mod that uses Curios API/Trinkets API to add an elytra slot to the player inventory and allows the 4 | elytra to be placed into this slot. While the elytra is in this slot, it will grant the same flight capabilities as if 5 | it was in your chestplate slot. This allows the player to gain the benefits of the elytra without sacrificing an armor 6 | slot. 7 | 8 | ### Forge 9 | ![](https://i.imgur.com/gFyQBPW.png) 10 | 11 | ### Fabric 12 | ![](https://i.ibb.co/FVV3gSp/elytratrinket.png) 13 | 14 | ## Downloads 15 | 16 | **CurseForge** 17 | - [![](http://cf.way2muchnoise.eu/short_elytra-slot_downloads%20on%20Forge.svg)](https://www.curseforge.com/minecraft/mc-mods/elytra-slot/files) [![](http://cf.way2muchnoise.eu/versions/elytra-slot.svg)](https://www.curseforge.com/minecraft/mc-mods/elytra-slot) 18 | - [![](http://cf.way2muchnoise.eu/short_elytra-slot-fabric_downloads%20on%20Fabric.svg)](https://www.curseforge.com/minecraft/mc-mods/elytra-slot-fabric/files) [![](http://cf.way2muchnoise.eu/versions/elytra-slot-fabric.svg)](https://www.curseforge.com/minecraft/mc-mods/elytra-slot-fabric) 19 | 20 | ## Support 21 | 22 | Please report all bugs, issues, and feature requests to the 23 | [issue tracker](https://github.com/illusivesoulworks/elytraslot/issues). 24 | 25 | For non-technical support and questions, join the developer's [Discord](https://discord.gg/JWgrdwt). 26 | 27 | ## License 28 | 29 | All source code and assets are licensed under LGPL-3.0-or-later. 30 | 31 | ## Donations 32 | 33 | Donations to the developer can be sent through [Ko-fi](https://ko-fi.com/C0C1NL4O). 34 | 35 | ## Affiliates 36 | 37 | [![BisectHosting](https://i.ibb.co/1G4QPdc/bh-illusive.png)](https://bisecthosting.com/illusive) 38 | -------------------------------------------------------------------------------- /common/src/main/java/com/illusivesoulworks/elytraslot/mixin/IntegrationMixinPlugin.java: -------------------------------------------------------------------------------- 1 | package com.illusivesoulworks.elytraslot.mixin; 2 | 3 | import com.illusivesoulworks.elytraslot.integration.IntegrationConstants; 4 | import com.illusivesoulworks.elytraslot.platform.Services; 5 | import java.util.List; 6 | import java.util.Set; 7 | import org.objectweb.asm.tree.ClassNode; 8 | import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin; 9 | import org.spongepowered.asm.mixin.extensibility.IMixinInfo; 10 | 11 | public class IntegrationMixinPlugin implements IMixinConfigPlugin { 12 | 13 | @Override 14 | public void onLoad(String mixinPackage) { 15 | 16 | } 17 | 18 | @Override 19 | public String getRefMapperConfig() { 20 | return ""; 21 | } 22 | 23 | @Override 24 | public boolean shouldApplyMixin(String targetClassName, String mixinClassName) { 25 | return shouldApplyCompatibilityMixin(mixinClassName, IntegrationConstants.WAVEY_CAPES); 26 | } 27 | 28 | private static boolean shouldApplyCompatibilityMixin(String mixinClassName, String modId) { 29 | 30 | if (mixinClassName.startsWith("com.illusivesoulworks.elytraslot.mixin.integration." + modId)) { 31 | return Services.LOADING.isModLoaded(modId); 32 | } 33 | return true; 34 | } 35 | 36 | @Override 37 | public void acceptTargets(Set myTargets, Set otherTargets) { 38 | 39 | } 40 | 41 | @Override 42 | public List getMixins() { 43 | return List.of(); 44 | } 45 | 46 | @Override 47 | public void preApply(String targetClassName, ClassNode targetClass, String mixinClassName, 48 | IMixinInfo mixinInfo) { 49 | 50 | } 51 | 52 | @Override 53 | public void postApply(String targetClassName, ClassNode targetClass, String mixinClassName, 54 | IMixinInfo mixinInfo) { 55 | 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | repositories { 3 | gradlePluginPortal() 4 | mavenCentral() 5 | exclusiveContent { 6 | forRepository { 7 | maven { 8 | name = 'Fabric' 9 | url = uri("https://maven.fabricmc.net") 10 | } 11 | } 12 | filter { 13 | includeGroup("net.fabricmc") 14 | includeGroup("fabric-loom") 15 | } 16 | } 17 | exclusiveContent { 18 | forRepository { 19 | maven { 20 | name = 'NeoForge' 21 | url = uri("https://maven.neoforged.net/releases") 22 | } 23 | } 24 | filter { 25 | includeGroupAndSubgroups('net.neoforged') 26 | } 27 | } 28 | exclusiveContent { 29 | forRepository { 30 | maven { 31 | name = 'Sponge Snapshots' 32 | url = uri("https://repo.spongepowered.org/repository/maven-public") 33 | } 34 | } 35 | filter { 36 | includeGroupAndSubgroups("org.spongepowered") 37 | includeGroup("net.minecraftforge") 38 | } 39 | } 40 | maven { 41 | name = 'MinecraftForge' 42 | url = 'https://maven.minecraftforge.net/' 43 | } 44 | } 45 | } 46 | 47 | plugins { 48 | id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0' 49 | } 50 | 51 | // This should match the folder name of the project, or else IDEA may complain (see https://youtrack.jetbrains.com/issue/IDEA-317606) 52 | rootProject.name = "${mod_id}" 53 | include("common") 54 | include("fabric") 55 | //include("forge") 56 | include("neoforge") 57 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project 2 | version=10.0.1+1.21.4 3 | group=com.illusivesoulworks.elytraslot 4 | java_version=21 5 | 6 | # Common 7 | minecraft_version=1.21.4 8 | mod_name=Elytra Slot 9 | mod_author=Illusive Soulworks 10 | mod_id=elytraslot 11 | license=LGPL-3.0-or-later 12 | issues_url=https://github.com/illusivesoulworks/elytraslot/issues 13 | sources_url=https://github.com/illusivesoulworks/elytraslot 14 | description=Adds an accessory slot for the elytra, so you can fly and wear chest armor at the same time. 15 | minecraft_version_range=[1.21.4, 1.22) 16 | minecraft_version_range_alt=~1.21.4 17 | 18 | ## This is the version of minecraft that the 'common' project uses, you can find a list of all versions here 19 | ## https://projects.neoforged.net/neoforged/neoform 20 | neo_form_version=1.21.4-20241203.161809 21 | 22 | # The version of ParchmentMC that is used, see https://parchmentmc.org/docs/getting-started#choose-a-version for new versions 23 | parchment_mc=1.21.4 24 | parchment_version=2025.03.23 25 | 26 | # Fabric 27 | fabric_version=0.113.0+1.21.4 28 | fabric_loader_version=0.16.9 29 | 30 | # Fabric Dependencies 31 | trinkets_version=3.10.0 32 | accessories_version=1.2.19-beta+1.21.4 33 | mod_menu_version=13.0.3 34 | 35 | # NeoForge 36 | neoforge_version=21.4.136 37 | neoforge_version_range=[21.4.123,) 38 | 39 | # NeoForge Dependencies 40 | curios_version=10.0.1+1.21.4 41 | curios_version_range=[7.0.0,) 42 | caelus_version=8.0.1+1.21.4 43 | caelus_version_range=[8.0.1,) 44 | mccapes_cf_file_id=5966373 45 | 46 | # CurseForge Options 47 | cf_id=317716 48 | cf_page=https://www.curseforge.com/minecraft/mc-mods/elytra-slot 49 | modrinth_id=mSQF1NpT 50 | modrinth_page=https://modrinth.com/mod/elytra-slot 51 | release_type=release 52 | release_versions=1.21.5,1.21.4 53 | changelog_link=https://github.com/illusivesoulworks/elytraslot/blob/1.21.4/CHANGELOG.md 54 | discord_thumbnail=https://media.forgecdn.net/avatars/209/40/636979175379460863.png 55 | 56 | # Gradle 57 | org.gradle.jvmargs=-Xmx3G 58 | org.gradle.daemon=false 59 | -------------------------------------------------------------------------------- /neoforge/src/main/java/com/illusivesoulworks/elytraslot/common/CurioElytra.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019-2022 Illusive Soulworks 3 | * 4 | * Elytra Slot is free software: you can redistribute it and/or modify it 5 | * under the terms of the GNU Lesser General Public License as published 6 | * by the Free Software Foundation, either version 3 of the License, or 7 | * any later version. 8 | * 9 | * Elytra Slot is distributed in the hope that it will be useful, but 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with Elytra Slot. If not, see . 16 | */ 17 | 18 | package com.illusivesoulworks.elytraslot.common; 19 | 20 | import com.illusivesoulworks.elytraslot.ElytraSlotConstants; 21 | import javax.annotation.Nonnull; 22 | import net.minecraft.resources.ResourceLocation; 23 | import net.minecraft.sounds.SoundEvents; 24 | import net.minecraft.world.entity.EquipmentSlot; 25 | import net.minecraft.world.entity.ai.attributes.AttributeModifier; 26 | import net.minecraft.world.item.ItemStack; 27 | import top.theillusivec4.curios.api.SlotContext; 28 | import top.theillusivec4.curios.api.type.capability.ICurio; 29 | 30 | public class CurioElytra implements ICurio { 31 | 32 | public static final AttributeModifier ELYTRA_CURIO_MODIFIER = new AttributeModifier( 33 | ResourceLocation.fromNamespaceAndPath(ElytraSlotConstants.MOD_ID, "elytra"), 1.0D, 34 | AttributeModifier.Operation.ADD_VALUE); 35 | 36 | private final ItemStack stack; 37 | 38 | public CurioElytra(ItemStack stack) { 39 | this.stack = stack; 40 | } 41 | 42 | @Override 43 | public ItemStack getStack() { 44 | return this.stack; 45 | } 46 | 47 | @Override 48 | public boolean canEquip(SlotContext slotContext) { 49 | return this.stack.getItem() != slotContext.entity().getItemBySlot(EquipmentSlot.CHEST) 50 | .getItem(); 51 | } 52 | 53 | @Nonnull 54 | @Override 55 | public SoundInfo getEquipSound(SlotContext slotContext) { 56 | return new SoundInfo(SoundEvents.ARMOR_EQUIP_ELYTRA.value(), 1.0F, 1.0F); 57 | } 58 | 59 | @Override 60 | public boolean canEquipFromUse(SlotContext slotContext) { 61 | return true; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /fabric/src/main/java/com/illusivesoulworks/elytraslot/platform/FabricClientPlatform.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019-2022 Illusive Soulworks 3 | * 4 | * Elytra Slot is free software: you can redistribute it and/or modify it 5 | * under the terms of the GNU Lesser General Public License as published 6 | * by the Free Software Foundation, either version 3 of the License, or 7 | * any later version. 8 | * 9 | * Elytra Slot is distributed in the hope that it will be useful, but 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with Elytra Slot. If not, see . 16 | */ 17 | 18 | package com.illusivesoulworks.elytraslot.platform; 19 | 20 | import com.illusivesoulworks.elytraslot.platform.services.IClientPlatform; 21 | import io.wispforest.accessories.api.AccessoriesCapability; 22 | import io.wispforest.accessories.api.equip.EquipmentChecking; 23 | import io.wispforest.accessories.api.slot.SlotEntryReference; 24 | import net.minecraft.client.Minecraft; 25 | import net.minecraft.client.multiplayer.ClientLevel; 26 | import net.minecraft.client.renderer.entity.state.HumanoidRenderState; 27 | import net.minecraft.client.renderer.entity.state.PlayerRenderState; 28 | import net.minecraft.core.component.DataComponents; 29 | import net.minecraft.world.entity.Entity; 30 | import net.minecraft.world.entity.LivingEntity; 31 | import net.minecraft.world.item.ItemStack; 32 | 33 | public class FabricClientPlatform implements IClientPlatform { 34 | 35 | @Override 36 | public ItemStack getRenderingElytra(HumanoidRenderState humanoidRenderState) { 37 | 38 | if (humanoidRenderState instanceof PlayerRenderState playerRenderState) { 39 | ClientLevel level = Minecraft.getInstance().level; 40 | 41 | if (level != null) { 42 | Entity entity = level.getEntity(playerRenderState.id); 43 | 44 | if (entity instanceof LivingEntity livingEntity) { 45 | AccessoriesCapability cap = AccessoriesCapability.get(livingEntity); 46 | 47 | if (cap != null) { 48 | SlotEntryReference ref = cap.getFirstEquipped(s -> s.has(DataComponents.GLIDER), 49 | EquipmentChecking.COSMETICALLY_OVERRIDABLE); 50 | 51 | if (ref != null) { 52 | return ref.stack(); 53 | } 54 | } 55 | } 56 | } 57 | } 58 | return ItemStack.EMPTY; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /common/src/main/resources/data/elytraslot/tags/item/elytra.json: -------------------------------------------------------------------------------- 1 | { 2 | "replace": false, 3 | "values": [ 4 | "minecraft:elytra", 5 | { 6 | "id": "silentgear:elytra", 7 | "required": false 8 | }, 9 | { 10 | "id": "mekanism:hdpe_elytra", 11 | "required": false 12 | }, 13 | { 14 | "id": "alexsmobs:tarantula_hawk_elytra", 15 | "required": false 16 | }, 17 | { 18 | "id": "wooden_elytra:wooden_elytra", 19 | "required": false 20 | }, 21 | { 22 | "id": "mna:spectral_elytra", 23 | "required": false 24 | }, 25 | { 26 | "id": "deeperdarker:soul_elytra", 27 | "required": false 28 | }, 29 | { 30 | "id": "enderitemod:enderite_elytra_seperated", 31 | "required": false 32 | }, 33 | { 34 | "id": "netherelytra:netherite_elytra", 35 | "required": false 36 | }, 37 | { 38 | "id": "lilwings:white_fox_elytra", 39 | "required": false 40 | }, 41 | { 42 | "id": "lilwings:swamp_hopper_elytra", 43 | "required": false 44 | }, 45 | { 46 | "id": "lilwings:swallow_tail_elytra", 47 | "required": false 48 | }, 49 | { 50 | "id": "lilwings:shroom_skipper_elytra", 51 | "required": false 52 | }, 53 | { 54 | "id": "lilwings:painted_panther_elytra", 55 | "required": false 56 | }, 57 | { 58 | "id": "lilwings:crystal_puff_elytra", 59 | "required": false 60 | }, 61 | { 62 | "id": "lilwings:cloudy_puff_elytra", 63 | "required": false 64 | }, 65 | { 66 | "id": "lilwings:butter_gold_elytra", 67 | "required": false 68 | }, 69 | { 70 | "id": "lilwings:aponi_elytra", 71 | "required": false 72 | }, 73 | { 74 | "id": "lilwings:red_applefly_elytra", 75 | "required": false 76 | }, 77 | { 78 | "id": "lilwings:gold_applefly_elytra", 79 | "required": false 80 | }, 81 | { 82 | "id": "lilwings:grayling_elytra", 83 | "required": false 84 | }, 85 | { 86 | "id": "lilwings:grayling_flowering_elytra", 87 | "required": false 88 | }, 89 | { 90 | "id": "lilwings:grayling_blooming_elytra", 91 | "required": false 92 | }, 93 | { 94 | "id": "lolenderite:enderite_plated_elytra", 95 | "required": false 96 | }, 97 | { 98 | "id": "mythicmetals:celestium_elytra", 99 | "required": false 100 | }, 101 | { 102 | "id": "crystalmod:black_tourmaline_elytra", 103 | "required": false 104 | }, 105 | { 106 | "id": "crystalmod:sapphire_elytra", 107 | "required": false 108 | } 109 | ] 110 | } 111 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%"=="" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%"=="" set DIRNAME=. 29 | @rem This is normally unused 30 | set APP_BASE_NAME=%~n0 31 | set APP_HOME=%DIRNAME% 32 | 33 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 34 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 35 | 36 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 37 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 38 | 39 | @rem Find java.exe 40 | if defined JAVA_HOME goto findJavaFromJavaHome 41 | 42 | set JAVA_EXE=java.exe 43 | %JAVA_EXE% -version >NUL 2>&1 44 | if %ERRORLEVEL% equ 0 goto execute 45 | 46 | echo. 1>&2 47 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 48 | echo. 1>&2 49 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 50 | echo location of your Java installation. 1>&2 51 | 52 | goto fail 53 | 54 | :findJavaFromJavaHome 55 | set JAVA_HOME=%JAVA_HOME:"=% 56 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 57 | 58 | if exist "%JAVA_EXE%" goto execute 59 | 60 | echo. 1>&2 61 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 62 | echo. 1>&2 63 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 64 | echo location of your Java installation. 1>&2 65 | 66 | goto fail 67 | 68 | :execute 69 | @rem Setup the command line 70 | 71 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 72 | 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if %ERRORLEVEL% equ 0 goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | set EXIT_CODE=%ERRORLEVEL% 85 | if %EXIT_CODE% equ 0 set EXIT_CODE=1 86 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% 87 | exit /b %EXIT_CODE% 88 | 89 | :mainEnd 90 | if "%OS%"=="Windows_NT" endlocal 91 | 92 | :omega 93 | -------------------------------------------------------------------------------- /fabric/src/main/java/com/illusivesoulworks/elytraslot/ElytraSlotFabricClientMod.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019-2022 Illusive Soulworks 3 | * 4 | * Elytra Slot is free software: you can redistribute it and/or modify it 5 | * under the terms of the GNU Lesser General Public License as published 6 | * by the Free Software Foundation, either version 3 of the License, or 7 | * any later version. 8 | * 9 | * Elytra Slot is distributed in the hope that it will be useful, but 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with Elytra Slot. If not, see . 16 | */ 17 | 18 | package com.illusivesoulworks.elytraslot; 19 | 20 | import com.illusivesoulworks.elytraslot.client.ElytraSlotLayer; 21 | import io.wispforest.accessories.api.AccessoriesCapability; 22 | import io.wispforest.accessories.api.equip.EquipmentChecking; 23 | import io.wispforest.accessories.api.slot.SlotEntryReference; 24 | import net.fabricmc.api.ClientModInitializer; 25 | import net.fabricmc.fabric.api.client.rendering.v1.LivingEntityFeatureRenderEvents; 26 | import net.fabricmc.fabric.api.client.rendering.v1.LivingEntityFeatureRendererRegistrationCallback; 27 | import net.minecraft.client.Minecraft; 28 | import net.minecraft.client.model.EntityModel; 29 | import net.minecraft.client.multiplayer.ClientLevel; 30 | import net.minecraft.client.renderer.entity.ArmorStandRenderer; 31 | import net.minecraft.client.renderer.entity.RenderLayerParent; 32 | import net.minecraft.client.renderer.entity.player.PlayerRenderer; 33 | import net.minecraft.client.renderer.entity.state.HumanoidRenderState; 34 | import net.minecraft.core.component.DataComponents; 35 | import net.minecraft.world.entity.Entity; 36 | import net.minecraft.world.entity.LivingEntity; 37 | 38 | public class ElytraSlotFabricClientMod implements ClientModInitializer { 39 | 40 | @Override 41 | public void onInitializeClient() { 42 | LivingEntityFeatureRenderEvents.ALLOW_CAPE_RENDER.register( 43 | playerRenderState -> { 44 | ClientLevel level = Minecraft.getInstance().level; 45 | 46 | if (level != null) { 47 | Entity entity = level.getEntity(playerRenderState.id); 48 | 49 | if (entity instanceof LivingEntity livingEntity) { 50 | AccessoriesCapability cap = AccessoriesCapability.get(livingEntity); 51 | 52 | if (cap != null) { 53 | SlotEntryReference ref = cap.getFirstEquipped(s -> s.has(DataComponents.GLIDER), 54 | EquipmentChecking.COSMETICALLY_OVERRIDABLE); 55 | 56 | return ref == null || ref.stack().isEmpty(); 57 | } 58 | } 59 | } 60 | return true; 61 | }); 62 | LivingEntityFeatureRendererRegistrationCallback.EVENT.register( 63 | (entityType, entityRenderer, registrationHelper, context) -> { 64 | 65 | if (entityRenderer instanceof PlayerRenderer 66 | || entityRenderer instanceof ArmorStandRenderer) { 67 | registrationHelper.register( 68 | new ElytraSlotLayer<>( 69 | (RenderLayerParent>) entityRenderer, 70 | context.getModelSet(), context.getEquipmentRenderer())); 71 | } 72 | }); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /neoforge/build.gradle: -------------------------------------------------------------------------------- 1 | import net.darkhax.curseforgegradle.TaskPublishCurseForge 2 | 3 | plugins { 4 | id 'multiloader-loader' 5 | id 'net.neoforged.moddev' 6 | id 'com.modrinth.minotaur' version '2.+' 7 | id 'net.darkhax.curseforgegradle' version '1.+' 8 | } 9 | 10 | neoForge { 11 | version = neoforge_version 12 | // Automatically enable neoforge AccessTransformers if the file exists 13 | def at = project(':common').file('src/main/resources/META-INF/accesstransformer.cfg') 14 | if (at.exists()) { 15 | accessTransformers.add(at.absolutePath) 16 | } 17 | parchment { 18 | minecraftVersion = parchment_mc 19 | mappingsVersion = parchment_version 20 | } 21 | runs { 22 | configureEach { 23 | systemProperty('neoforge.enabledGameTestNamespaces', mod_id) 24 | ideName = "NeoForge ${it.name.capitalize()} (${project.path})" // Unify the run config names with fabric 25 | } 26 | client { 27 | client() 28 | } 29 | server { 30 | server() 31 | } 32 | } 33 | mods { 34 | "${mod_id}" { 35 | sourceSet sourceSets.main 36 | } 37 | } 38 | } 39 | 40 | sourceSets.main.resources { srcDir 'src/generated/resources' } 41 | 42 | dependencies { 43 | annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' 44 | 45 | implementation "top.theillusivec4.curios:curios-neoforge:${curios_version}" 46 | 47 | runtimeOnly "com.illusivesoulworks.caelus:caelus-neoforge:${caelus_version}" 48 | compileOnly "com.illusivesoulworks.caelus:caelus-neoforge:${caelus_version}:api" 49 | 50 | compileOnly "curse.maven:mccapes-359836:${mccapes_cf_file_id}" 51 | } 52 | 53 | task publishCurseForge(type: TaskPublishCurseForge) { 54 | apiToken = "${System.getenv('CURSEFORGE_KEY')}" 55 | def projectId = "${cf_id}".toString() 56 | def mainFile = upload(projectId, file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar")) 57 | mainFile.changelogType = 'markdown' 58 | mainFile.changelog = file('../CHANGELOG_LATEST.md') 59 | mainFile.releaseType = "${release_type}" 60 | "${release_versions}".split(',').each { 61 | mainFile.addGameVersion("${it}") 62 | } 63 | mainFile.addModLoader("NeoForge") 64 | mainFile.addRequirement("curios") 65 | mainFile.addRequirement("caelus") 66 | mainFile.withAdditionalFile(sourcesJar) 67 | 68 | doLast { 69 | 70 | if (project.hasProperty('cf_page') && mainFile.curseFileId != null) { 71 | project.ext.curse_link = "${cf_page}/files/${mainFile.curseFileId}" 72 | } 73 | } 74 | } 75 | 76 | modrinth { 77 | token = "${System.getenv('MODRINTH_KEY')}" ?: "" 78 | projectId = "${modrinth_id}" 79 | versionName = getArchivesBaseName() + "-" + getVersion() 80 | versionType = "${release_type}" 81 | changelog = file('../CHANGELOG_LATEST.md').text 82 | uploadFile = file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar") 83 | additionalFiles = [sourcesJar] 84 | gameVersions = "${release_versions}".split(",") as List 85 | loaders = ["neoforge"] 86 | dependencies { 87 | required.project 'curios' 88 | required.project 'caelus' 89 | } 90 | } 91 | 92 | tasks.modrinth.doLast { 93 | 94 | if (project.hasProperty('modrinth_page') && tasks.modrinth.newVersion != null) { 95 | project.ext.modrinth_link = "${modrinth_page}/version/${tasks.modrinth.newVersion.id}" 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /fabric/src/main/java/com/illusivesoulworks/elytraslot/ElytraSlotFabricMod.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019-2022 Illusive Soulworks 3 | * 4 | * Elytra Slot is free software: you can redistribute it and/or modify it 5 | * under the terms of the GNU Lesser General Public License as published 6 | * by the Free Software Foundation, either version 3 of the License, or 7 | * any later version. 8 | * 9 | * Elytra Slot is distributed in the hope that it will be useful, but 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with Elytra Slot. If not, see . 16 | */ 17 | 18 | package com.illusivesoulworks.elytraslot; 19 | 20 | import com.illusivesoulworks.elytraslot.common.AccessoryElytra; 21 | import io.wispforest.accessories.api.AccessoriesCapability; 22 | import io.wispforest.accessories.api.AccessoryRegistry; 23 | import io.wispforest.accessories.api.slot.SlotEntryReference; 24 | import io.wispforest.accessories.api.slot.SlotPredicateRegistry; 25 | import java.util.List; 26 | import net.fabricmc.api.ModInitializer; 27 | import net.fabricmc.fabric.api.entity.event.v1.EntityElytraEvents; 28 | import net.fabricmc.fabric.api.event.registry.RegistryEntryAddedCallback; 29 | import net.fabricmc.fabric.api.util.TriState; 30 | import net.minecraft.Util; 31 | import net.minecraft.core.component.DataComponents; 32 | import net.minecraft.core.registries.BuiltInRegistries; 33 | import net.minecraft.resources.ResourceLocation; 34 | import net.minecraft.server.level.ServerLevel; 35 | import net.minecraft.server.level.ServerPlayer; 36 | import net.minecraft.world.item.Item; 37 | import net.minecraft.world.item.ItemStack; 38 | 39 | public class ElytraSlotFabricMod implements ModInitializer { 40 | 41 | @Override 42 | public void onInitialize() { 43 | EntityElytraEvents.CUSTOM.register((entity, tickElytra) -> { 44 | AccessoriesCapability cap = AccessoriesCapability.get(entity); 45 | 46 | if (cap != null && entity.level() instanceof ServerLevel serverLevel) { 47 | List entryReferences = 48 | cap.getEquipped(s -> s.has(DataComponents.GLIDER)); 49 | 50 | if (!entryReferences.isEmpty()) { 51 | SlotEntryReference ref = Util.getRandom(entryReferences, entity.getRandom()); 52 | ItemStack stack = ref.stack(); 53 | 54 | if (!stack.isEmpty()) { 55 | 56 | if (tickElytra) { 57 | stack.hurtAndBreak(1, serverLevel, 58 | entity instanceof ServerPlayer serverPlayer ? serverPlayer : null, 59 | item -> ref.reference().breakStack()); 60 | } 61 | return true; 62 | } 63 | } 64 | } 65 | return false; 66 | }); 67 | SlotPredicateRegistry.register( 68 | ResourceLocation.fromNamespaceAndPath(ElytraSlotConstants.MOD_ID, "glider"), 69 | (level, slotType, index, stack) -> { 70 | 71 | if (stack.has(DataComponents.GLIDER)) { 72 | return TriState.TRUE; 73 | } 74 | return TriState.DEFAULT; 75 | }); 76 | RegistryEntryAddedCallback.event(BuiltInRegistries.ITEM) 77 | .register((i, resourceLocation, item) -> { 78 | 79 | if (item.getDefaultInstance().has(DataComponents.GLIDER)) { 80 | AccessoryRegistry.register(item, new AccessoryElytra()); 81 | } 82 | }); 83 | for (Item item : BuiltInRegistries.ITEM) { 84 | 85 | if (item.getDefaultInstance().has(DataComponents.GLIDER)) { 86 | AccessoryRegistry.register(item, new AccessoryElytra()); 87 | } 88 | } 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /fabric/build.gradle: -------------------------------------------------------------------------------- 1 | import net.darkhax.curseforgegradle.TaskPublishCurseForge 2 | 3 | plugins { 4 | id 'multiloader-loader' 5 | id 'fabric-loom' 6 | id 'com.modrinth.minotaur' version '2.+' 7 | id 'net.darkhax.curseforgegradle' version '1.+' 8 | } 9 | 10 | repositories { 11 | maven { url 'https://maven.wispforest.io/releases' } 12 | maven { url 'https://maven.su5ed.dev/releases' } 13 | maven { url 'https://maven.fabricmc.net' } 14 | maven { url 'https://maven.shedaniel.me/' } 15 | } 16 | 17 | dependencies { 18 | minecraft "com.mojang:minecraft:${minecraft_version}" 19 | mappings(loom.layered { 20 | officialMojangMappings() 21 | parchment("org.parchmentmc.data:parchment-${parchment_mc}:${parchment_version}@zip") 22 | }) 23 | modImplementation "net.fabricmc:fabric-loader:${fabric_loader_version}" 24 | modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_version}" 25 | modImplementation("io.wispforest:accessories-fabric:${accessories_version}") 26 | // modImplementation "dev.emi:trinkets:${trinkets_version}" 27 | 28 | modRuntimeOnly("com.terraformersmc:modmenu:${mod_menu_version}") { 29 | transitive = false 30 | } 31 | implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1' 32 | 33 | modCompileOnly "curse.maven:mccapes-359836:${mccapes_cf_file_id}" 34 | } 35 | 36 | loom { 37 | def aw = project(":common").file("src/main/resources/${mod_id}.accesswidener") 38 | if (aw.exists()) { 39 | accessWidenerPath.set(aw) 40 | } 41 | mixin { 42 | defaultRefmapName.set("${mod_id}.refmap.json") 43 | } 44 | runs { 45 | client { 46 | client() 47 | setConfigName("Fabric Client") 48 | ideConfigGenerated(true) 49 | runDir("runs/client") 50 | } 51 | server { 52 | server() 53 | setConfigName("Fabric Server") 54 | ideConfigGenerated(true) 55 | runDir("runs/server") 56 | } 57 | } 58 | } 59 | 60 | tasks.register('publishCurseForge', TaskPublishCurseForge) { 61 | apiToken = "${System.getenv('CURSEFORGE_KEY')}" 62 | def projectId = "${cf_id}".toString() 63 | def mainFile = upload(projectId, file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar")) 64 | mainFile.changelogType = 'markdown' 65 | mainFile.changelog = file('../CHANGELOG_LATEST.md') 66 | mainFile.releaseType = "${release_type}" 67 | "${release_versions}".split(',').each { 68 | mainFile.addGameVersion("${it}") 69 | } 70 | mainFile.addRequirement("fabric-api") 71 | mainFile.addRequirement("accessories") 72 | mainFile.withAdditionalFile(sourcesJar) 73 | 74 | doLast { 75 | 76 | if (project.hasProperty('cf_page') && mainFile.curseFileId != null) { 77 | project.ext.curse_link = "${cf_page}/files/${mainFile.curseFileId}" 78 | } 79 | } 80 | } 81 | 82 | modrinth { 83 | token = "${System.getenv('MODRINTH_KEY')}" ?: "" 84 | projectId = "${modrinth_id}" 85 | versionName = getArchivesBaseName() + "-" + getVersion() 86 | versionType = "${release_type}" 87 | changelog = file('../CHANGELOG_LATEST.md').text 88 | uploadFile = file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar") 89 | additionalFiles = [sourcesJar] 90 | gameVersions = "${release_versions}".split(",") as List 91 | dependencies { 92 | required.project 'fabric-api' 93 | required.project 'accessories' 94 | } 95 | } 96 | 97 | tasks.modrinth.doLast { 98 | 99 | if (project.hasProperty('modrinth_page') && tasks.modrinth.newVersion != null) { 100 | project.ext.modrinth_link = "${modrinth_page}/version/${tasks.modrinth.newVersion.id}" 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /neoforge/src/main/java/com/illusivesoulworks/elytraslot/ElytraSlotNeoForgeMod.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019-2022 Illusive Soulworks 3 | * 4 | * Elytra Slot is free software: you can redistribute it and/or modify it 5 | * under the terms of the GNU Lesser General Public License as published 6 | * by the Free Software Foundation, either version 3 of the License, or 7 | * any later version. 8 | * 9 | * Elytra Slot is distributed in the hope that it will be useful, but 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with Elytra Slot. If not, see . 16 | */ 17 | 18 | package com.illusivesoulworks.elytraslot; 19 | 20 | import com.illusivesoulworks.caelus.api.CaelusApi; 21 | import com.illusivesoulworks.caelus.api.GlidingDamageEvent; 22 | import com.illusivesoulworks.elytraslot.common.CurioElytra; 23 | import net.minecraft.core.component.DataComponents; 24 | import net.minecraft.core.registries.BuiltInRegistries; 25 | import net.minecraft.resources.ResourceLocation; 26 | import net.minecraft.world.entity.ai.attributes.AttributeInstance; 27 | import net.minecraft.world.entity.player.Player; 28 | import net.minecraft.world.item.Item; 29 | import net.neoforged.bus.api.IEventBus; 30 | import net.neoforged.fml.common.Mod; 31 | import net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent; 32 | import net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent; 33 | import net.neoforged.neoforge.common.NeoForge; 34 | import net.neoforged.neoforge.event.tick.PlayerTickEvent; 35 | import top.theillusivec4.curios.api.CuriosApi; 36 | import top.theillusivec4.curios.api.CuriosCapability; 37 | import top.theillusivec4.curios.api.CuriosSlotTypes; 38 | import top.theillusivec4.curios.api.SlotResult; 39 | import top.theillusivec4.curios.api.type.capability.ICuriosItemHandler; 40 | 41 | @Mod(ElytraSlotConstants.MOD_ID) 42 | public class ElytraSlotNeoForgeMod { 43 | 44 | public ElytraSlotNeoForgeMod(IEventBus eventBus) { 45 | eventBus.addListener(this::setup); 46 | eventBus.addListener(this::registerCapabilities); 47 | NeoForge.EVENT_BUS.addListener(this::glidingDamage); 48 | } 49 | 50 | private void setup(final FMLCommonSetupEvent evt) { 51 | NeoForge.EVENT_BUS.addListener(this::playerTick); 52 | CuriosSlotTypes.registerPredicate( 53 | ResourceLocation.fromNamespaceAndPath(ElytraSlotConstants.MOD_ID, "glider"), 54 | (slotContext, stack) -> stack.has(DataComponents.GLIDER)); 55 | } 56 | 57 | private void glidingDamage(final GlidingDamageEvent evt) { 58 | ICuriosItemHandler curios = CuriosApi.getCuriosInventoryOrNull(evt.getEntity()); 59 | 60 | if (curios != null) { 61 | 62 | for (SlotResult curio : curios.findCurios(stack -> stack.has(DataComponents.GLIDER))) { 63 | evt.addGlider(curio.stack(), 64 | item -> CuriosApi.broadcastCurioBreakEvent(curio.slotContext())); 65 | } 66 | } 67 | } 68 | 69 | private void playerTick(final PlayerTickEvent.Post evt) { 70 | Player player = evt.getEntity(); 71 | AttributeInstance attributeInstance = 72 | player.getAttribute(CaelusApi.getInstance().getFallFlyingAttribute()); 73 | 74 | if (attributeInstance != null) { 75 | attributeInstance.removeModifier(CurioElytra.ELYTRA_CURIO_MODIFIER.id()); 76 | 77 | if (!attributeInstance.hasModifier(CurioElytra.ELYTRA_CURIO_MODIFIER.id()) && 78 | CuriosApi.getCuriosInventory(player) 79 | .map(curios -> curios.isEquipped(stack -> stack.has(DataComponents.GLIDER))) 80 | .orElse(false)) { 81 | attributeInstance.addTransientModifier(CurioElytra.ELYTRA_CURIO_MODIFIER); 82 | } 83 | } 84 | } 85 | 86 | private void registerCapabilities(final RegisterCapabilitiesEvent evt) { 87 | 88 | for (Item item : BuiltInRegistries.ITEM) { 89 | 90 | if (item.getDefaultInstance().has(DataComponents.GLIDER)) { 91 | evt.registerItem(CuriosCapability.ITEM, (stack, context) -> new CurioElytra(stack), item); 92 | } 93 | } 94 | } 95 | } -------------------------------------------------------------------------------- /common/src/main/java/com/illusivesoulworks/elytraslot/client/ElytraSlotLayer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019-2022 Illusive Soulworks 3 | * 4 | * Elytra Slot is free software: you can redistribute it and/or modify it 5 | * under the terms of the GNU Lesser General Public License as published 6 | * by the Free Software Foundation, either version 3 of the License, or 7 | * any later version. 8 | * 9 | * Elytra Slot is distributed in the hope that it will be useful, but 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with Elytra Slot. If not, see . 16 | */ 17 | 18 | package com.illusivesoulworks.elytraslot.client; 19 | 20 | import com.illusivesoulworks.elytraslot.integration.IntegrationConstants; 21 | import com.illusivesoulworks.elytraslot.integration.minecraftcapes.MinecraftCapesPlugin; 22 | import com.illusivesoulworks.elytraslot.platform.ClientServices; 23 | import com.illusivesoulworks.elytraslot.platform.Services; 24 | import com.mojang.blaze3d.vertex.PoseStack; 25 | import javax.annotation.Nonnull; 26 | import javax.annotation.Nullable; 27 | import net.minecraft.client.model.ElytraModel; 28 | import net.minecraft.client.model.EntityModel; 29 | import net.minecraft.client.model.geom.EntityModelSet; 30 | import net.minecraft.client.model.geom.ModelLayers; 31 | import net.minecraft.client.renderer.MultiBufferSource; 32 | import net.minecraft.client.renderer.entity.RenderLayerParent; 33 | import net.minecraft.client.renderer.entity.layers.EquipmentLayerRenderer; 34 | import net.minecraft.client.renderer.entity.layers.RenderLayer; 35 | import net.minecraft.client.renderer.entity.state.HumanoidRenderState; 36 | import net.minecraft.client.renderer.entity.state.PlayerRenderState; 37 | import net.minecraft.client.resources.PlayerSkin; 38 | import net.minecraft.client.resources.model.EquipmentClientInfo; 39 | import net.minecraft.core.component.DataComponents; 40 | import net.minecraft.resources.ResourceLocation; 41 | import net.minecraft.world.item.ItemStack; 42 | import net.minecraft.world.item.Items; 43 | import net.minecraft.world.item.equipment.Equippable; 44 | 45 | public class ElytraSlotLayer> 46 | extends RenderLayer { 47 | 48 | private final ElytraModel elytraModel; 49 | private final ElytraModel elytraBabyModel; 50 | private final EquipmentLayerRenderer equipmentRenderer; 51 | 52 | public ElytraSlotLayer(RenderLayerParent renderer, EntityModelSet models, 53 | EquipmentLayerRenderer equipmentRenderer) { 54 | super(renderer); 55 | this.elytraModel = new ElytraModel(models.bakeLayer(ModelLayers.ELYTRA)); 56 | this.elytraBabyModel = new ElytraModel(models.bakeLayer(ModelLayers.ELYTRA_BABY)); 57 | this.equipmentRenderer = equipmentRenderer; 58 | } 59 | 60 | public void render(@Nonnull PoseStack poseStack, @Nonnull MultiBufferSource bufferSource, 61 | int packedLight, @Nonnull S renderState, float p_371865_, float p_371528_) { 62 | ItemStack elytra = ClientServices.CLIENT.getRenderingElytra(renderState); 63 | 64 | if (!elytra.isEmpty() && renderState.chestEquipment.getItem() != Items.ELYTRA) { 65 | Equippable equippable = elytra.get(DataComponents.EQUIPPABLE); 66 | 67 | if (equippable != null && equippable.assetId().isPresent()) { 68 | ResourceLocation resourcelocation = getPlayerElytraTexture(renderState); 69 | ElytraModel elytramodel = renderState.isBaby ? this.elytraBabyModel : this.elytraModel; 70 | poseStack.pushPose(); 71 | poseStack.translate(0.0F, 0.0F, 0.125F); 72 | elytramodel.setupAnim(renderState); 73 | this.equipmentRenderer 74 | .renderLayers( 75 | EquipmentClientInfo.LayerType.WINGS, equippable.assetId().get(), elytramodel, 76 | elytra, poseStack, bufferSource, packedLight, resourcelocation 77 | ); 78 | poseStack.popPose(); 79 | } 80 | } 81 | } 82 | 83 | @Nullable 84 | private static ResourceLocation getPlayerElytraTexture(HumanoidRenderState renderState) { 85 | 86 | if (renderState instanceof PlayerRenderState playerrenderstate) { 87 | PlayerSkin playerskin = playerrenderstate.skin; 88 | 89 | if (playerskin.elytraTexture() != null) { 90 | return playerskin.elytraTexture(); 91 | } 92 | 93 | if (Services.SERVER.isModLoaded(IntegrationConstants.MINECRAFT_CAPES)) { 94 | ResourceLocation resourceLocation = MinecraftCapesPlugin.getCapeLocation(playerrenderstate); 95 | 96 | if (resourceLocation != null) { 97 | return resourceLocation; 98 | } 99 | } 100 | 101 | if (playerskin.capeTexture() != null && playerrenderstate.showCape) { 102 | return playerskin.capeTexture(); 103 | } 104 | } 105 | return null; 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /neoforge/src/main/java/com/illusivesoulworks/elytraslot/ElytraSlotNeoForgeClientMod.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019-2022 Illusive Soulworks 3 | * 4 | * Elytra Slot is free software: you can redistribute it and/or modify it 5 | * under the terms of the GNU Lesser General Public License as published 6 | * by the Free Software Foundation, either version 3 of the License, or 7 | * any later version. 8 | * 9 | * Elytra Slot is distributed in the hope that it will be useful, but 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with Elytra Slot. If not, see . 16 | */ 17 | 18 | package com.illusivesoulworks.elytraslot; 19 | 20 | import com.google.common.reflect.TypeToken; 21 | import com.illusivesoulworks.caelus.api.RenderCapeEvent; 22 | import com.illusivesoulworks.elytraslot.client.ElytraSlotLayer; 23 | import java.util.Map; 24 | import net.minecraft.client.renderer.entity.EntityRenderer; 25 | import net.minecraft.client.renderer.entity.LivingEntityRenderer; 26 | import net.minecraft.client.renderer.entity.state.LivingEntityRenderState; 27 | import net.minecraft.client.resources.PlayerSkin; 28 | import net.minecraft.core.component.DataComponents; 29 | import net.minecraft.resources.ResourceLocation; 30 | import net.minecraft.util.context.ContextKey; 31 | import net.minecraft.world.entity.EntityType; 32 | import net.minecraft.world.entity.LivingEntity; 33 | import net.minecraft.world.entity.player.Player; 34 | import net.minecraft.world.item.ItemStack; 35 | import net.neoforged.api.distmarker.Dist; 36 | import net.neoforged.bus.api.IEventBus; 37 | import net.neoforged.fml.common.Mod; 38 | import net.neoforged.neoforge.client.event.EntityRenderersEvent; 39 | import net.neoforged.neoforge.client.renderstate.RegisterRenderStateModifiersEvent; 40 | import net.neoforged.neoforge.common.NeoForge; 41 | import top.theillusivec4.curios.api.CuriosApi; 42 | import top.theillusivec4.curios.api.type.capability.ICuriosItemHandler; 43 | import top.theillusivec4.curios.api.type.inventory.ICurioStacksHandler; 44 | import top.theillusivec4.curios.api.type.inventory.IDynamicStackHandler; 45 | 46 | @Mod(value = ElytraSlotConstants.MOD_ID, dist = Dist.CLIENT) 47 | public class ElytraSlotNeoForgeClientMod { 48 | 49 | public static final ContextKey ELYTRA_RENDER = new ContextKey<>( 50 | ResourceLocation.fromNamespaceAndPath(ElytraSlotConstants.MOD_ID, "elytra_render")); 51 | 52 | public ElytraSlotNeoForgeClientMod(final IEventBus eventBus) { 53 | eventBus.addListener(this::addLayers); 54 | eventBus.addListener(this::elytraRenderState); 55 | NeoForge.EVENT_BUS.addListener(this::renderCape); 56 | } 57 | 58 | private void addLayers(final EntityRenderersEvent.AddLayers evt) { 59 | addEntityLayer(evt, EntityType.ARMOR_STAND); 60 | 61 | for (PlayerSkin.Model skin : evt.getSkins()) { 62 | addPlayerLayer(evt, skin); 63 | } 64 | } 65 | 66 | @SuppressWarnings({"rawtypes", "unchecked"}) 67 | private static void addPlayerLayer(EntityRenderersEvent.AddLayers evt, PlayerSkin.Model skin) { 68 | EntityRenderer renderer = evt.getSkin(skin); 69 | 70 | if (renderer instanceof LivingEntityRenderer livingRenderer) { 71 | livingRenderer.addLayer(new ElytraSlotLayer(livingRenderer, evt.getEntityModels(), 72 | evt.getContext().getEquipmentRenderer())); 73 | } 74 | } 75 | 76 | private static > void addEntityLayer( 77 | EntityRenderersEvent.AddLayers evt, EntityType entityType) { 78 | R renderer = evt.getRenderer(entityType); 79 | 80 | if (renderer != null) { 81 | renderer.addLayer(new ElytraSlotLayer(renderer, evt.getEntityModels(), evt.getContext() 82 | .getEquipmentRenderer())); 83 | } 84 | } 85 | 86 | private void elytraRenderState(final RegisterRenderStateModifiersEvent evt) { 87 | evt.registerEntityModifier( 88 | new TypeToken>() { 89 | }, (livingEntity, renderState) -> { 90 | ICuriosItemHandler itemHandler = CuriosApi.getCuriosInventoryOrNull(livingEntity); 91 | 92 | if (itemHandler != null) { 93 | 94 | for (Map.Entry entry : itemHandler.getCurios() 95 | .entrySet()) { 96 | IDynamicStackHandler stacks = entry.getValue().getStacks(); 97 | 98 | for (int i = 0; i < stacks.getSlots(); i++) { 99 | ItemStack stack = stacks.getStackInSlot(i); 100 | 101 | if (!stack.isEmpty() && stack.has(DataComponents.GLIDER) && entry.getValue() 102 | .getRenders().get(i)) { 103 | renderState.setRenderData(ELYTRA_RENDER, stack.copy()); 104 | return; 105 | } 106 | } 107 | } 108 | renderState.setRenderData(ELYTRA_RENDER, ItemStack.EMPTY); 109 | } 110 | }); 111 | } 112 | 113 | private void renderCape(final RenderCapeEvent evt) { 114 | ItemStack stack = 115 | evt.getPlayerRenderState().getRenderDataOrDefault(ELYTRA_RENDER, ItemStack.EMPTY); 116 | 117 | if (!stack.isEmpty()) { 118 | evt.setCanceled(true); 119 | } 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /COPYING.LESSER: -------------------------------------------------------------------------------- 1 | GNU LESSER GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | 9 | This version of the GNU Lesser General Public License incorporates 10 | the terms and conditions of version 3 of the GNU General Public 11 | License, supplemented by the additional permissions listed below. 12 | 13 | 0. Additional Definitions. 14 | 15 | As used herein, "this License" refers to version 3 of the GNU Lesser 16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU 17 | General Public License. 18 | 19 | "The Library" refers to a covered work governed by this License, 20 | other than an Application or a Combined Work as defined below. 21 | 22 | An "Application" is any work that makes use of an interface provided 23 | by the Library, but which is not otherwise based on the Library. 24 | Defining a subclass of a class defined by the Library is deemed a mode 25 | of using an interface provided by the Library. 26 | 27 | A "Combined Work" is a work produced by combining or linking an 28 | Application with the Library. The particular version of the Library 29 | with which the Combined Work was made is also called the "Linked 30 | Version". 31 | 32 | The "Minimal Corresponding Source" for a Combined Work means the 33 | Corresponding Source for the Combined Work, excluding any source code 34 | for portions of the Combined Work that, considered in isolation, are 35 | based on the Application, and not on the Linked Version. 36 | 37 | The "Corresponding Application Code" for a Combined Work means the 38 | object code and/or source code for the Application, including any data 39 | and utility programs needed for reproducing the Combined Work from the 40 | Application, but excluding the System Libraries of the Combined Work. 41 | 42 | 1. Exception to Section 3 of the GNU GPL. 43 | 44 | You may convey a covered work under sections 3 and 4 of this License 45 | without being bound by section 3 of the GNU GPL. 46 | 47 | 2. Conveying Modified Versions. 48 | 49 | If you modify a copy of the Library, and, in your modifications, a 50 | facility refers to a function or data to be supplied by an Application 51 | that uses the facility (other than as an argument passed when the 52 | facility is invoked), then you may convey a copy of the modified 53 | version: 54 | 55 | a) under this License, provided that you make a good faith effort to 56 | ensure that, in the event an Application does not supply the 57 | function or data, the facility still operates, and performs 58 | whatever part of its purpose remains meaningful, or 59 | 60 | b) under the GNU GPL, with none of the additional permissions of 61 | this License applicable to that copy. 62 | 63 | 3. Object Code Incorporating Material from Library Header Files. 64 | 65 | The object code form of an Application may incorporate material from 66 | a header file that is part of the Library. You may convey such object 67 | code under terms of your choice, provided that, if the incorporated 68 | material is not limited to numerical parameters, data structure 69 | layouts and accessors, or small macros, inline functions and templates 70 | (ten or fewer lines in length), you do both of the following: 71 | 72 | a) Give prominent notice with each copy of the object code that the 73 | Library is used in it and that the Library and its use are 74 | covered by this License. 75 | 76 | b) Accompany the object code with a copy of the GNU GPL and this license 77 | document. 78 | 79 | 4. Combined Works. 80 | 81 | You may convey a Combined Work under terms of your choice that, 82 | taken together, effectively do not restrict modification of the 83 | portions of the Library contained in the Combined Work and reverse 84 | engineering for debugging such modifications, if you also do each of 85 | the following: 86 | 87 | a) Give prominent notice with each copy of the Combined Work that 88 | the Library is used in it and that the Library and its use are 89 | covered by this License. 90 | 91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license 92 | document. 93 | 94 | c) For a Combined Work that displays copyright notices during 95 | execution, include the copyright notice for the Library among 96 | these notices, as well as a reference directing the user to the 97 | copies of the GNU GPL and this license document. 98 | 99 | d) Do one of the following: 100 | 101 | 0) Convey the Minimal Corresponding Source under the terms of this 102 | License, and the Corresponding Application Code in a form 103 | suitable for, and under terms that permit, the user to 104 | recombine or relink the Application with a modified version of 105 | the Linked Version to produce a modified Combined Work, in the 106 | manner specified by section 6 of the GNU GPL for conveying 107 | Corresponding Source. 108 | 109 | 1) Use a suitable shared library mechanism for linking with the 110 | Library. A suitable mechanism is one that (a) uses at run time 111 | a copy of the Library already present on the user's computer 112 | system, and (b) will operate properly with a modified version 113 | of the Library that is interface-compatible with the Linked 114 | Version. 115 | 116 | e) Provide Installation Information, but only if you would otherwise 117 | be required to provide such information under section 6 of the 118 | GNU GPL, and only to the extent that such information is 119 | necessary to install and execute a modified version of the 120 | Combined Work produced by recombining or relinking the 121 | Application with a modified version of the Linked Version. (If 122 | you use option 4d0, the Installation Information must accompany 123 | the Minimal Corresponding Source and Corresponding Application 124 | Code. If you use option 4d1, you must provide the Installation 125 | Information in the manner specified by section 6 of the GNU GPL 126 | for conveying Corresponding Source.) 127 | 128 | 5. Combined Libraries. 129 | 130 | You may place library facilities that are a work based on the 131 | Library side by side in a single library together with other library 132 | facilities that are not Applications and are not covered by this 133 | License, and convey such a combined library under terms of your 134 | choice, if you do both of the following: 135 | 136 | a) Accompany the combined library with a copy of the same work based 137 | on the Library, uncombined with any other library facilities, 138 | conveyed under the terms of this License. 139 | 140 | b) Give prominent notice with the combined library that part of it 141 | is a work based on the Library, and explaining where to find the 142 | accompanying uncombined form of the same work. 143 | 144 | 6. Revised Versions of the GNU Lesser General Public License. 145 | 146 | The Free Software Foundation may publish revised and/or new versions 147 | of the GNU Lesser General Public License from time to time. Such new 148 | versions will be similar in spirit to the present version, but may 149 | differ in detail to address new problems or concerns. 150 | 151 | Each version is given a distinguishing version number. If the 152 | Library as you received it specifies that a certain numbered version 153 | of the GNU Lesser General Public License "or any later version" 154 | applies to it, you have the option of following the terms and 155 | conditions either of that published version or of any later version 156 | published by the Free Software Foundation. If the Library as you 157 | received it does not specify a version number of the GNU Lesser 158 | General Public License, you may choose any version of the GNU Lesser 159 | General Public License ever published by the Free Software Foundation. 160 | 161 | If the Library as you received it specifies that a proxy can decide 162 | whether future versions of the GNU Lesser General Public License shall 163 | apply, that proxy's public statement of acceptance of any version is 164 | permanent authorization for you to choose that version for the 165 | Library. 166 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | All notable changes to this project will be documented in this file. 3 | 4 | The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). 5 | Prior to version 6.0.0, this project used MCVERSION-MAJORMOD.MAJORAPI.MINOR.PATCH. 6 | 7 | ## [10.0.1+1.21.4] - 2025.07.23 8 | ### Changed 9 | - Updated Caelus API requirement to 8.0.1 to fix an issue with helmets being damaged while gliding with an elytra 10 | in a curio slot 11 | 12 | ## [10.0.0+1.21.4] - 2025.06.20 13 | ### Added 14 | - Native compatibility with all items that use the `minecraft:glider` data component 15 | ### Changed 16 | - Updated to Minecraft 1.21.4 17 | 18 | ## [9.0.2+1.21.1] - 2024.10.02 19 | ### Fixed 20 | - Fixed crash with Deeper and Darker integration [#136](https://github.com/illusivesoulworks/elytraslot/issues/136) 21 | 22 | ## [9.0.1+1.21.1] - 2024.09.30 23 | ### Changed 24 | - Updated to Minecraft 1.21.1 25 | ### Fixed 26 | - Fixed Deeper Darker Soul Elytra boosting [#132](https://github.com/illusivesoulworks/elytraslot/issues/132) 27 | - Fixed crash with newer versions of MixinSquared [#135](https://github.com/illusivesoulworks/elytraslot/issues/135) 28 | - Fixed potential ConcurrentModificationException upon joining a world [#130](https://github.com/illusivesoulworks/elytraslot/issues/130) 29 | 30 | ## [9.0.0+1.21] - 2024.07.17 31 | ### Changed 32 | - Updated to Minecraft 1.21 33 | 34 | ## [8.0.1+1.20.6] - 2024.07.16 35 | ### Fixed 36 | - [Fabric] Fixed vanilla elytra not consuming durability while in Trinkets slots [#119](https://github.com/illusivesoulworks/elytraslot/issues/119) 37 | 38 | ## [8.0.0+1.20.6] - 2024.06.12 39 | ### Changed 40 | - Updated to Minecraft 1.20.6 41 | 42 | ## [7.0.0+1.20.4] - 2024.06.12 43 | ### Changed 44 | - Updated to Minecraft 1.20.4 45 | 46 | ## [6.4.0+1.20.1] - 2024.06.12 47 | ### Added 48 | - Added Mythic Metals compatibility [#79](https://github.com/illusivesoulworks/elytraslot/issues/79) 49 | - Added Elytra Bounce compatibility [#77](https://github.com/illusivesoulworks/elytraslot/issues/77) 50 | - Added LieOnLion's Enderite compatibility [#88](https://github.com/illusivesoulworks/elytraslot/issues/88) 51 | - Added Wooden Elytra compatibility [#68](https://github.com/illusivesoulworks/elytraslot/issues/68) 52 | - Added Aileron compatibility [#60](https://github.com/illusivesoulworks/elytraslot/issues/60) 53 | - Added Wavey Capes compatibility [#32](https://github.com/illusivesoulworks/elytraslot/issues/32) 54 | ### Changed 55 | - Improved Deeper and Darker compatibility [#102](https://github.com/illusivesoulworks/elytraslot/issues/102) 56 | ### Fixed 57 | - Fixed Mana and Artifice compatibility [#34](https://github.com/illusivesoulworks/elytraslot/issues/34) 58 | - Fixed render toggling [#97](https://github.com/illusivesoulworks/elytraslot/issues/97) 59 | - Fixed elytra unequipping on reload [#112](https://github.com/illusivesoulworks/elytraslot/issues/112) 60 | 61 | ## [6.3.1+1.20.1] - 2023.07.24 62 | ### Added 63 | - Added Clutter compatibility 64 | 65 | ## [6.3.0+1.20.1] - 2023.06.20 66 | ### Changed 67 | - Updated to Minecraft 1.20.1 68 | 69 | ## [6.2.1+1.19.4] - 2023.05.02 70 | ### Changed 71 | - Updated to Minecraft 1.19.4 72 | ### Fixed 73 | - Fixed potential crash in certain environments [#73](https://github.com/illusivesoulworks/elytraslot/issues/73) 74 | 75 | ## [6.2.0+1.19.3] - 2023.03.13 76 | ### Added 77 | - Added Quilt support 78 | ### Changed 79 | - Updated to Minecraft 1.19.3 80 | - [Forge] Updated to Curios 1.19.3-5.1.2.0 81 | - [Forge] Updated to Caelus 1.19.3-3.0.0.7 82 | 83 | ## [6.1.0+1.19.2] - 2023.02.01 84 | ### Added 85 | - Added Lil' Wings compatibility [#62](https://github.com/illusivesoulworks/elytraslot/issues/62) 86 | - Added Enderite Mod compatibility [#59](https://github.com/illusivesoulworks/elytraslot/issues/59) 87 | - Added Deeper and Darker compatibility [#57](https://github.com/illusivesoulworks/elytraslot/issues/57) 88 | - Added MinecraftCapes compatibility [#48](https://github.com/illusivesoulworks/elytraslot/issues/48) 89 | - Added Mekanism compatibility [#44](https://github.com/illusivesoulworks/elytraslot/issues/44) 90 | - Added Alex's Mobs compatibility [#28](https://github.com/illusivesoulworks/elytraslot/issues/28) 91 | 92 | ## [6.0.0+1.19.2] - 2022.08.11 93 | ### Changed 94 | - Updated to Minecraft 1.19.2 95 | - [Forge] Updated to Forge 43+ 96 | - [Fabric] Updated to Fabric API 0.59.0+ 97 | 98 | ## [6.0.0+1.19.1] - 2022.07.29 99 | ### Changed 100 | - Updated to Minecraft 1.19.1 101 | - [Forge] Updated to Forge 42+ 102 | - [Forge] Updated to Caelus 1.19.1-3.0.0.4+ 103 | - [Forge] Updated to Curios 1.19.1-5.1.0.5+ 104 | - [Fabric] Updated to Fabric API 0.58.5+ 105 | 106 | ## [6.0.0-beta.1+1.19] - 2022.07.20 107 | ### Changed 108 | - Merged Forge and Fabric versions of the project together using the [MultiLoader template](https://github.com/jaredlll08/MultiLoader-Template) 109 | - Changed to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) 110 | - Updated to Minecraft 1.19 111 | - [Forge] Updated to Forge 41+ 112 | - [Forge] Updated to Caelus 1.19-3.0.0.3+ 113 | - [Forge] Updated to Curios 1.19-5.1.0.0+ 114 | - [Fabric] Updated to Fabric API 0.55.2+ 115 | - [Fabric] Updated to Trinkets 3.4.0+ 116 | 117 | ## [1.18.1-5.0.1.0] - 2022.01.11 118 | ### Added 119 | - Added support for Quark's Colored Runes [#40](https://github.com/TheIllusiveC4/CuriousElytra/issues/40) 120 | ### Fixed 121 | - Fixed rendering errors and log spam with Silent Gear [#39](https://github.com/TheIllusiveC4/CuriousElytra/issues/39) 122 | - Fixed missing Caelus API requirement in `mods.toml` 123 | 124 | ## [1.18.1-5.0.0.1] - 2021.12.16 125 | ### Fixed 126 | - Fixed duplicate capability key errors [#37](https://github.com/TheIllusiveC4/CuriousElytra/issues/37) 127 | 128 | ## [1.18.1-5.0.0.0] - 2021.12.15 129 | ### Changed 130 | - Updated to Minecraft 1.18.1 131 | 132 | ## [1.17.1-5.0.0.0] - 2021.12.15 133 | ### Changed 134 | - Updated to Minecraft 1.17.1 135 | - Updated to Forge 37.0+ 136 | - Updated to Curios 1.17.1-5.0+ 137 | - Updated to Caelus 1.17.1-3.0+ 138 | ### Removed 139 | - Removed compatibility for mods that are not on 1.17.1 140 | 141 | ## [1.16.5-4.0.2.4] - 2021.11.10 142 | ### Fixed 143 | - Fixed compatibility with modded elytras so that rendering works correctly 144 | - Fixed Spectral Elytra compatibility 145 | 146 | ## [1.16.5-4.0.2.3] - 2021.03.07 147 | ### Fixed 148 | - Fixed elytra ticking logic [#17](https://github.com/TheIllusiveC4/CuriousElytra/issues/17) 149 | 150 | ## [1.16.5-4.0.2.2] - 2021.03.07 151 | ### Changed 152 | - Refactored some logic for the elytra curio 153 | 154 | ## [1.16.5-4.0.2.1] - 2021.03.02 155 | ### Fixed 156 | - Fixed elytras working while broken [#16](https://github.com/TheIllusiveC4/CuriousElytra/issues/16) 157 | 158 | ## [1.16.5-4.0.2.0] - 2021.01.21 159 | ### Added 160 | - Added Silent Gear Elytra rendering integration 161 | 162 | ## [1.16.5-4.0.1.0] - 2021.01.21 163 | ### Added 164 | - Added Enderite Mod integration 165 | - Added Netherite Plus integration 166 | ### Changed 167 | - Updated to Minecraft 1.16.5 168 | 169 | ## [1.16.3-4.0.0.1] - 2020.09.27 170 | ### Changed 171 | - Updated to Minecraft 1.16.3 172 | 173 | ## [1.16.2-4.0.0.0] - 2020.08.14 174 | ### Changed 175 | - Updated to Minecraft 1.16.2 176 | 177 | ## [1.16.1-3.0.0.0] - 2020.07.02 178 | ### Changed 179 | - Updated to Minecraft 1.16.1 180 | 181 | ## [1.15.2-2.0.0.0] - 2019.09.15 182 | ### Changed 183 | - Updated to Minecraft 1.15.2 184 | 185 | ## [1.14.4-1.0.0.0] - 2019.09.15 186 | ### Changed 187 | - Updated to Forge 28.1.0+ 188 | 189 | ## [1.14.4-0.0.0.7] - 2019.07.24 190 | ### Changed 191 | - Updated to Minecraft 1.14.4 192 | 193 | ## [1.14.3-0.0.0.6] - 2019.07.07 194 | ### Changed 195 | - Updated to Caelus 0.7+ 196 | 197 | ## [1.14.3-0.0.0.5] - 2019.07.05 198 | ### Changed 199 | - Updated to Minecraft 1.14.3 200 | 201 | ## [1.13.2-0.0.0.4] - 2019.06.16 202 | ### Changed 203 | - Updated to last Forge and mappings for 1.13.2 204 | ### Fixed 205 | - Fixed dedicated server crash [#1](https://github.com/TheIllusiveC4/CuriousElytra/issues/1) 206 | 207 | ## [1.13.2-0.0.0.3] - 2019.04.11 208 | ### Changed 209 | - Updated to Curios 0.10+ 210 | 211 | ## [1.13.2-0.0.0.2] - 2019.03.29 212 | ### Fixed 213 | - Fixed broken elytras still giving flight 214 | 215 | ## [1.13.2-0.0.0.1] - 2019.03.19 216 | - Initial beta release 217 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright © 2015-2021 the original authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | # 21 | # Gradle start up script for POSIX generated by Gradle. 22 | # 23 | # Important for running: 24 | # 25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is 26 | # noncompliant, but you have some other compliant shell such as ksh or 27 | # bash, then to run this script, type that shell name before the whole 28 | # command line, like: 29 | # 30 | # ksh Gradle 31 | # 32 | # Busybox and similar reduced shells will NOT work, because this script 33 | # requires all of these POSIX shell features: 34 | # * functions; 35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», 36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»; 37 | # * compound commands having a testable exit status, especially «case»; 38 | # * various built-in commands including «command», «set», and «ulimit». 39 | # 40 | # Important for patching: 41 | # 42 | # (2) This script targets any POSIX shell, so it avoids extensions provided 43 | # by Bash, Ksh, etc; in particular arrays are avoided. 44 | # 45 | # The "traditional" practice of packing multiple parameters into a 46 | # space-separated string is a well documented source of bugs and security 47 | # problems, so this is (mostly) avoided, by progressively accumulating 48 | # options in "$@", and eventually passing that to Java. 49 | # 50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, 51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; 52 | # see the in-line comments for details. 53 | # 54 | # There are tweaks for specific operating systems such as AIX, CygWin, 55 | # Darwin, MinGW, and NonStop. 56 | # 57 | # (3) This script is generated from the Groovy template 58 | # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 59 | # within the Gradle project. 60 | # 61 | # You can find Gradle at https://github.com/gradle/gradle/. 62 | # 63 | ############################################################################## 64 | 65 | # Attempt to set APP_HOME 66 | 67 | # Resolve links: $0 may be a link 68 | app_path=$0 69 | 70 | # Need this for daisy-chained symlinks. 71 | while 72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path 73 | [ -h "$app_path" ] 74 | do 75 | ls=$( ls -ld "$app_path" ) 76 | link=${ls#*' -> '} 77 | case $link in #( 78 | /*) app_path=$link ;; #( 79 | *) app_path=$APP_HOME$link ;; 80 | esac 81 | done 82 | 83 | # This is normally unused 84 | # shellcheck disable=SC2034 85 | APP_BASE_NAME=${0##*/} 86 | # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) 87 | APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit 88 | 89 | # Use the maximum available, or set MAX_FD != -1 to use that value. 90 | MAX_FD=maximum 91 | 92 | warn () { 93 | echo "$*" 94 | } >&2 95 | 96 | die () { 97 | echo 98 | echo "$*" 99 | echo 100 | exit 1 101 | } >&2 102 | 103 | # OS specific support (must be 'true' or 'false'). 104 | cygwin=false 105 | msys=false 106 | darwin=false 107 | nonstop=false 108 | case "$( uname )" in #( 109 | CYGWIN* ) cygwin=true ;; #( 110 | Darwin* ) darwin=true ;; #( 111 | MSYS* | MINGW* ) msys=true ;; #( 112 | NONSTOP* ) nonstop=true ;; 113 | esac 114 | 115 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 116 | 117 | 118 | # Determine the Java command to use to start the JVM. 119 | if [ -n "$JAVA_HOME" ] ; then 120 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 121 | # IBM's JDK on AIX uses strange locations for the executables 122 | JAVACMD=$JAVA_HOME/jre/sh/java 123 | else 124 | JAVACMD=$JAVA_HOME/bin/java 125 | fi 126 | if [ ! -x "$JAVACMD" ] ; then 127 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 128 | 129 | Please set the JAVA_HOME variable in your environment to match the 130 | location of your Java installation." 131 | fi 132 | else 133 | JAVACMD=java 134 | if ! command -v java >/dev/null 2>&1 135 | then 136 | die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 137 | 138 | Please set the JAVA_HOME variable in your environment to match the 139 | location of your Java installation." 140 | fi 141 | fi 142 | 143 | # Increase the maximum file descriptors if we can. 144 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then 145 | case $MAX_FD in #( 146 | max*) 147 | # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. 148 | # shellcheck disable=SC2039,SC3045 149 | MAX_FD=$( ulimit -H -n ) || 150 | warn "Could not query maximum file descriptor limit" 151 | esac 152 | case $MAX_FD in #( 153 | '' | soft) :;; #( 154 | *) 155 | # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. 156 | # shellcheck disable=SC2039,SC3045 157 | ulimit -n "$MAX_FD" || 158 | warn "Could not set maximum file descriptor limit to $MAX_FD" 159 | esac 160 | fi 161 | 162 | # Collect all arguments for the java command, stacking in reverse order: 163 | # * args from the command line 164 | # * the main class name 165 | # * -classpath 166 | # * -D...appname settings 167 | # * --module-path (only if needed) 168 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. 169 | 170 | # For Cygwin or MSYS, switch paths to Windows format before running java 171 | if "$cygwin" || "$msys" ; then 172 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) 173 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) 174 | 175 | JAVACMD=$( cygpath --unix "$JAVACMD" ) 176 | 177 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 178 | for arg do 179 | if 180 | case $arg in #( 181 | -*) false ;; # don't mess with options #( 182 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath 183 | [ -e "$t" ] ;; #( 184 | *) false ;; 185 | esac 186 | then 187 | arg=$( cygpath --path --ignore --mixed "$arg" ) 188 | fi 189 | # Roll the args list around exactly as many times as the number of 190 | # args, so each arg winds up back in the position where it started, but 191 | # possibly modified. 192 | # 193 | # NB: a `for` loop captures its iteration list before it begins, so 194 | # changing the positional parameters here affects neither the number of 195 | # iterations, nor the values presented in `arg`. 196 | shift # remove old arg 197 | set -- "$@" "$arg" # push replacement arg 198 | done 199 | fi 200 | 201 | 202 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 203 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 204 | 205 | # Collect all arguments for the java command: 206 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, 207 | # and any embedded shellness will be escaped. 208 | # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be 209 | # treated as '${Hostname}' itself on the command line. 210 | 211 | set -- \ 212 | "-Dorg.gradle.appname=$APP_BASE_NAME" \ 213 | -classpath "$CLASSPATH" \ 214 | org.gradle.wrapper.GradleWrapperMain \ 215 | "$@" 216 | 217 | # Stop when "xargs" is not available. 218 | if ! command -v xargs >/dev/null 2>&1 219 | then 220 | die "xargs is not available" 221 | fi 222 | 223 | # Use "xargs" to parse quoted args. 224 | # 225 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed. 226 | # 227 | # In Bash we could simply go: 228 | # 229 | # readarray ARGS < <( xargs -n1 <<<"$var" ) && 230 | # set -- "${ARGS[@]}" "$@" 231 | # 232 | # but POSIX shell has neither arrays nor command substitution, so instead we 233 | # post-process each arg (as a line of input to sed) to backslash-escape any 234 | # character that might be a shell metacharacter, then use eval to reverse 235 | # that process (while maintaining the separation between arguments), and wrap 236 | # the whole thing up as a single "set" statement. 237 | # 238 | # This will of course break if any of these variables contains a newline or 239 | # an unmatched quote. 240 | # 241 | 242 | eval "set -- $( 243 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | 244 | xargs -n1 | 245 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | 246 | tr '\n' ' ' 247 | )" '"$@"' 248 | 249 | exec "$JAVACMD" "$@" 250 | -------------------------------------------------------------------------------- /checkstyle.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 57 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 74 | 75 | 76 | 78 | 79 | 80 | 86 | 87 | 88 | 89 | 92 | 93 | 94 | 95 | 96 | 100 | 101 | 102 | 103 | 104 | 106 | 107 | 108 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 129 | 132 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 180 | 181 | 182 | 184 | 186 | 187 | 188 | 189 | 191 | 192 | 193 | 194 | 196 | 197 | 198 | 199 | 201 | 202 | 203 | 204 | 206 | 207 | 208 | 209 | 211 | 212 | 213 | 214 | 216 | 217 | 218 | 219 | 221 | 222 | 223 | 224 | 226 | 227 | 228 | 229 | 231 | 232 | 233 | 234 | 236 | 237 | 238 | 239 | 241 | 242 | 243 | 244 | 246 | 248 | 250 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 282 | 283 | 284 | 287 | 288 | 289 | 290 | 296 | 297 | 298 | 299 | 303 | 304 | 305 | 306 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 321 | 322 | 323 | 324 | 325 | 326 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 342 | 343 | 344 | 345 | 348 | 349 | 350 | 351 | 352 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . --------------------------------------------------------------------------------