diff --git a/.editorconfig b/.editorconfig index 3a3fd2994..92cfba65e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +# +# SPDX-License-Identifier: CC0-1.0 + root = true [*] diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 971067f6a..91a7ceeae 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +# +# SPDX-License-Identifier: CC0-1.0 + # Reformat everything f478c4ffc4fb9fc2200ec9b0bc751d047057ce81 diff --git a/.gitattributes b/.gitattributes index 05438b491..dda19bd11 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +# +# SPDX-License-Identifier: CC0-1.0 + # Ignore changes in generated files projects/*/src/generated/** linguist-generated projects/common/src/testMod/resources/data/cctest/structures/* linguist-generated diff --git a/.gitignore b/.gitignore index 43eefce7e..2f86dba3f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +# +# SPDX-License-Identifier: CC0-1.0 + # Build directories /classes /logs @@ -6,6 +10,7 @@ /projects/*/build /buildSrc/build /out +/jars /doc/out/ /node_modules .jqwik-database diff --git a/.gitpod.yml b/.gitpod.yml index 8fadff01b..a2ef0ae6f 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +# +# SPDX-License-Identifier: LicenseRef-CCPL + image: file: config/gitpod/Dockerfile diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ab9c34909..33ee529c4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +# +# SPDX-License-Identifier: CC0-1.0 + # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: @@ -22,6 +26,11 @@ repos: args: ['-disable-indentation'] exclude: "^(.*\\.(bat)|LICENSE)$" +- repo: https://github.com/fsfe/reuse-tool + rev: v1.1.0 + hooks: + - id: reuse + - repo: local hooks: - id: license diff --git a/.reuse/dep5 b/.reuse/dep5 new file mode 100644 index 000000000..4e7709e2b --- /dev/null +++ b/.reuse/dep5 @@ -0,0 +1,78 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/cc-tweaked/cc-tweaked +Upstream-Name: CC: Tweaked +Upstream-Contact: Jonathan Coates + +Files: + projects/common/src/main/resources/assets/computercraft/sounds.json + projects/common/src/main/resources/assets/computercraft/sounds/empty.ogg + projects/common/src/testMod/resources/data/cctest/structures/* + projects/fabric/src/generated/* + projects/forge/src/generated/* +Comment: Generated/data files are CC0. +Copyright: The CC: Tweaked Developers +License: CC0-1.0 + +Files: + package.json + package-lock.json + projects/common/src/client/resources/computercraft-client.mixins.json + projects/common/src/main/resources/assets/minecraft/shaders/core/computercraft/monitor_tbo.json + projects/common/src/main/resources/computercraft.mixins.json + projects/common/src/testMod/resources/computercraft-gametest.mixins.json + projects/common/src/testMod/resources/data/computercraft/loot_tables/treasure_disk.json + projects/common/src/testMod/resources/pack.mcmeta + projects/fabric-api/src/main/modJson/fabric.mod.json + projects/fabric/src/client/resources/computercraft-client.fabric.mixins.json + projects/fabric/src/main/resources/computercraft.fabric.mixins.json + projects/fabric/src/main/resources/fabric.mod.json + projects/fabric/src/testMod/resources/computercraft-gametest.fabric.mixins.json + projects/fabric/src/testMod/resources/fabric.mod.json + projects/forge/src/client/resources/computercraft-client.forge.mixins.json + projects/web/src/mount/.settings + projects/web/src/mount/example.nfp + projects/web/src/mount/example.nft + projects/web/src/mount/expr_template.lua + projects/web/tsconfig.json +Comment: Several assets where it's inconvenient to create a .license file. +Copyright: The CC: Tweaked Developers +License: MPL-2.0 + +Files: + doc/images/* + doc/logo.png + projects/common/src/main/resources/assets/computercraft/lang/* + projects/common/src/main/resources/assets/computercraft/models/* + projects/common/src/main/resources/assets/computercraft/textures/* + projects/common/src/main/resources/pack.mcmeta + projects/common/src/main/resources/pack.png + projects/core/src/main/resources/data/computercraft/lua/rom/autorun/.ignoreme + projects/core/src/main/resources/data/computercraft/lua/rom/help/* + projects/core/src/main/resources/data/computercraft/lua/rom/modules/command/.ignoreme + projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/.ignoreme + projects/core/src/main/resources/data/computercraft/lua/rom/modules/turtle/.ignoreme + projects/core/src/main/resources/data/computercraft/lua/rom/motd.txt + projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/advanced/levels/* + projects/web/src/export/* +Comment: Bulk-license original assets as CCPL. +Copyright: 2011 Daniel Ratcliffe +License: LicenseRef-CCPL + +Files: + .github/* +Comment: + GitHub build scripts are CC0. While we could add a header to each file, + it's unclear if it will break actions or issue templates in some way. +Copyright: Jonathan Coates +License: CC0-1.0 + +Files: + gradle/wrapper/* + gradlew + gradlew.bat +Copyright: Gradle Inc +License: Apache-2.0 + +Files: projects/core/src/test/resources/test-rom/data/json-parsing/* +Copyright: 2016 Nicolas Seriot +License: MIT diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index ed2544591..9bb96de5d 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,3 +1,8 @@ + # Contributor Covenant Code of Conduct diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 301539559..f41d7e1f6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,9 @@ + + # Contributing to CC: Tweaked As with many open source projects, CC: Tweaked thrives on contributions from other people! This document (hopefully) provides an introduction as to how to get started in helping out. diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 000000000..137069b82 --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,73 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/LICENSES/CC-BY-3.0.txt b/LICENSES/CC-BY-3.0.txt new file mode 100644 index 000000000..465aae75c --- /dev/null +++ b/LICENSES/CC-BY-3.0.txt @@ -0,0 +1,93 @@ +Creative Commons Attribution 3.0 Unported + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. + +License + +THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. + +BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. + +1. Definitions + + a. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. + + b. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License. + + c. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. + + d. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. + + e. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. + + f. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. + + g. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. + + h. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. + + i. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. + +2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. + +3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: + + a. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; + + b. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; + + c. to Distribute and Publicly Perform the Work including as incorporated in Collections; and, + + d. to Distribute and Publicly Perform Adaptations. + + e. For the avoidance of doubt: + + i. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; + + ii. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and, + + iii. Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License. + +The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved. + +4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: + + a. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(b), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(b), as requested. + + b. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4 (b) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. + + c. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. + +5. Representations, Warranties and Disclaimer + +UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. + +6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. Termination + + a. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. + + b. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. + +8. Miscellaneous + + a. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. + + b. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. + + c. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. + + d. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. + + e. This License may not be modified without the mutual written agreement of the Licensor and You. + + f. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. + +Creative Commons Notice + +Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor. + +Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of this License. + +Creative Commons may be contacted at http://creativecommons.org/. diff --git a/LICENSES/CC-BY-4.0.txt b/LICENSES/CC-BY-4.0.txt new file mode 100644 index 000000000..13ca539f3 --- /dev/null +++ b/LICENSES/CC-BY-4.0.txt @@ -0,0 +1,156 @@ +Creative Commons Attribution 4.0 International + + Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. + +Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. + +Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. + +Section 1 – Definitions. + + a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. + + d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. + + g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights under this Public License. + + i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. + +Section 2 – Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: + + A. reproduce and Share the Licensed Material, in whole or in part; and + + B. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. + + 3. Term. The term of this Public License is specified in Section 6(a). + + 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. + + 5. Downstream recipients. + + A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. + + B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. + + 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). + +b. Other rights. + + 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this Public License. + + 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. + +Section 3 – License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified form), You must: + + A. retain the following if it is supplied by the Licensor with the Licensed Material: + + i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of warranties; + + v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; + + B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and + + C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. + + 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. + +Section 4 – Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; + + b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. +For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. + +Section 5 – Disclaimer of Warranties and Limitation of Liability. + + a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. + + b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. + + c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. + +Section 6 – Term and Termination. + + a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or + + 2. upon express reinstatement by the Licensor. + + c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. + + d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. + + e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. + +Section 7 – Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. + +Section 8 – Interpretation. + + a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. + + c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. + + d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. + +Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/LICENSES/CC0-1.0.txt b/LICENSES/CC0-1.0.txt new file mode 100644 index 000000000..0e259d42c --- /dev/null +++ b/LICENSES/CC0-1.0.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/LICENSE b/LICENSES/LicenseRef-CCPL.txt similarity index 100% rename from LICENSE rename to LICENSES/LicenseRef-CCPL.txt diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 000000000..2071b23b0 --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/LICENSES/MPL-2.0.txt b/LICENSES/MPL-2.0.txt new file mode 100644 index 000000000..d0a1fa148 --- /dev/null +++ b/LICENSES/MPL-2.0.txt @@ -0,0 +1,373 @@ +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at https://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. diff --git a/README.md b/README.md index b5c946869..1677395fa 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ + + # ![CC: Tweaked](doc/logo.png) [![Current build status](https://github.com/cc-tweaked/CC-Tweaked/workflows/Build/badge.svg)](https://github.com/cc-tweaked/CC-Tweaked/actions "Current build status") [![Download CC: Tweaked on CurseForge](http://cf.way2muchnoise.eu/title/cc-tweaked.svg)][CurseForge] diff --git a/build.gradle.kts b/build.gradle.kts index 4ef4c478f..31ca5ec38 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + import org.jetbrains.gradle.ext.compiler import org.jetbrains.gradle.ext.settings diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 52e25e29d..36e679b3e 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + plugins { `java-gradle-plugin` `kotlin-dsl` diff --git a/buildSrc/settings.gradle.kts b/buildSrc/settings.gradle.kts index b5a0fabf6..d25531a48 100644 --- a/buildSrc/settings.gradle.kts +++ b/buildSrc/settings.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + dependencyResolutionManagement { versionCatalogs { create("libs") { diff --git a/buildSrc/src/main/kotlin/cc-tweaked.fabric.gradle.kts b/buildSrc/src/main/kotlin/cc-tweaked.fabric.gradle.kts index a8ae4e0e8..5f6f13567 100644 --- a/buildSrc/src/main/kotlin/cc-tweaked.fabric.gradle.kts +++ b/buildSrc/src/main/kotlin/cc-tweaked.fabric.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + /** Default configuration for Fabric projects. */ import cc.tweaked.gradle.CCTweakedExtension diff --git a/buildSrc/src/main/kotlin/cc-tweaked.forge.gradle.kts b/buildSrc/src/main/kotlin/cc-tweaked.forge.gradle.kts index 04e657d6d..9ffe48f81 100644 --- a/buildSrc/src/main/kotlin/cc-tweaked.forge.gradle.kts +++ b/buildSrc/src/main/kotlin/cc-tweaked.forge.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + /** Default configuration for Forge projects. */ import cc.tweaked.gradle.CCTweakedExtension diff --git a/buildSrc/src/main/kotlin/cc-tweaked.gametest.gradle.kts b/buildSrc/src/main/kotlin/cc-tweaked.gametest.gradle.kts index 74a56352a..712b5e857 100644 --- a/buildSrc/src/main/kotlin/cc-tweaked.gametest.gradle.kts +++ b/buildSrc/src/main/kotlin/cc-tweaked.gametest.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + import cc.tweaked.gradle.clientClasses import cc.tweaked.gradle.commonClasses diff --git a/buildSrc/src/main/kotlin/cc-tweaked.java-convention.gradle.kts b/buildSrc/src/main/kotlin/cc-tweaked.java-convention.gradle.kts index 121b039c9..c105636ad 100644 --- a/buildSrc/src/main/kotlin/cc-tweaked.java-convention.gradle.kts +++ b/buildSrc/src/main/kotlin/cc-tweaked.java-convention.gradle.kts @@ -1,6 +1,9 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + import cc.tweaked.gradle.CCTweakedExtension import cc.tweaked.gradle.CCTweakedPlugin -import cc.tweaked.gradle.LicenseHeader import com.diffplug.gradle.spotless.FormatExtension import com.diffplug.spotless.LineEnding import net.ltgt.gradle.errorprone.CheckSeverity @@ -159,14 +162,8 @@ spotless { indentWithSpaces(4) } - val licenser = LicenseHeader.create( - api = rootProject.file("config/license/api.txt"), - main = rootProject.file("config/license/main.txt"), - ) - java { defaults() - addStep(licenser) removeUnusedImports() } diff --git a/buildSrc/src/main/kotlin/cc-tweaked.kotlin-convention.gradle.kts b/buildSrc/src/main/kotlin/cc-tweaked.kotlin-convention.gradle.kts index 040204d0c..1d1bd3c67 100644 --- a/buildSrc/src/main/kotlin/cc-tweaked.kotlin-convention.gradle.kts +++ b/buildSrc/src/main/kotlin/cc-tweaked.kotlin-convention.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + import cc.tweaked.gradle.CCTweakedPlugin import org.jetbrains.kotlin.gradle.tasks.KotlinCompile diff --git a/buildSrc/src/main/kotlin/cc-tweaked.publishing.gradle.kts b/buildSrc/src/main/kotlin/cc-tweaked.publishing.gradle.kts index b1f27fe9c..8b1ae5523 100644 --- a/buildSrc/src/main/kotlin/cc-tweaked.publishing.gradle.kts +++ b/buildSrc/src/main/kotlin/cc-tweaked.publishing.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + import org.gradle.kotlin.dsl.`maven-publish` plugins { diff --git a/buildSrc/src/main/kotlin/cc-tweaked.vanilla.gradle.kts b/buildSrc/src/main/kotlin/cc-tweaked.vanilla.gradle.kts index 5437a29f0..0a669b51c 100644 --- a/buildSrc/src/main/kotlin/cc-tweaked.vanilla.gradle.kts +++ b/buildSrc/src/main/kotlin/cc-tweaked.vanilla.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + /** Default configuration for non-modloader-specific Minecraft projects. */ import cc.tweaked.gradle.CCTweakedExtension diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/CCTweakedExtension.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/CCTweakedExtension.kt index dec5492a0..42b8723a0 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/CCTweakedExtension.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/CCTweakedExtension.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.gradle import net.ltgt.gradle.errorprone.CheckSeverity diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/CCTweakedPlugin.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/CCTweakedPlugin.kt index 919d87b38..470021514 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/CCTweakedPlugin.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/CCTweakedPlugin.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.gradle import org.gradle.api.Plugin diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/CheckChangelog.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/CheckChangelog.kt index 3657b0545..6d98c4d5a 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/CheckChangelog.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/CheckChangelog.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.gradle import org.gradle.api.DefaultTask diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/CheckLicense.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/CheckLicense.kt deleted file mode 100644 index a73fbcaf0..000000000 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/CheckLicense.kt +++ /dev/null @@ -1,72 +0,0 @@ -package cc.tweaked.gradle - -import com.diffplug.spotless.FormatterFunc -import com.diffplug.spotless.FormatterStep -import com.diffplug.spotless.generic.LicenseHeaderStep -import java.io.File -import java.io.Serializable - -/** - * Similar to [LicenseHeaderStep], but supports multiple licenses. - */ -object LicenseHeader { - /** - * The current year to use in templates. Intentionally not dynamic to avoid failing the build. - */ - private const val YEAR = 2022 - - private val COMMENT = Regex("""^/\*(.*?)\*/\n?""", RegexOption.DOT_MATCHES_ALL) - - fun create(api: File, main: File): FormatterStep = FormatterStep.createLazy( - "license", - { Licenses(getTemplateText(api), getTemplateText(main)) }, - { state -> FormatterFunc.NeedsFile { contents, file -> formatFile(state, contents, file) } }, - ) - - private fun getTemplateText(file: File): String = - file.readText().trim().replace("\${year}", "$YEAR") - - private fun formatFile(licenses: Licenses, contents: String, file: File): String { - val license = getLicense(contents) - val expectedLicense = getExpectedLicense(licenses, file.parentFile) - - return when { - license == null -> setLicense(expectedLicense, contents) - license.second != expectedLicense -> setLicense(expectedLicense, contents, license.first) - else -> contents - } - } - - private fun getExpectedLicense(licenses: Licenses, root: File): String { - var file: File? = root - while (file != null) { - if (file.name == "api" && file.parentFile?.name == "computercraft") return licenses.api - file = file.parentFile - } - return licenses.main - } - - private fun getLicense(contents: String): Pair? { - val match = COMMENT.find(contents) ?: return null - val license = match.groups[1]!!.value - .trim().lineSequence() - .map { it.trimStart(' ', '*') } - .joinToString("\n") - return Pair(match.range.last + 1, license) - } - - private fun setLicense(license: String, contents: String, start: Int = 0): String { - val out = StringBuilder() - out.append("/*\n") - for (line in license.lineSequence()) out.append(" * ").append(line).append("\n") - out.append(" */\n") - out.append(contents, start, contents.length) - return out.toString() - } - - private data class Licenses(val api: String, val main: String) : Serializable { - companion object { - private const val serialVersionUID: Long = 7741106448372435662L - } - } -} diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/ExecTasks.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/ExecTasks.kt index 10cf5af9a..29ce2d5e2 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/ExecTasks.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/ExecTasks.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.gradle import org.gradle.api.provider.Property diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/Extensions.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/Extensions.kt index cb51eef38..af27c6a5a 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/Extensions.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/Extensions.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.gradle import org.gradle.api.artifacts.dsl.DependencyHandler diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/IdeaRunConfigurations.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/IdeaRunConfigurations.kt index dbd172342..f5772a12e 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/IdeaRunConfigurations.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/IdeaRunConfigurations.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.gradle import org.gradle.api.Project diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/Illuaminate.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/Illuaminate.kt index 2336583c2..0ccdd07e9 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/Illuaminate.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/Illuaminate.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: LicenseRef-CCPL + package cc.tweaked.gradle import org.gradle.api.DefaultTask diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/MavenDependencySpec.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/MavenDependencySpec.kt index d7755ed38..9a1f8a5ee 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/MavenDependencySpec.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/MavenDependencySpec.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.gradle import org.gradle.api.artifacts.Dependency diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/MinecraftConfigurations.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/MinecraftConfigurations.kt index e15356229..b6c263f2d 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/MinecraftConfigurations.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/MinecraftConfigurations.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.gradle import org.gradle.api.Project diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/MinecraftExec.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/MinecraftExec.kt index 85da76164..75cb7b51a 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/MinecraftExec.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/MinecraftExec.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.gradle import org.gradle.api.GradleException diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/Node.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/Node.kt index 8d66ab454..ddbe11dfa 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/Node.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/Node.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.gradle import org.gradle.api.DefaultTask diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/ProcessHelpers.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/ProcessHelpers.kt index 27650c233..4f3fb2463 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/ProcessHelpers.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/ProcessHelpers.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.gradle import org.codehaus.groovy.runtime.ProcessGroovyMethods diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/SourceSetReference.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/SourceSetReference.kt index 1668162cd..b550a26b6 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/SourceSetReference.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/SourceSetReference.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.gradle import org.gradle.api.tasks.SourceSet diff --git a/buildSrc/src/main/kotlin/cc/tweaked/gradle/XmlUtil.kt b/buildSrc/src/main/kotlin/cc/tweaked/gradle/XmlUtil.kt index 1e610c798..af97f55e2 100644 --- a/buildSrc/src/main/kotlin/cc/tweaked/gradle/XmlUtil.kt +++ b/buildSrc/src/main/kotlin/cc/tweaked/gradle/XmlUtil.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.gradle import groovy.util.Node diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index 299e13a93..975cfcf4d 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -1,4 +1,11 @@ + + + diff --git a/config/checkstyle/suppressions.xml b/config/checkstyle/suppressions.xml index 647da4baa..5fbc64125 100644 --- a/config/checkstyle/suppressions.xml +++ b/config/checkstyle/suppressions.xml @@ -1,4 +1,11 @@ + + + diff --git a/config/gitpod/Dockerfile b/config/gitpod/Dockerfile index 9c464a215..3345c4d2c 100644 --- a/config/gitpod/Dockerfile +++ b/config/gitpod/Dockerfile @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +# +# SPDX-License-Identifier: LicenseRef-CCPL + FROM gitpod/workspace-base USER gitpod diff --git a/config/license/api.txt b/config/license/api.txt deleted file mode 100644 index 5c1d391fe..000000000 --- a/config/license/api.txt +++ /dev/null @@ -1,3 +0,0 @@ -This file is part of the public ComputerCraft API - http://www.computercraft.info -Copyright Daniel Ratcliffe, 2011-${year}. This API may be redistributed unmodified and in full only. -For help using the API, and posting your mods, visit the forums at computercraft.info. diff --git a/config/license/main.txt b/config/license/main.txt deleted file mode 100644 index bab494b2e..000000000 --- a/config/license/main.txt +++ /dev/null @@ -1,3 +0,0 @@ -This file is part of ComputerCraft - http://www.computercraft.info -Copyright Daniel Ratcliffe, 2011-${year}. Do not distribute without permission. -Send enquiries to dratcliffe@gmail.com diff --git a/doc/events/alarm.md b/doc/events/alarm.md index 5d62253ec..d47586ed3 100644 --- a/doc/events/alarm.md +++ b/doc/events/alarm.md @@ -3,6 +3,12 @@ see: os.setAlarm To start an alarm. --- + + The @{alarm} event is fired when an alarm started with @{os.setAlarm} completes. ## Return Values diff --git a/doc/events/char.md b/doc/events/char.md index 083f54ca7..53f7e87e1 100644 --- a/doc/events/char.md +++ b/doc/events/char.md @@ -3,6 +3,12 @@ see: key To listen to any key press. --- + + The @{char} event is fired when a character is typed on the keyboard. The @{char} event is different to a key press. Sometimes multiple key presses may result in one character being diff --git a/doc/events/computer_command.md b/doc/events/computer_command.md index 76c8a2285..747781740 100644 --- a/doc/events/computer_command.md +++ b/doc/events/computer_command.md @@ -2,6 +2,12 @@ module: [kind=event] computer_command --- + + The @{computer_command} event is fired when the `/computercraft queue` command is run for the current computer. ## Return Values diff --git a/doc/events/disk.md b/doc/events/disk.md index 2946d70c4..d371cf36c 100644 --- a/doc/events/disk.md +++ b/doc/events/disk.md @@ -3,6 +3,12 @@ see: disk_eject For the event sent when a disk is removed. --- + + The @{disk} event is fired when a disk is inserted into an adjacent or networked disk drive. ## Return Values diff --git a/doc/events/disk_eject.md b/doc/events/disk_eject.md index 71c3ede0a..2538513d8 100644 --- a/doc/events/disk_eject.md +++ b/doc/events/disk_eject.md @@ -3,6 +3,12 @@ see: disk For the event sent when a disk is inserted. --- + + The @{disk_eject} event is fired when a disk is removed from an adjacent or networked disk drive. ## Return Values diff --git a/doc/events/file_transfer.md b/doc/events/file_transfer.md index 904508709..f90710dd2 100644 --- a/doc/events/file_transfer.md +++ b/doc/events/file_transfer.md @@ -3,6 +3,12 @@ since: 1.101.0 --- + + The @{file_transfer} event is queued when a user drags-and-drops a file on an open computer. This event contains a single argument of type @{TransferredFiles}, which can be used to @{TransferredFiles.getFiles|get diff --git a/doc/events/http_check.md b/doc/events/http_check.md index 5de147834..cc231b855 100644 --- a/doc/events/http_check.md +++ b/doc/events/http_check.md @@ -3,6 +3,12 @@ see: http.checkURLAsync To check a URL asynchronously. --- + + The @{http_check} event is fired when a URL check finishes. This event is normally handled inside @{http.checkURL}, but it can still be seen when using @{http.checkURLAsync}. diff --git a/doc/events/http_failure.md b/doc/events/http_failure.md index 7a20a7204..318cd288d 100644 --- a/doc/events/http_failure.md +++ b/doc/events/http_failure.md @@ -3,6 +3,12 @@ see: http.request To send an HTTP request. --- + + The @{http_failure} event is fired when an HTTP request fails. This event is normally handled inside @{http.get} and @{http.post}, but it can still be seen when using @{http.request}. diff --git a/doc/events/http_success.md b/doc/events/http_success.md index 2ac78ad04..696c3aaf8 100644 --- a/doc/events/http_success.md +++ b/doc/events/http_success.md @@ -3,6 +3,12 @@ see: http.request To make an HTTP request. --- + + The @{http_success} event is fired when an HTTP request returns successfully. This event is normally handled inside @{http.get} and @{http.post}, but it can still be seen when using @{http.request}. diff --git a/doc/events/key.md b/doc/events/key.md index 1f11e443b..173778d67 100644 --- a/doc/events/key.md +++ b/doc/events/key.md @@ -2,6 +2,12 @@ module: [kind=event] key --- + + This event is fired when any key is pressed while the terminal is focused. This event returns a numerical "key code" (for instance, F1 is 290). This value may vary between versions and diff --git a/doc/events/key_up.md b/doc/events/key_up.md index e957cae6b..faf798513 100644 --- a/doc/events/key_up.md +++ b/doc/events/key_up.md @@ -3,6 +3,12 @@ see: keys For a lookup table of the given keys. --- + + Fired whenever a key is released (or the terminal is closed while a key was being pressed). This event returns a numerical "key code" (for instance, F1 is 290). This value may vary between versions and diff --git a/doc/events/modem_message.md b/doc/events/modem_message.md index 653a7e22b..36953c7e0 100644 --- a/doc/events/modem_message.md +++ b/doc/events/modem_message.md @@ -2,6 +2,12 @@ module: [kind=event] modem_message --- + + The @{modem_message} event is fired when a message is received on an open channel on any @{modem}. ## Return Values diff --git a/doc/events/monitor_resize.md b/doc/events/monitor_resize.md index 69fab56bd..c7c1c4b49 100644 --- a/doc/events/monitor_resize.md +++ b/doc/events/monitor_resize.md @@ -2,6 +2,12 @@ module: [kind=event] monitor_resize --- + + The @{monitor_resize} event is fired when an adjacent or networked monitor's size is changed. ## Return Values diff --git a/doc/events/monitor_touch.md b/doc/events/monitor_touch.md index 0f27a9cc1..fbb51a9e0 100644 --- a/doc/events/monitor_touch.md +++ b/doc/events/monitor_touch.md @@ -2,6 +2,12 @@ module: [kind=event] monitor_touch --- + + The @{monitor_touch} event is fired when an adjacent or networked Advanced Monitor is right-clicked. ## Return Values diff --git a/doc/events/mouse_click.md b/doc/events/mouse_click.md index 1dc1196e2..afd76a0df 100644 --- a/doc/events/mouse_click.md +++ b/doc/events/mouse_click.md @@ -2,6 +2,12 @@ module: [kind=event] mouse_click --- + + This event is fired when the terminal is clicked with a mouse. This event is only fired on advanced computers (including advanced turtles and pocket computers). diff --git a/doc/events/mouse_drag.md b/doc/events/mouse_drag.md index 15451c9f8..d5352d371 100644 --- a/doc/events/mouse_drag.md +++ b/doc/events/mouse_drag.md @@ -3,6 +3,12 @@ see: mouse_click For when a mouse button is initially pressed. --- + + This event is fired every time the mouse is moved while a mouse button is being held. ## Return values diff --git a/doc/events/mouse_scroll.md b/doc/events/mouse_scroll.md index 6248220a5..7ea9cc384 100644 --- a/doc/events/mouse_scroll.md +++ b/doc/events/mouse_scroll.md @@ -2,6 +2,12 @@ module: [kind=event] mouse_scroll --- + + This event is fired when a mouse wheel is scrolled in the terminal. ## Return values diff --git a/doc/events/mouse_up.md b/doc/events/mouse_up.md index 886330a6d..b680e013f 100644 --- a/doc/events/mouse_up.md +++ b/doc/events/mouse_up.md @@ -2,6 +2,12 @@ module: [kind=event] mouse_up --- + + This event is fired when a mouse button is released or a held mouse leaves the computer's terminal. ## Return values diff --git a/doc/events/paste.md b/doc/events/paste.md index b4f8713c5..b65c05eb5 100644 --- a/doc/events/paste.md +++ b/doc/events/paste.md @@ -2,6 +2,12 @@ module: [kind=event] paste --- + + The @{paste} event is fired when text is pasted into the computer through Ctrl-V (or ⌘V on Mac). ## Return values diff --git a/doc/events/peripheral.md b/doc/events/peripheral.md index 5769f3942..bc3dd0b99 100644 --- a/doc/events/peripheral.md +++ b/doc/events/peripheral.md @@ -3,6 +3,12 @@ see: peripheral_detach For the event fired when a peripheral is detached. --- + + The @{peripheral} event is fired when a peripheral is attached on a side or to a modem. ## Return Values diff --git a/doc/events/peripheral_detach.md b/doc/events/peripheral_detach.md index c8a462cf0..634901e15 100644 --- a/doc/events/peripheral_detach.md +++ b/doc/events/peripheral_detach.md @@ -3,6 +3,12 @@ see: peripheral For the event fired when a peripheral is attached. --- + + The @{peripheral_detach} event is fired when a peripheral is detached from a side or from a modem. ## Return Values diff --git a/doc/events/rednet_message.md b/doc/events/rednet_message.md index aac9c0926..f5714d110 100644 --- a/doc/events/rednet_message.md +++ b/doc/events/rednet_message.md @@ -4,6 +4,12 @@ see: rednet.receive To wait for a Rednet message with an optional timeout and protocol filter. --- + + The @{rednet_message} event is fired when a message is sent over Rednet. This event is usually handled by @{rednet.receive}, but it can also be pulled manually. diff --git a/doc/events/redstone.md b/doc/events/redstone.md index 6c0c6df2a..369061a1e 100644 --- a/doc/events/redstone.md +++ b/doc/events/redstone.md @@ -2,6 +2,12 @@ module: [kind=event] redstone --- + + The @{event!redstone} event is fired whenever any redstone inputs on the computer change. ## Return values diff --git a/doc/events/speaker_audio_empty.md b/doc/events/speaker_audio_empty.md index 75a371f26..f8c22400d 100644 --- a/doc/events/speaker_audio_empty.md +++ b/doc/events/speaker_audio_empty.md @@ -3,6 +3,12 @@ see: speaker.playAudio To play audio using the speaker --- + + ## Return Values 1. @{string}: The event name. 2. @{string}: The name of the speaker which is available to play more audio. diff --git a/doc/events/task_complete.md b/doc/events/task_complete.md index 89ce1d164..44dbd792e 100644 --- a/doc/events/task_complete.md +++ b/doc/events/task_complete.md @@ -3,6 +3,12 @@ see: commands.execAsync To run a command which fires a task_complete event. --- + + The @{task_complete} event is fired when an asynchronous task completes. This is usually handled inside the function call that queued the task; however, functions such as @{commands.execAsync} return immediately so the user can wait for completion. ## Return Values diff --git a/doc/events/term_resize.md b/doc/events/term_resize.md index 8abf16f6f..b8969bb21 100644 --- a/doc/events/term_resize.md +++ b/doc/events/term_resize.md @@ -2,6 +2,12 @@ module: [kind=event] term_resize --- + + The @{term_resize} event is fired when the main terminal is resized. For instance: - When a the tab bar is shown or hidden in @{multishell}. - When the terminal is redirected to a monitor via the "monitor" program and the monitor is resized. diff --git a/doc/events/terminate.md b/doc/events/terminate.md index f5d48540d..64cb87812 100644 --- a/doc/events/terminate.md +++ b/doc/events/terminate.md @@ -2,6 +2,12 @@ module: [kind=event] terminate --- + + The @{terminate} event is fired when Ctrl-T is held down. This event is normally handled by @{os.pullEvent}, and will not be returned. However, @{os.pullEventRaw} will return this event when fired. diff --git a/doc/events/timer.md b/doc/events/timer.md index a82e12439..676c6fab6 100644 --- a/doc/events/timer.md +++ b/doc/events/timer.md @@ -3,6 +3,12 @@ see: os.startTimer To start a timer. --- + + The @{timer} event is fired when a timer started with @{os.startTimer} completes. ## Return Values diff --git a/doc/events/turtle_inventory.md b/doc/events/turtle_inventory.md index 3bd865dd4..aad04c353 100644 --- a/doc/events/turtle_inventory.md +++ b/doc/events/turtle_inventory.md @@ -2,6 +2,12 @@ module: [kind=event] turtle_inventory --- + + The @{turtle_inventory} event is fired when a turtle's inventory is changed. ## Return values diff --git a/doc/events/websocket_closed.md b/doc/events/websocket_closed.md index 9e3783d19..e07bfe74f 100644 --- a/doc/events/websocket_closed.md +++ b/doc/events/websocket_closed.md @@ -2,6 +2,12 @@ module: [kind=event] websocket_closed --- + + The @{websocket_closed} event is fired when an open WebSocket connection is closed. ## Return Values diff --git a/doc/events/websocket_failure.md b/doc/events/websocket_failure.md index eef34e777..1b3a8041f 100644 --- a/doc/events/websocket_failure.md +++ b/doc/events/websocket_failure.md @@ -3,6 +3,12 @@ see: http.websocketAsync To send an HTTP request. --- + + The @{websocket_failure} event is fired when a WebSocket connection request fails. This event is normally handled inside @{http.websocket}, but it can still be seen when using @{http.websocketAsync}. diff --git a/doc/events/websocket_message.md b/doc/events/websocket_message.md index 839e214cc..ca424a7d5 100644 --- a/doc/events/websocket_message.md +++ b/doc/events/websocket_message.md @@ -2,6 +2,12 @@ module: [kind=event] websocket_message --- + + The @{websocket_message} event is fired when a message is received on an open WebSocket connection. This event is normally handled by @{http.Websocket.receive}, but it can also be pulled manually. diff --git a/doc/events/websocket_success.md b/doc/events/websocket_success.md index dcde934b3..6a191a127 100644 --- a/doc/events/websocket_success.md +++ b/doc/events/websocket_success.md @@ -3,6 +3,12 @@ see: http.websocketAsync To open a WebSocket asynchronously. --- + + The @{websocket_success} event is fired when a WebSocket connection request returns successfully. This event is normally handled inside @{http.websocket}, but it can still be seen when using @{http.websocketAsync}. diff --git a/doc/guides/gps_setup.md b/doc/guides/gps_setup.md index 7012e6657..ae7f7a8ab 100644 --- a/doc/guides/gps_setup.md +++ b/doc/guides/gps_setup.md @@ -2,6 +2,12 @@ module: [kind=guide] gps_setup --- + + # Setting up GPS The @{gps} API allows computers and turtles to find their current position using wireless modems. diff --git a/doc/guides/local_ips.md b/doc/guides/local_ips.md index ef111b56b..75eb2fcc4 100644 --- a/doc/guides/local_ips.md +++ b/doc/guides/local_ips.md @@ -2,6 +2,12 @@ module: [kind=guide] local_ips --- + + # Allowing access to local IPs By default, ComputerCraft blocks access to local IP addresses for security. This means you can't normally access any HTTP server running on your computer. However, this may be useful for testing programs without having a remote diff --git a/doc/guides/speaker_audio.md b/doc/guides/speaker_audio.md index 6fb3e87f0..1ced4fff1 100644 --- a/doc/guides/speaker_audio.md +++ b/doc/guides/speaker_audio.md @@ -4,6 +4,12 @@ see: cc.audio.dfpwm Provides utilities for encoding and decoding DFPWM files. --- + + # Playing audio with speakers CC: Tweaked's speaker peripheral provides a powerful way to play any audio you like with the @{speaker.playAudio} method. However, for people unfamiliar with digital audio, it's not the most intuitive thing to use. This guide provides diff --git a/doc/guides/using_require.md b/doc/guides/using_require.md index 06cc2ee20..9e69cba65 100644 --- a/doc/guides/using_require.md +++ b/doc/guides/using_require.md @@ -2,6 +2,12 @@ module: [kind=guide] using_require --- + + # Reusing code with require A library is a collection of useful functions and other definitions which is stored separately to your main program. You might want to create a library because you have some functions which are used in multiple programs, or just to split diff --git a/doc/head.html b/doc/head.html index efd18a401..6a7cafcf5 100644 --- a/doc/head.html +++ b/doc/head.html @@ -1 +1,7 @@ + + diff --git a/doc/index.md b/doc/index.md index 07ec525e3..0e55aaafd 100644 --- a/doc/index.md +++ b/doc/index.md @@ -1,3 +1,9 @@ + + # ![CC: Tweaked](logo.png) CC: Tweaked is a mod for Minecraft which adds programmable computers, turtles and more to the game. A fork of the much-beloved [ComputerCraft], it continues its legacy with better performance, stability, and a wealth of new features. diff --git a/doc/mod-page.md b/doc/mod-page.md index 2f355af45..81a17cc54 100644 --- a/doc/mod-page.md +++ b/doc/mod-page.md @@ -1,3 +1,9 @@ + + # ![CC: Tweaked](https://tweaked.cc/logo.png) CC: Tweaked is a mod for Minecraft which adds programmable computers, turtles and more to the game. A fork of the much-beloved [ComputerCraft], it continues its legacy with better performance, stability, and a wealth of new features. diff --git a/doc/reference/feature_compat.md b/doc/reference/feature_compat.md index d0b03cf45..0e66a04a0 100644 --- a/doc/reference/feature_compat.md +++ b/doc/reference/feature_compat.md @@ -2,6 +2,12 @@ module: [kind=reference] feature_compat --- + + # Lua 5.2/5.3 features in CC: Tweaked CC: Tweaked is based off of the Cobalt Lua runtime, which uses Lua 5.1. However, Cobalt and CC:T implement additional features from Lua 5.2 and 5.3 (as well as some deprecated 5.0 features) that are not available in base 5.1. This page lists all of the compatibility for these newer versions. diff --git a/doc/stub/global.lua b/doc/stub/global.lua index c01fb3554..579273741 100644 --- a/doc/stub/global.lua +++ b/doc/stub/global.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- Functions in the global environment, defined in `bios.lua`. This does not include standard Lua functions. diff --git a/doc/stub/os.lua b/doc/stub/os.lua index 39c051ceb..295925e3b 100644 --- a/doc/stub/os.lua +++ b/doc/stub/os.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + -- Defined in bios.lua --[[- Loads the given API into the global environment. diff --git a/doc/stub/turtle.lua b/doc/stub/turtle.lua index 10ae68df7..497423764 100644 --- a/doc/stub/turtle.lua +++ b/doc/stub/turtle.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- Craft a recipe based on the turtle's inventory. The turtle's inventory should set up like a crafting grid. For instance, to diff --git a/gradle.properties b/gradle.properties index 6e5f16a70..110fb662f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +# +# SPDX-License-Identifier: MPL-2.0 + org.gradle.jvmargs=-Xmx3G org.gradle.parallel=true diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 41e33916b..88887a2cb 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +# +# SPDX-License-Identifier: MPL-2.0 + [versions] # Minecraft diff --git a/illuaminate.sexp b/illuaminate.sexp index 70737cae3..74b37f146 100644 --- a/illuaminate.sexp +++ b/illuaminate.sexp @@ -1,5 +1,9 @@ ; -*- mode: Lisp;-*- +; SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +; +; SPDX-License-Identifier: LicenseRef-CCPL + (sources /doc/ /projects/forge/build/docs/luaJavadoc/ diff --git a/projects/ARCHITECTURE.md b/projects/ARCHITECTURE.md index 37d0cc424..2ef59b6ba 100644 --- a/projects/ARCHITECTURE.md +++ b/projects/ARCHITECTURE.md @@ -1,3 +1,9 @@ + + # Architecture CC: Tweaked has a rather complex project layout, as there's several use-cases we want to support (multiple mod loaders, usable outside of Minecraft). As such, it can be tricky to understand how the code is structured and how the various diff --git a/projects/common-api/build.gradle.kts b/projects/common-api/build.gradle.kts index 40c39190f..3bdc0d282 100644 --- a/projects/common-api/build.gradle.kts +++ b/projects/common-api/build.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + plugins { id("cc-tweaked.java-convention") id("cc-tweaked.publishing") diff --git a/projects/common-api/src/client/java/dan200/computercraft/api/client/ComputerCraftAPIClient.java b/projects/common-api/src/client/java/dan200/computercraft/api/client/ComputerCraftAPIClient.java index 14743f85c..280a73a38 100644 --- a/projects/common-api/src/client/java/dan200/computercraft/api/client/ComputerCraftAPIClient.java +++ b/projects/common-api/src/client/java/dan200/computercraft/api/client/ComputerCraftAPIClient.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.client; import dan200.computercraft.api.client.turtle.TurtleUpgradeModeller; diff --git a/projects/common-api/src/client/java/dan200/computercraft/api/client/TransformedModel.java b/projects/common-api/src/client/java/dan200/computercraft/api/client/TransformedModel.java index 48a001861..d3b58e9a0 100644 --- a/projects/common-api/src/client/java/dan200/computercraft/api/client/TransformedModel.java +++ b/projects/common-api/src/client/java/dan200/computercraft/api/client/TransformedModel.java @@ -1,8 +1,8 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + + package dan200.computercraft.api.client; import com.mojang.math.Transformation; diff --git a/projects/common-api/src/client/java/dan200/computercraft/api/client/turtle/TurtleUpgradeModeller.java b/projects/common-api/src/client/java/dan200/computercraft/api/client/turtle/TurtleUpgradeModeller.java index ed98aa3ba..b1a1e72c6 100644 --- a/projects/common-api/src/client/java/dan200/computercraft/api/client/turtle/TurtleUpgradeModeller.java +++ b/projects/common-api/src/client/java/dan200/computercraft/api/client/turtle/TurtleUpgradeModeller.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.client.turtle; import dan200.computercraft.api.client.ComputerCraftAPIClient; diff --git a/projects/common-api/src/client/java/dan200/computercraft/api/client/turtle/TurtleUpgradeModellers.java b/projects/common-api/src/client/java/dan200/computercraft/api/client/turtle/TurtleUpgradeModellers.java index 94ef3d2cf..a4ecacaed 100644 --- a/projects/common-api/src/client/java/dan200/computercraft/api/client/turtle/TurtleUpgradeModellers.java +++ b/projects/common-api/src/client/java/dan200/computercraft/api/client/turtle/TurtleUpgradeModellers.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.client.turtle; import com.mojang.math.Transformation; diff --git a/projects/common-api/src/client/java/dan200/computercraft/impl/client/ClientPlatformHelper.java b/projects/common-api/src/client/java/dan200/computercraft/impl/client/ClientPlatformHelper.java index 8610b9f65..581d3fb01 100644 --- a/projects/common-api/src/client/java/dan200/computercraft/impl/client/ClientPlatformHelper.java +++ b/projects/common-api/src/client/java/dan200/computercraft/impl/client/ClientPlatformHelper.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl.client; import dan200.computercraft.impl.Services; diff --git a/projects/common-api/src/client/java/dan200/computercraft/impl/client/ComputerCraftAPIClientService.java b/projects/common-api/src/client/java/dan200/computercraft/impl/client/ComputerCraftAPIClientService.java index d1f1e09a4..a56e0a044 100644 --- a/projects/common-api/src/client/java/dan200/computercraft/impl/client/ComputerCraftAPIClientService.java +++ b/projects/common-api/src/client/java/dan200/computercraft/impl/client/ComputerCraftAPIClientService.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl.client; import dan200.computercraft.api.client.ComputerCraftAPIClient; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/ComputerCraftAPI.java b/projects/common-api/src/main/java/dan200/computercraft/api/ComputerCraftAPI.java index 1c61f3351..fc3edb489 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/ComputerCraftAPI.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/ComputerCraftAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api; import dan200.computercraft.api.filesystem.Mount; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/ComputerCraftTags.java b/projects/common-api/src/main/java/dan200/computercraft/api/ComputerCraftTags.java index 81c2d8820..bbfc7f419 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/ComputerCraftTags.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/ComputerCraftTags.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api; import net.minecraft.core.registries.Registries; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/detail/BasicItemDetailProvider.java b/projects/common-api/src/main/java/dan200/computercraft/api/detail/BasicItemDetailProvider.java index a83a61768..24ca45b4d 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/detail/BasicItemDetailProvider.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/detail/BasicItemDetailProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.detail; import net.minecraft.world.item.Item; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/detail/BlockReference.java b/projects/common-api/src/main/java/dan200/computercraft/api/detail/BlockReference.java index 470d74883..a96b0229f 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/detail/BlockReference.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/detail/BlockReference.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.detail; import net.minecraft.core.BlockPos; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/detail/DetailProvider.java b/projects/common-api/src/main/java/dan200/computercraft/api/detail/DetailProvider.java index df35f377c..60d6c8657 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/detail/DetailProvider.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/detail/DetailProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.detail; import java.util.Map; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/detail/DetailRegistry.java b/projects/common-api/src/main/java/dan200/computercraft/api/detail/DetailRegistry.java index e765a1f74..7c355e8b0 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/detail/DetailRegistry.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/detail/DetailRegistry.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.detail; import org.jetbrains.annotations.ApiStatus; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/detail/VanillaDetailRegistries.java b/projects/common-api/src/main/java/dan200/computercraft/api/detail/VanillaDetailRegistries.java index f1af2e593..409bca0f0 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/detail/VanillaDetailRegistries.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/detail/VanillaDetailRegistries.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.detail; import dan200.computercraft.impl.ComputerCraftAPIService; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/media/IMedia.java b/projects/common-api/src/main/java/dan200/computercraft/api/media/IMedia.java index 8340ae978..045698aaa 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/media/IMedia.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/media/IMedia.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.media; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/media/MediaProvider.java b/projects/common-api/src/main/java/dan200/computercraft/api/media/MediaProvider.java index bb416b04e..6ffd306dd 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/media/MediaProvider.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/media/MediaProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.media; import net.minecraft.world.item.ItemStack; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/network/Packet.java b/projects/common-api/src/main/java/dan200/computercraft/api/network/Packet.java index 4c2588c6b..a95669f14 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/network/Packet.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/network/Packet.java @@ -1,8 +1,8 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + + package dan200.computercraft.api.network; /** diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/network/PacketNetwork.java b/projects/common-api/src/main/java/dan200/computercraft/api/network/PacketNetwork.java index c1ea246c6..a2c5eb54e 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/network/PacketNetwork.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/network/PacketNetwork.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.network; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/network/PacketReceiver.java b/projects/common-api/src/main/java/dan200/computercraft/api/network/PacketReceiver.java index a8cea9ef8..4b3697ba9 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/network/PacketReceiver.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/network/PacketReceiver.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.network; import net.minecraft.world.level.Level; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/network/PacketSender.java b/projects/common-api/src/main/java/dan200/computercraft/api/network/PacketSender.java index a1aa74a3a..e12aceb74 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/network/PacketSender.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/network/PacketSender.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.network; import net.minecraft.world.level.Level; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredElement.java b/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredElement.java index c2a78a684..0d58975f3 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredElement.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredElement.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.network.wired; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredNetwork.java b/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredNetwork.java index 42c797cf7..8876f3f19 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredNetwork.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredNetwork.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.network.wired; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredNetworkChange.java b/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredNetworkChange.java index 2f2494f54..7874f663c 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredNetworkChange.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredNetworkChange.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.network.wired; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredNode.java b/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredNode.java index 747c0542f..26c83740c 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredNode.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredNode.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.network.wired; import dan200.computercraft.api.network.PacketNetwork; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredSender.java b/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredSender.java index 652181beb..27005b0fa 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredSender.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/network/wired/WiredSender.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.network.wired; import dan200.computercraft.api.network.PacketSender; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/pocket/AbstractPocketUpgrade.java b/projects/common-api/src/main/java/dan200/computercraft/api/pocket/AbstractPocketUpgrade.java index 891e63346..c168bd946 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/pocket/AbstractPocketUpgrade.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/pocket/AbstractPocketUpgrade.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.pocket; import dan200.computercraft.api.upgrades.UpgradeBase; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/pocket/IPocketAccess.java b/projects/common-api/src/main/java/dan200/computercraft/api/pocket/IPocketAccess.java index 1bcda15c3..7cadb1b8b 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/pocket/IPocketAccess.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/pocket/IPocketAccess.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.pocket; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/pocket/IPocketUpgrade.java b/projects/common-api/src/main/java/dan200/computercraft/api/pocket/IPocketUpgrade.java index 6abfd56db..1cf22e2d4 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/pocket/IPocketUpgrade.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/pocket/IPocketUpgrade.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.pocket; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/pocket/PocketUpgradeDataProvider.java b/projects/common-api/src/main/java/dan200/computercraft/api/pocket/PocketUpgradeDataProvider.java index 2cb24cbf3..574b4afc6 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/pocket/PocketUpgradeDataProvider.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/pocket/PocketUpgradeDataProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.pocket; import dan200.computercraft.api.upgrades.UpgradeDataProvider; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/pocket/PocketUpgradeSerialiser.java b/projects/common-api/src/main/java/dan200/computercraft/api/pocket/PocketUpgradeSerialiser.java index ed3432553..3e4442fa2 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/pocket/PocketUpgradeSerialiser.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/pocket/PocketUpgradeSerialiser.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.pocket; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/redstone/BundledRedstoneProvider.java b/projects/common-api/src/main/java/dan200/computercraft/api/redstone/BundledRedstoneProvider.java index 7f7353ba5..d6ffeec9e 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/redstone/BundledRedstoneProvider.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/redstone/BundledRedstoneProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.redstone; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/AbstractTurtleUpgrade.java b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/AbstractTurtleUpgrade.java index 955f2da3b..bede70fa3 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/AbstractTurtleUpgrade.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/AbstractTurtleUpgrade.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.turtle; import dan200.computercraft.api.upgrades.UpgradeBase; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/ITurtleAccess.java b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/ITurtleAccess.java index 9f38cfd73..761b8b6be 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/ITurtleAccess.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/ITurtleAccess.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.turtle; import com.mojang.authlib.GameProfile; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/ITurtleUpgrade.java b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/ITurtleUpgrade.java index ad3392887..b39d8429c 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/ITurtleUpgrade.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/ITurtleUpgrade.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.turtle; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleAnimation.java b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleAnimation.java index d85d7d941..de0a28b10 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleAnimation.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleAnimation.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.turtle; /** diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleCommand.java b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleCommand.java index 50ab74f85..f532b8536 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleCommand.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.turtle; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleCommandResult.java b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleCommandResult.java index 9cc342471..f048782b9 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleCommandResult.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleCommandResult.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.turtle; import net.minecraft.core.Direction; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleRefuelHandler.java b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleRefuelHandler.java index c64d148a6..e9234c084 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleRefuelHandler.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleRefuelHandler.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.turtle; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleSide.java b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleSide.java index 53ce56f4f..b8aac57d5 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleSide.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleSide.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.turtle; /** diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleUpgradeDataProvider.java b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleUpgradeDataProvider.java index bb8d30b7d..55a4d572b 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleUpgradeDataProvider.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleUpgradeDataProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.turtle; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleUpgradeSerialiser.java b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleUpgradeSerialiser.java index d1739c109..3f5d994c0 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleUpgradeSerialiser.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleUpgradeSerialiser.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.turtle; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleUpgradeType.java b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleUpgradeType.java index bfe8fd0a9..a074a41a8 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleUpgradeType.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleUpgradeType.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.turtle; /** diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleVerb.java b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleVerb.java index 43f83131a..a19aa9dc0 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleVerb.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/turtle/TurtleVerb.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.turtle; import net.minecraft.core.Direction; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/upgrades/UpgradeBase.java b/projects/common-api/src/main/java/dan200/computercraft/api/upgrades/UpgradeBase.java index b270c03c7..643a14b9f 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/upgrades/UpgradeBase.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/upgrades/UpgradeBase.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers + +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.upgrades; import dan200.computercraft.api.pocket.IPocketUpgrade; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/upgrades/UpgradeDataProvider.java b/projects/common-api/src/main/java/dan200/computercraft/api/upgrades/UpgradeDataProvider.java index 9c04cd38a..8797aee88 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/upgrades/UpgradeDataProvider.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/upgrades/UpgradeDataProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.upgrades; import com.google.gson.JsonObject; diff --git a/projects/common-api/src/main/java/dan200/computercraft/api/upgrades/UpgradeSerialiser.java b/projects/common-api/src/main/java/dan200/computercraft/api/upgrades/UpgradeSerialiser.java index 79d0b4fbc..813f423fc 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/api/upgrades/UpgradeSerialiser.java +++ b/projects/common-api/src/main/java/dan200/computercraft/api/upgrades/UpgradeSerialiser.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.upgrades; import com.google.gson.JsonObject; diff --git a/projects/common-api/src/main/java/dan200/computercraft/impl/ComputerCraftAPIService.java b/projects/common-api/src/main/java/dan200/computercraft/impl/ComputerCraftAPIService.java index 020510308..a1da780e6 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/impl/ComputerCraftAPIService.java +++ b/projects/common-api/src/main/java/dan200/computercraft/impl/ComputerCraftAPIService.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common-api/src/main/java/dan200/computercraft/impl/PlatformHelper.java b/projects/common-api/src/main/java/dan200/computercraft/impl/PlatformHelper.java index 8e050ea41..2ed4b230b 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/impl/PlatformHelper.java +++ b/projects/common-api/src/main/java/dan200/computercraft/impl/PlatformHelper.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl; import net.minecraft.core.Registry; diff --git a/projects/common-api/src/main/java/dan200/computercraft/impl/ServiceException.java b/projects/common-api/src/main/java/dan200/computercraft/impl/ServiceException.java index fa97dea8c..81f45a6ee 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/impl/ServiceException.java +++ b/projects/common-api/src/main/java/dan200/computercraft/impl/ServiceException.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl; import org.jetbrains.annotations.ApiStatus; diff --git a/projects/common-api/src/main/java/dan200/computercraft/impl/Services.java b/projects/common-api/src/main/java/dan200/computercraft/impl/Services.java index 6bdd30b53..f37dee354 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/impl/Services.java +++ b/projects/common-api/src/main/java/dan200/computercraft/impl/Services.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl; import org.jetbrains.annotations.ApiStatus; diff --git a/projects/common-api/src/main/java/dan200/computercraft/impl/package-info.java b/projects/common-api/src/main/java/dan200/computercraft/impl/package-info.java index 03bb42a22..6551d2bd6 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/impl/package-info.java +++ b/projects/common-api/src/main/java/dan200/computercraft/impl/package-info.java @@ -1,8 +1,6 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 /** * Internal interfaces for ComputerCraft's API. diff --git a/projects/common-api/src/main/java/dan200/computercraft/impl/upgrades/SerialiserWithCraftingItem.java b/projects/common-api/src/main/java/dan200/computercraft/impl/upgrades/SerialiserWithCraftingItem.java index db9d2567a..c44c45b4f 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/impl/upgrades/SerialiserWithCraftingItem.java +++ b/projects/common-api/src/main/java/dan200/computercraft/impl/upgrades/SerialiserWithCraftingItem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl.upgrades; import com.google.gson.JsonObject; diff --git a/projects/common-api/src/main/java/dan200/computercraft/impl/upgrades/SimpleSerialiser.java b/projects/common-api/src/main/java/dan200/computercraft/impl/upgrades/SimpleSerialiser.java index 391b33e3a..c8adccd5f 100644 --- a/projects/common-api/src/main/java/dan200/computercraft/impl/upgrades/SimpleSerialiser.java +++ b/projects/common-api/src/main/java/dan200/computercraft/impl/upgrades/SimpleSerialiser.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl.upgrades; import com.google.gson.JsonObject; diff --git a/projects/common/build.gradle.kts b/projects/common/build.gradle.kts index 0efbaa220..e42b0fcb1 100644 --- a/projects/common/build.gradle.kts +++ b/projects/common/build.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + import cc.tweaked.gradle.annotationProcessorEverywhere import cc.tweaked.gradle.clientClasses import cc.tweaked.gradle.commonClasses diff --git a/projects/common/src/client/java/dan200/computercraft/client/ClientHooks.java b/projects/common/src/client/java/dan200/computercraft/client/ClientHooks.java index dcaf5ba75..d71fb5433 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/ClientHooks.java +++ b/projects/common/src/client/java/dan200/computercraft/client/ClientHooks.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client; import com.mojang.blaze3d.audio.Channel; diff --git a/projects/common/src/client/java/dan200/computercraft/client/ClientRegistry.java b/projects/common/src/client/java/dan200/computercraft/client/ClientRegistry.java index fcbaccf20..3fe549835 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/ClientRegistry.java +++ b/projects/common/src/client/java/dan200/computercraft/client/ClientRegistry.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/client/java/dan200/computercraft/client/ClientTableFormatter.java b/projects/common/src/client/java/dan200/computercraft/client/ClientTableFormatter.java index ed57b59dc..82d458ac1 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/ClientTableFormatter.java +++ b/projects/common/src/client/java/dan200/computercraft/client/ClientTableFormatter.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client; import dan200.computercraft.shared.command.text.ChatHelpers; diff --git a/projects/common/src/client/java/dan200/computercraft/client/ComputerCraftAPIClientImpl.java b/projects/common/src/client/java/dan200/computercraft/client/ComputerCraftAPIClientImpl.java index 8ebaca381..667f034bc 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/ComputerCraftAPIClientImpl.java +++ b/projects/common/src/client/java/dan200/computercraft/client/ComputerCraftAPIClientImpl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client; import com.google.auto.service.AutoService; diff --git a/projects/common/src/client/java/dan200/computercraft/client/FrameInfo.java b/projects/common/src/client/java/dan200/computercraft/client/FrameInfo.java index ec0b7f2f5..341bede35 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/FrameInfo.java +++ b/projects/common/src/client/java/dan200/computercraft/client/FrameInfo.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client; public final class FrameInfo { diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/AbstractComputerScreen.java b/projects/common/src/client/java/dan200/computercraft/client/gui/AbstractComputerScreen.java index 326032080..5fbff7920 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/AbstractComputerScreen.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/AbstractComputerScreen.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.gui; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/ClientInputHandler.java b/projects/common/src/client/java/dan200/computercraft/client/gui/ClientInputHandler.java index 9a93b6c09..d19cf0075 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/ClientInputHandler.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/ClientInputHandler.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.gui; import dan200.computercraft.client.platform.ClientPlatformHelper; diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/ComputerScreen.java b/projects/common/src/client/java/dan200/computercraft/client/gui/ComputerScreen.java index 4104a0689..ae8153e29 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/ComputerScreen.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/ComputerScreen.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.gui; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/DiskDriveScreen.java b/projects/common/src/client/java/dan200/computercraft/client/gui/DiskDriveScreen.java index 25aa1beff..77795809b 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/DiskDriveScreen.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/DiskDriveScreen.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.gui; import com.mojang.blaze3d.systems.RenderSystem; diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/ItemToast.java b/projects/common/src/client/java/dan200/computercraft/client/gui/ItemToast.java index 99c3ef6f6..60e03d791 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/ItemToast.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/ItemToast.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.gui; import com.mojang.blaze3d.systems.RenderSystem; diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/NoTermComputerScreen.java b/projects/common/src/client/java/dan200/computercraft/client/gui/NoTermComputerScreen.java index 813b1b50d..c926ad1fb 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/NoTermComputerScreen.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/NoTermComputerScreen.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.gui; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/OptionScreen.java b/projects/common/src/client/java/dan200/computercraft/client/gui/OptionScreen.java index 145991061..69a867d02 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/OptionScreen.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/OptionScreen.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.gui; import com.mojang.blaze3d.systems.RenderSystem; diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/PrinterScreen.java b/projects/common/src/client/java/dan200/computercraft/client/gui/PrinterScreen.java index efd061a91..9def7d04f 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/PrinterScreen.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/PrinterScreen.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.gui; import com.mojang.blaze3d.systems.RenderSystem; diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/PrintoutScreen.java b/projects/common/src/client/java/dan200/computercraft/client/gui/PrintoutScreen.java index 8fcfa0c3d..039258c89 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/PrintoutScreen.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/PrintoutScreen.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.gui; import com.mojang.blaze3d.systems.RenderSystem; diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/TurtleScreen.java b/projects/common/src/client/java/dan200/computercraft/client/gui/TurtleScreen.java index 3e4d1af6a..32ede3df7 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/TurtleScreen.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/TurtleScreen.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.gui; import com.mojang.blaze3d.systems.RenderSystem; diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/ComputerSidebar.java b/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/ComputerSidebar.java index 5610369b3..af685c96f 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/ComputerSidebar.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/ComputerSidebar.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.gui.widgets; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/DynamicImageButton.java b/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/DynamicImageButton.java index a8ecec2cf..6c7324688 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/DynamicImageButton.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/DynamicImageButton.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.gui.widgets; import com.mojang.blaze3d.systems.RenderSystem; diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/TerminalWidget.java b/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/TerminalWidget.java index c7ee55b51..53cc65561 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/TerminalWidget.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/TerminalWidget.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.gui.widgets; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/integration/ShaderMod.java b/projects/common/src/client/java/dan200/computercraft/client/integration/ShaderMod.java index f25562ccb..be5eb7462 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/integration/ShaderMod.java +++ b/projects/common/src/client/java/dan200/computercraft/client/integration/ShaderMod.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.integration; import dan200.computercraft.client.render.RenderTypes; diff --git a/projects/common/src/client/java/dan200/computercraft/client/model/turtle/TurtleModelParts.java b/projects/common/src/client/java/dan200/computercraft/client/model/turtle/TurtleModelParts.java index ce764e386..e5a2b7365 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/model/turtle/TurtleModelParts.java +++ b/projects/common/src/client/java/dan200/computercraft/client/model/turtle/TurtleModelParts.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.model.turtle; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/platform/AbstractClientNetworkContext.java b/projects/common/src/client/java/dan200/computercraft/client/platform/AbstractClientNetworkContext.java index 8255501d6..fa5829988 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/platform/AbstractClientNetworkContext.java +++ b/projects/common/src/client/java/dan200/computercraft/client/platform/AbstractClientNetworkContext.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.platform; import dan200.computercraft.client.ClientTableFormatter; diff --git a/projects/common/src/client/java/dan200/computercraft/client/platform/ClientPlatformHelper.java b/projects/common/src/client/java/dan200/computercraft/client/platform/ClientPlatformHelper.java index 69be24f0c..bac1422cc 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/platform/ClientPlatformHelper.java +++ b/projects/common/src/client/java/dan200/computercraft/client/platform/ClientPlatformHelper.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.platform; import dan200.computercraft.shared.network.NetworkMessage; diff --git a/projects/common/src/client/java/dan200/computercraft/client/pocket/ClientPocketComputers.java b/projects/common/src/client/java/dan200/computercraft/client/pocket/ClientPocketComputers.java index f7a7d4e6c..dc026f6b1 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/pocket/ClientPocketComputers.java +++ b/projects/common/src/client/java/dan200/computercraft/client/pocket/ClientPocketComputers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.pocket; import dan200.computercraft.shared.computer.core.ComputerFamily; diff --git a/projects/common/src/client/java/dan200/computercraft/client/pocket/PocketComputerData.java b/projects/common/src/client/java/dan200/computercraft/client/pocket/PocketComputerData.java index 42ac6cf1c..03eb09a95 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/pocket/PocketComputerData.java +++ b/projects/common/src/client/java/dan200/computercraft/client/pocket/PocketComputerData.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.pocket; import dan200.computercraft.core.terminal.Terminal; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/CableHighlightRenderer.java b/projects/common/src/client/java/dan200/computercraft/client/render/CableHighlightRenderer.java index 912e51403..6e8166df2 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/CableHighlightRenderer.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/CableHighlightRenderer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.render; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/ComputerBorderRenderer.java b/projects/common/src/client/java/dan200/computercraft/client/render/ComputerBorderRenderer.java index 450c7f228..f7bb9d72e 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/ComputerBorderRenderer.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/ComputerBorderRenderer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.render; import com.mojang.blaze3d.vertex.Tesselator; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/ItemMapLikeRenderer.java b/projects/common/src/client/java/dan200/computercraft/client/render/ItemMapLikeRenderer.java index c649295da..d5e428d1b 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/ItemMapLikeRenderer.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/ItemMapLikeRenderer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.render; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/PocketItemRenderer.java b/projects/common/src/client/java/dan200/computercraft/client/render/PocketItemRenderer.java index 9da595fbc..5fc3f11e3 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/PocketItemRenderer.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/PocketItemRenderer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.render; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/PrintoutItemRenderer.java b/projects/common/src/client/java/dan200/computercraft/client/render/PrintoutItemRenderer.java index d13b7c5db..d0aa02470 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/PrintoutItemRenderer.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/PrintoutItemRenderer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.render; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/PrintoutRenderer.java b/projects/common/src/client/java/dan200/computercraft/client/render/PrintoutRenderer.java index fc2134b27..a5c1130bb 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/PrintoutRenderer.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/PrintoutRenderer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.render; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/RenderTypes.java b/projects/common/src/client/java/dan200/computercraft/client/render/RenderTypes.java index 8ea49b9ef..0093b4947 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/RenderTypes.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/RenderTypes.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.render; import com.mojang.blaze3d.vertex.DefaultVertexFormat; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/TurtleBlockEntityRenderer.java b/projects/common/src/client/java/dan200/computercraft/client/render/TurtleBlockEntityRenderer.java index 689550922..eae29199e 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/TurtleBlockEntityRenderer.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/TurtleBlockEntityRenderer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.render; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorBlockEntityRenderer.java b/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorBlockEntityRenderer.java index 31f36704d..d1fae45d7 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorBlockEntityRenderer.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorBlockEntityRenderer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.render.monitor; import com.mojang.blaze3d.platform.GlStateManager; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorHighlightRenderer.java b/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorHighlightRenderer.java index 9fde20208..c93224332 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorHighlightRenderer.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorHighlightRenderer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.render.monitor; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorRenderState.java b/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorRenderState.java index 66efb4249..a8961b726 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorRenderState.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorRenderState.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.render.monitor; import com.google.errorprone.annotations.concurrent.GuardedBy; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorTextureBufferShader.java b/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorTextureBufferShader.java index a4edec66e..a65f87c5a 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorTextureBufferShader.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/monitor/MonitorTextureBufferShader.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.render.monitor; import com.mojang.blaze3d.shaders.Uniform; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/text/DirectFixedWidthFontRenderer.java b/projects/common/src/client/java/dan200/computercraft/client/render/text/DirectFixedWidthFontRenderer.java index 7bb4f9191..2c60efb58 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/text/DirectFixedWidthFontRenderer.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/text/DirectFixedWidthFontRenderer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.render.text; import com.mojang.blaze3d.platform.MemoryTracker; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/text/FixedWidthFontRenderer.java b/projects/common/src/client/java/dan200/computercraft/client/render/text/FixedWidthFontRenderer.java index 12e776f68..1111d06d3 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/text/FixedWidthFontRenderer.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/text/FixedWidthFontRenderer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.render.text; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/vbo/DirectBuffers.java b/projects/common/src/client/java/dan200/computercraft/client/render/vbo/DirectBuffers.java index ff4453e72..0c04be326 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/vbo/DirectBuffers.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/vbo/DirectBuffers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.render.vbo; import com.mojang.blaze3d.platform.GlStateManager; diff --git a/projects/common/src/client/java/dan200/computercraft/client/render/vbo/DirectVertexBuffer.java b/projects/common/src/client/java/dan200/computercraft/client/render/vbo/DirectVertexBuffer.java index 525e45c6e..db511b29d 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/render/vbo/DirectVertexBuffer.java +++ b/projects/common/src/client/java/dan200/computercraft/client/render/vbo/DirectVertexBuffer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.render.vbo; import com.mojang.blaze3d.systems.RenderSystem; diff --git a/projects/common/src/client/java/dan200/computercraft/client/sound/DfpwmStream.java b/projects/common/src/client/java/dan200/computercraft/client/sound/DfpwmStream.java index f716d41b9..ef01027e6 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/sound/DfpwmStream.java +++ b/projects/common/src/client/java/dan200/computercraft/client/sound/DfpwmStream.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.sound; import com.mojang.blaze3d.audio.Channel; diff --git a/projects/common/src/client/java/dan200/computercraft/client/sound/SpeakerInstance.java b/projects/common/src/client/java/dan200/computercraft/client/sound/SpeakerInstance.java index 0ac5a8429..ca336b4d1 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/sound/SpeakerInstance.java +++ b/projects/common/src/client/java/dan200/computercraft/client/sound/SpeakerInstance.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.sound; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/client/java/dan200/computercraft/client/sound/SpeakerManager.java b/projects/common/src/client/java/dan200/computercraft/client/sound/SpeakerManager.java index 564e00bc6..8e2625dce 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/sound/SpeakerManager.java +++ b/projects/common/src/client/java/dan200/computercraft/client/sound/SpeakerManager.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.sound; import com.mojang.blaze3d.audio.Channel; diff --git a/projects/common/src/client/java/dan200/computercraft/client/sound/SpeakerSound.java b/projects/common/src/client/java/dan200/computercraft/client/sound/SpeakerSound.java index 9f9fed1dc..bc69d46fd 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/sound/SpeakerSound.java +++ b/projects/common/src/client/java/dan200/computercraft/client/sound/SpeakerSound.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.sound; import dan200.computercraft.annotations.FabricOverride; diff --git a/projects/common/src/client/java/dan200/computercraft/client/turtle/TurtleModemModeller.java b/projects/common/src/client/java/dan200/computercraft/client/turtle/TurtleModemModeller.java index 7c22827a4..6c10822c5 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/turtle/TurtleModemModeller.java +++ b/projects/common/src/client/java/dan200/computercraft/client/turtle/TurtleModemModeller.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.client.turtle; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/client/java/dan200/computercraft/client/turtle/TurtleUpgradeModellers.java b/projects/common/src/client/java/dan200/computercraft/client/turtle/TurtleUpgradeModellers.java index db5efd966..302629ddf 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/turtle/TurtleUpgradeModellers.java +++ b/projects/common/src/client/java/dan200/computercraft/client/turtle/TurtleUpgradeModellers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.turtle; import com.mojang.math.Transformation; diff --git a/projects/common/src/client/java/dan200/computercraft/mixin/client/ClientPacketListenerMixin.java b/projects/common/src/client/java/dan200/computercraft/mixin/client/ClientPacketListenerMixin.java index b23eb6a8d..08380209d 100644 --- a/projects/common/src/client/java/dan200/computercraft/mixin/client/ClientPacketListenerMixin.java +++ b/projects/common/src/client/java/dan200/computercraft/mixin/client/ClientPacketListenerMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.client; import dan200.computercraft.client.ClientHooks; diff --git a/projects/common/src/main/java/dan200/computercraft/annotations/FabricOverride.java b/projects/common/src/main/java/dan200/computercraft/annotations/FabricOverride.java index f42c1b989..c1ea87575 100644 --- a/projects/common/src/main/java/dan200/computercraft/annotations/FabricOverride.java +++ b/projects/common/src/main/java/dan200/computercraft/annotations/FabricOverride.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.annotations; import java.lang.annotation.*; diff --git a/projects/common/src/main/java/dan200/computercraft/annotations/ForgeOverride.java b/projects/common/src/main/java/dan200/computercraft/annotations/ForgeOverride.java index 76370f176..847f1e480 100644 --- a/projects/common/src/main/java/dan200/computercraft/annotations/ForgeOverride.java +++ b/projects/common/src/main/java/dan200/computercraft/annotations/ForgeOverride.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.annotations; import java.lang.annotation.*; diff --git a/projects/common/src/main/java/dan200/computercraft/data/BlockModelProvider.java b/projects/common/src/main/java/dan200/computercraft/data/BlockModelProvider.java index 583df2b77..7b40cd2dd 100644 --- a/projects/common/src/main/java/dan200/computercraft/data/BlockModelProvider.java +++ b/projects/common/src/main/java/dan200/computercraft/data/BlockModelProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import com.google.gson.JsonObject; diff --git a/projects/common/src/main/java/dan200/computercraft/data/DataProviders.java b/projects/common/src/main/java/dan200/computercraft/data/DataProviders.java index 155244234..5f4223f8e 100644 --- a/projects/common/src/main/java/dan200/computercraft/data/DataProviders.java +++ b/projects/common/src/main/java/dan200/computercraft/data/DataProviders.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import net.minecraft.data.DataProvider; diff --git a/projects/common/src/main/java/dan200/computercraft/data/ItemModelProvider.java b/projects/common/src/main/java/dan200/computercraft/data/ItemModelProvider.java index f501d2580..ac80bc9a5 100644 --- a/projects/common/src/main/java/dan200/computercraft/data/ItemModelProvider.java +++ b/projects/common/src/main/java/dan200/computercraft/data/ItemModelProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/data/LanguageProvider.java b/projects/common/src/main/java/dan200/computercraft/data/LanguageProvider.java index 2c20a0911..4a99c1ed4 100644 --- a/projects/common/src/main/java/dan200/computercraft/data/LanguageProvider.java +++ b/projects/common/src/main/java/dan200/computercraft/data/LanguageProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import com.google.gson.JsonObject; diff --git a/projects/common/src/main/java/dan200/computercraft/data/LootTableProvider.java b/projects/common/src/main/java/dan200/computercraft/data/LootTableProvider.java index 2e78d5361..720af5676 100644 --- a/projects/common/src/main/java/dan200/computercraft/data/LootTableProvider.java +++ b/projects/common/src/main/java/dan200/computercraft/data/LootTableProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/data/ModelProvider.java b/projects/common/src/main/java/dan200/computercraft/data/ModelProvider.java index 34d74ad3a..0e0fd8381 100644 --- a/projects/common/src/main/java/dan200/computercraft/data/ModelProvider.java +++ b/projects/common/src/main/java/dan200/computercraft/data/ModelProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import com.google.gson.JsonElement; diff --git a/projects/common/src/main/java/dan200/computercraft/data/PocketUpgradeProvider.java b/projects/common/src/main/java/dan200/computercraft/data/PocketUpgradeProvider.java index b18d41461..d9c4f27ca 100644 --- a/projects/common/src/main/java/dan200/computercraft/data/PocketUpgradeProvider.java +++ b/projects/common/src/main/java/dan200/computercraft/data/PocketUpgradeProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/data/PrettyJsonWriter.java b/projects/common/src/main/java/dan200/computercraft/data/PrettyJsonWriter.java index 39834fec7..bca1da7ba 100644 --- a/projects/common/src/main/java/dan200/computercraft/data/PrettyJsonWriter.java +++ b/projects/common/src/main/java/dan200/computercraft/data/PrettyJsonWriter.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import com.google.gson.Gson; diff --git a/projects/common/src/main/java/dan200/computercraft/data/RecipeProvider.java b/projects/common/src/main/java/dan200/computercraft/data/RecipeProvider.java index 41cdf8ada..38714b1d6 100644 --- a/projects/common/src/main/java/dan200/computercraft/data/RecipeProvider.java +++ b/projects/common/src/main/java/dan200/computercraft/data/RecipeProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import com.google.gson.JsonObject; diff --git a/projects/common/src/main/java/dan200/computercraft/data/RecipeWrapper.java b/projects/common/src/main/java/dan200/computercraft/data/RecipeWrapper.java index a82c14c32..3d31c98f0 100644 --- a/projects/common/src/main/java/dan200/computercraft/data/RecipeWrapper.java +++ b/projects/common/src/main/java/dan200/computercraft/data/RecipeWrapper.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import com.google.gson.JsonObject; diff --git a/projects/common/src/main/java/dan200/computercraft/data/TagProvider.java b/projects/common/src/main/java/dan200/computercraft/data/TagProvider.java index 57df956dd..d72e1d9eb 100644 --- a/projects/common/src/main/java/dan200/computercraft/data/TagProvider.java +++ b/projects/common/src/main/java/dan200/computercraft/data/TagProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import dan200.computercraft.api.ComputerCraftTags; diff --git a/projects/common/src/main/java/dan200/computercraft/data/TurtleUpgradeProvider.java b/projects/common/src/main/java/dan200/computercraft/data/TurtleUpgradeProvider.java index 0425b5a0d..535b901f7 100644 --- a/projects/common/src/main/java/dan200/computercraft/data/TurtleUpgradeProvider.java +++ b/projects/common/src/main/java/dan200/computercraft/data/TurtleUpgradeProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/impl/AbstractComputerCraftAPI.java b/projects/common/src/main/java/dan200/computercraft/impl/AbstractComputerCraftAPI.java index 7aca97e73..32384cee0 100644 --- a/projects/common/src/main/java/dan200/computercraft/impl/AbstractComputerCraftAPI.java +++ b/projects/common/src/main/java/dan200/computercraft/impl/AbstractComputerCraftAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl; import dan200.computercraft.api.detail.BlockReference; diff --git a/projects/common/src/main/java/dan200/computercraft/impl/BundledRedstone.java b/projects/common/src/main/java/dan200/computercraft/impl/BundledRedstone.java index 0c571fc36..d11791874 100644 --- a/projects/common/src/main/java/dan200/computercraft/impl/BundledRedstone.java +++ b/projects/common/src/main/java/dan200/computercraft/impl/BundledRedstone.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.impl; import dan200.computercraft.api.redstone.BundledRedstoneProvider; diff --git a/projects/common/src/main/java/dan200/computercraft/impl/MediaProviders.java b/projects/common/src/main/java/dan200/computercraft/impl/MediaProviders.java index cfb589760..dc6590fd4 100644 --- a/projects/common/src/main/java/dan200/computercraft/impl/MediaProviders.java +++ b/projects/common/src/main/java/dan200/computercraft/impl/MediaProviders.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.impl; import dan200.computercraft.api.media.IMedia; diff --git a/projects/common/src/main/java/dan200/computercraft/impl/PocketUpgrades.java b/projects/common/src/main/java/dan200/computercraft/impl/PocketUpgrades.java index bb4717069..ac702d058 100644 --- a/projects/common/src/main/java/dan200/computercraft/impl/PocketUpgrades.java +++ b/projects/common/src/main/java/dan200/computercraft/impl/PocketUpgrades.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/impl/TurtleRefuelHandlers.java b/projects/common/src/main/java/dan200/computercraft/impl/TurtleRefuelHandlers.java index 0ef11abc1..9b2bf8ffc 100644 --- a/projects/common/src/main/java/dan200/computercraft/impl/TurtleRefuelHandlers.java +++ b/projects/common/src/main/java/dan200/computercraft/impl/TurtleRefuelHandlers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/impl/TurtleUpgrades.java b/projects/common/src/main/java/dan200/computercraft/impl/TurtleUpgrades.java index d1a710ab5..b377d89b6 100644 --- a/projects/common/src/main/java/dan200/computercraft/impl/TurtleUpgrades.java +++ b/projects/common/src/main/java/dan200/computercraft/impl/TurtleUpgrades.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/impl/UpgradeManager.java b/projects/common/src/main/java/dan200/computercraft/impl/UpgradeManager.java index c763ad21e..440d4bd2b 100644 --- a/projects/common/src/main/java/dan200/computercraft/impl/UpgradeManager.java +++ b/projects/common/src/main/java/dan200/computercraft/impl/UpgradeManager.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl; import com.google.gson.*; diff --git a/projects/common/src/main/java/dan200/computercraft/impl/detail/DetailRegistryImpl.java b/projects/common/src/main/java/dan200/computercraft/impl/detail/DetailRegistryImpl.java index 3a546731c..3f16b6893 100644 --- a/projects/common/src/main/java/dan200/computercraft/impl/detail/DetailRegistryImpl.java +++ b/projects/common/src/main/java/dan200/computercraft/impl/detail/DetailRegistryImpl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl.detail; import dan200.computercraft.api.detail.DetailProvider; diff --git a/projects/common/src/main/java/dan200/computercraft/impl/network/wired/InvariantChecker.java b/projects/common/src/main/java/dan200/computercraft/impl/network/wired/InvariantChecker.java index 53c113271..ea69bbbc4 100644 --- a/projects/common/src/main/java/dan200/computercraft/impl/network/wired/InvariantChecker.java +++ b/projects/common/src/main/java/dan200/computercraft/impl/network/wired/InvariantChecker.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl.network.wired; import org.slf4j.Logger; diff --git a/projects/common/src/main/java/dan200/computercraft/impl/network/wired/WiredNetworkChangeImpl.java b/projects/common/src/main/java/dan200/computercraft/impl/network/wired/WiredNetworkChangeImpl.java index 071a573b8..f4ee29920 100644 --- a/projects/common/src/main/java/dan200/computercraft/impl/network/wired/WiredNetworkChangeImpl.java +++ b/projects/common/src/main/java/dan200/computercraft/impl/network/wired/WiredNetworkChangeImpl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl.network.wired; import dan200.computercraft.api.network.wired.WiredNetworkChange; diff --git a/projects/common/src/main/java/dan200/computercraft/impl/network/wired/WiredNetworkImpl.java b/projects/common/src/main/java/dan200/computercraft/impl/network/wired/WiredNetworkImpl.java index 00cf1a5b2..5d58a0420 100644 --- a/projects/common/src/main/java/dan200/computercraft/impl/network/wired/WiredNetworkImpl.java +++ b/projects/common/src/main/java/dan200/computercraft/impl/network/wired/WiredNetworkImpl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl.network.wired; import com.google.common.collect.ImmutableMap; diff --git a/projects/common/src/main/java/dan200/computercraft/impl/network/wired/WiredNodeImpl.java b/projects/common/src/main/java/dan200/computercraft/impl/network/wired/WiredNodeImpl.java index 38d1b9700..889c3839b 100644 --- a/projects/common/src/main/java/dan200/computercraft/impl/network/wired/WiredNodeImpl.java +++ b/projects/common/src/main/java/dan200/computercraft/impl/network/wired/WiredNodeImpl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl.network.wired; import dan200.computercraft.api.network.Packet; diff --git a/projects/common/src/main/java/dan200/computercraft/mixin/CacheUpdaterMixin.java b/projects/common/src/main/java/dan200/computercraft/mixin/CacheUpdaterMixin.java index be8cbe215..79e3a9279 100644 --- a/projects/common/src/main/java/dan200/computercraft/mixin/CacheUpdaterMixin.java +++ b/projects/common/src/main/java/dan200/computercraft/mixin/CacheUpdaterMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin; import dan200.computercraft.data.PrettyJsonWriter; diff --git a/projects/common/src/main/java/dan200/computercraft/mixin/ExplosionAccessor.java b/projects/common/src/main/java/dan200/computercraft/mixin/ExplosionAccessor.java index b67669dc9..12f742a96 100644 --- a/projects/common/src/main/java/dan200/computercraft/mixin/ExplosionAccessor.java +++ b/projects/common/src/main/java/dan200/computercraft/mixin/ExplosionAccessor.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin; import net.minecraft.world.entity.Entity; diff --git a/projects/common/src/main/java/dan200/computercraft/package-info.java b/projects/common/src/main/java/dan200/computercraft/package-info.java index f27cf0ee1..415251791 100644 --- a/projects/common/src/main/java/dan200/computercraft/package-info.java +++ b/projects/common/src/main/java/dan200/computercraft/package-info.java @@ -1,8 +1,6 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 /** * ComputerCraft's core Lua runtime and APIs. diff --git a/projects/common/src/main/java/dan200/computercraft/shared/CommonHooks.java b/projects/common/src/main/java/dan200/computercraft/shared/CommonHooks.java index a1d12c9da..6e68bcf22 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/CommonHooks.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/CommonHooks.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/ModRegistry.java b/projects/common/src/main/java/dan200/computercraft/shared/ModRegistry.java index 3d642293c..4b617d163 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/ModRegistry.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/ModRegistry.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared; import com.mojang.brigadier.arguments.ArgumentType; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/CommandComputerCraft.java b/projects/common/src/main/java/dan200/computercraft/shared/command/CommandComputerCraft.java index 1095b1dd2..e8296c10a 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/CommandComputerCraft.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/CommandComputerCraft.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command; import com.mojang.brigadier.CommandDispatcher; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/CommandUtils.java b/projects/common/src/main/java/dan200/computercraft/shared/command/CommandUtils.java index 9453fa089..2494759c9 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/CommandUtils.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/CommandUtils.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command; import com.mojang.brigadier.context.CommandContext; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/Exceptions.java b/projects/common/src/main/java/dan200/computercraft/shared/command/Exceptions.java index f3e9d54d6..bf1ccdd1f 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/Exceptions.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/Exceptions.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command; import com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/UserLevel.java b/projects/common/src/main/java/dan200/computercraft/shared/command/UserLevel.java index 7e5b3c099..2d9438121 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/UserLevel.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/UserLevel.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command; import net.minecraft.commands.CommandSourceStack; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ArgumentUtils.java b/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ArgumentUtils.java index 5a53c0feb..dfe3f9dfa 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ArgumentUtils.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ArgumentUtils.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.arguments; import com.google.gson.JsonObject; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ChoiceArgumentType.java b/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ChoiceArgumentType.java index 56596bf0a..90aaece77 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ChoiceArgumentType.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ChoiceArgumentType.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.arguments; import com.mojang.brigadier.Message; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ComputerArgumentType.java b/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ComputerArgumentType.java index c62ce011c..5e8a4f03d 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ComputerArgumentType.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ComputerArgumentType.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.arguments; import com.mojang.brigadier.StringReader; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ComputersArgumentType.java b/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ComputersArgumentType.java index 8979d3ef0..f67200b9c 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ComputersArgumentType.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/ComputersArgumentType.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.arguments; import com.google.gson.JsonObject; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/RepeatArgumentType.java b/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/RepeatArgumentType.java index 3a94ad946..bc35280b2 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/RepeatArgumentType.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/RepeatArgumentType.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.arguments; import com.google.gson.JsonObject; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/TrackingFieldArgumentType.java b/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/TrackingFieldArgumentType.java index 6b2790d51..3295a533e 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/TrackingFieldArgumentType.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/arguments/TrackingFieldArgumentType.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.arguments; import dan200.computercraft.shared.command.Exceptions; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/builder/ArgCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/command/builder/ArgCommand.java index c2a3614ad..dfe1447af 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/builder/ArgCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/builder/ArgCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.builder; import com.mojang.brigadier.Command; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/builder/CommandBuilder.java b/projects/common/src/main/java/dan200/computercraft/shared/command/builder/CommandBuilder.java index b77123df1..3fe77ff48 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/builder/CommandBuilder.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/builder/CommandBuilder.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.builder; import com.mojang.brigadier.Command; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/builder/CommandNodeBuilder.java b/projects/common/src/main/java/dan200/computercraft/shared/command/builder/CommandNodeBuilder.java index fee6ea513..e83a6d508 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/builder/CommandNodeBuilder.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/builder/CommandNodeBuilder.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.builder; import com.mojang.brigadier.tree.CommandNode; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/builder/HelpingArgumentBuilder.java b/projects/common/src/main/java/dan200/computercraft/shared/command/builder/HelpingArgumentBuilder.java index e7a242589..be5cf53dc 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/builder/HelpingArgumentBuilder.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/builder/HelpingArgumentBuilder.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.builder; import com.mojang.brigadier.Command; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/text/ChatHelpers.java b/projects/common/src/main/java/dan200/computercraft/shared/command/text/ChatHelpers.java index 7097a87b5..ee67107d6 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/text/ChatHelpers.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/text/ChatHelpers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.text; import net.minecraft.ChatFormatting; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/text/ServerTableFormatter.java b/projects/common/src/main/java/dan200/computercraft/shared/command/text/ServerTableFormatter.java index 597acd224..f46138d12 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/text/ServerTableFormatter.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/text/ServerTableFormatter.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.text; import net.minecraft.commands.CommandSourceStack; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/text/TableBuilder.java b/projects/common/src/main/java/dan200/computercraft/shared/command/text/TableBuilder.java index b03086be9..fa683ab1f 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/text/TableBuilder.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/text/TableBuilder.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.text; import dan200.computercraft.core.util.Nullability; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/command/text/TableFormatter.java b/projects/common/src/main/java/dan200/computercraft/shared/command/text/TableFormatter.java index 9fdbb81c2..71da31539 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/command/text/TableFormatter.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/command/text/TableFormatter.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.command.text; import net.minecraft.ChatFormatting; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/common/AbstractContainerBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/common/AbstractContainerBlockEntity.java index 25aa83376..825e4bd7c 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/common/AbstractContainerBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/common/AbstractContainerBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.common; import dan200.computercraft.shared.container.BasicContainer; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/common/ClearColourRecipe.java b/projects/common/src/main/java/dan200/computercraft/shared/common/ClearColourRecipe.java index 35ecc47e8..cfcec37bc 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/common/ClearColourRecipe.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/common/ClearColourRecipe.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.common; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/common/ColourableRecipe.java b/projects/common/src/main/java/dan200/computercraft/shared/common/ColourableRecipe.java index 8fb422a18..3fc926ed2 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/common/ColourableRecipe.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/common/ColourableRecipe.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.common; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/common/DefaultBundledRedstoneProvider.java b/projects/common/src/main/java/dan200/computercraft/shared/common/DefaultBundledRedstoneProvider.java index 5a2767d7e..a824aef72 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/common/DefaultBundledRedstoneProvider.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/common/DefaultBundledRedstoneProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.common; import dan200.computercraft.api.redstone.BundledRedstoneProvider; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/common/HeldItemMenu.java b/projects/common/src/main/java/dan200/computercraft/shared/common/HeldItemMenu.java index 4a6fafedb..bd256a8d4 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/common/HeldItemMenu.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/common/HeldItemMenu.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.common; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/common/HorizontalContainerBlock.java b/projects/common/src/main/java/dan200/computercraft/shared/common/HorizontalContainerBlock.java index c358ef354..ab8b4965b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/common/HorizontalContainerBlock.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/common/HorizontalContainerBlock.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.common; import net.minecraft.core.BlockPos; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/common/IBundledRedstoneBlock.java b/projects/common/src/main/java/dan200/computercraft/shared/common/IBundledRedstoneBlock.java index db3fad4d0..e1b93c96d 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/common/IBundledRedstoneBlock.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/common/IBundledRedstoneBlock.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.common; import net.minecraft.core.BlockPos; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/common/IColouredItem.java b/projects/common/src/main/java/dan200/computercraft/shared/common/IColouredItem.java index f5c1e545e..7357530e0 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/common/IColouredItem.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/common/IColouredItem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.common; import net.minecraft.world.item.ItemStack; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/apis/CommandAPI.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/apis/CommandAPI.java index 180ae8dfb..7a59845b0 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/apis/CommandAPI.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/apis/CommandAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.apis; import com.mojang.brigadier.tree.CommandNode; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/AbstractComputerBlock.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/AbstractComputerBlock.java index ed8aaf512..bcd69909a 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/AbstractComputerBlock.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/AbstractComputerBlock.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.blocks; import dan200.computercraft.annotations.ForgeOverride; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/AbstractComputerBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/AbstractComputerBlockEntity.java index 28b398490..d72c34c51 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/AbstractComputerBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/AbstractComputerBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.blocks; import com.google.common.base.Strings; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/CommandComputerBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/CommandComputerBlockEntity.java index 74ec4e517..86a4e8454 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/CommandComputerBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/CommandComputerBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.blocks; import dan200.computercraft.shared.computer.apis.CommandAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/ComputerBlock.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/ComputerBlock.java index 8d4d20530..ba22baf20 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/ComputerBlock.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/ComputerBlock.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.blocks; import dan200.computercraft.shared.computer.core.ComputerFamily; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/ComputerBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/ComputerBlockEntity.java index 29643a05e..598841758 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/ComputerBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/ComputerBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.blocks; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/ComputerPeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/ComputerPeripheral.java index c109dae85..44db65e9f 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/ComputerPeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/ComputerPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.blocks; import dan200.computercraft.api.lua.LuaFunction; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/IComputerBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/IComputerBlockEntity.java index d50949874..226f179a6 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/IComputerBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/blocks/IComputerBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.blocks; import dan200.computercraft.shared.computer.core.ComputerFamily; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ComputerFamily.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ComputerFamily.java index 606a16444..1944df94e 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ComputerFamily.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ComputerFamily.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.core; public enum ComputerFamily { diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ComputerState.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ComputerState.java index 6ab80f23b..b226fb5c2 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ComputerState.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ComputerState.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.core; import net.minecraft.util.StringRepresentable; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/InputHandler.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/InputHandler.java index 2eb3b2cf4..c5108e874 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/InputHandler.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/InputHandler.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.core; import dan200.computercraft.shared.computer.menu.ServerInputHandler; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ResourceMount.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ResourceMount.java index cc7423561..f39f1913c 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ResourceMount.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ResourceMount.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.core; import com.google.common.annotations.VisibleForTesting; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ServerComputer.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ServerComputer.java index eedd886d0..23eb06216 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ServerComputer.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ServerComputer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.core; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ServerComputerRegistry.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ServerComputerRegistry.java index 8c563d3a2..1c53aaabb 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ServerComputerRegistry.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ServerComputerRegistry.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.core; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ServerContext.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ServerContext.java index d2bc371bc..8f9896b19 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ServerContext.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/core/ServerContext.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.core; import com.google.common.annotations.VisibleForTesting; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/inventory/AbstractComputerMenu.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/inventory/AbstractComputerMenu.java index ae2914f48..c4d6d333e 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/inventory/AbstractComputerMenu.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/inventory/AbstractComputerMenu.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.inventory; import dan200.computercraft.core.terminal.Terminal; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/inventory/ComputerMenuWithoutInventory.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/inventory/ComputerMenuWithoutInventory.java index 1828813f5..c3bf43dfd 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/inventory/ComputerMenuWithoutInventory.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/inventory/ComputerMenuWithoutInventory.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.inventory; import dan200.computercraft.shared.computer.core.ComputerFamily; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/inventory/ViewComputerMenu.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/inventory/ViewComputerMenu.java index c9ab054a5..1765c30a3 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/inventory/ViewComputerMenu.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/inventory/ViewComputerMenu.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.inventory; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/items/AbstractComputerItem.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/items/AbstractComputerItem.java index 0fbf678d5..447bb8b11 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/items/AbstractComputerItem.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/items/AbstractComputerItem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.items; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/items/ComputerItem.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/items/ComputerItem.java index e2ea2f527..350d11c9b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/items/ComputerItem.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/items/ComputerItem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.items; import dan200.computercraft.shared.computer.blocks.ComputerBlock; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/items/ComputerItemFactory.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/items/ComputerItemFactory.java index 6455f9844..127b47903 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/items/ComputerItemFactory.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/items/ComputerItemFactory.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.items; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/items/IComputerItem.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/items/IComputerItem.java index 8c1b0c65a..c88b93916 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/items/IComputerItem.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/items/IComputerItem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.items; import dan200.computercraft.shared.computer.core.ComputerFamily; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/menu/ComputerMenu.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/menu/ComputerMenu.java index 3de83775f..193262050 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/menu/ComputerMenu.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/menu/ComputerMenu.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.menu; import dan200.computercraft.shared.computer.core.ServerComputer; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/menu/ServerInputHandler.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/menu/ServerInputHandler.java index 3ec14a0e3..881ec3e8a 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/menu/ServerInputHandler.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/menu/ServerInputHandler.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.menu; import dan200.computercraft.shared.computer.core.InputHandler; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/menu/ServerInputState.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/menu/ServerInputState.java index fb11ea4c7..18234530a 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/menu/ServerInputState.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/menu/ServerInputState.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.menu; import dan200.computercraft.shared.computer.upload.*; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/ComputerMBean.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/ComputerMBean.java index 2e85719b1..e2efc3c73 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/ComputerMBean.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/ComputerMBean.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.metrics; import com.google.common.base.CaseFormat; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/ComputerMetricsObserver.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/ComputerMetricsObserver.java index f07e3e154..6a0d7edff 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/ComputerMetricsObserver.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/ComputerMetricsObserver.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.metrics; import dan200.computercraft.core.metrics.Metric; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/GlobalMetrics.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/GlobalMetrics.java index 0c4ae1572..b7fb19b62 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/GlobalMetrics.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/GlobalMetrics.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.metrics; import dan200.computercraft.core.metrics.Metric; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/Aggregate.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/Aggregate.java index b9e88cfd7..ae9669504 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/Aggregate.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/Aggregate.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.metrics.basic; import dan200.computercraft.core.metrics.Metric; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/AggregatedMetric.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/AggregatedMetric.java index 6457526d5..91f10a62a 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/AggregatedMetric.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/AggregatedMetric.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.metrics.basic; import dan200.computercraft.core.metrics.Metric; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/BasicComputerMetricsObserver.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/BasicComputerMetricsObserver.java index 41e9aabcc..2738cb63b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/BasicComputerMetricsObserver.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/BasicComputerMetricsObserver.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.metrics.basic; import com.google.common.collect.MapMaker; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/ComputerMetrics.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/ComputerMetrics.java index 996c06b48..91d63d58e 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/ComputerMetrics.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/metrics/basic/ComputerMetrics.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.metrics.basic; import dan200.computercraft.core.metrics.Metric; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/recipe/ComputerConvertRecipe.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/recipe/ComputerConvertRecipe.java index f4a209568..6ea7096a4 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/recipe/ComputerConvertRecipe.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/recipe/ComputerConvertRecipe.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.recipe; import dan200.computercraft.shared.computer.items.IComputerItem; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/recipe/ComputerFamilyRecipe.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/recipe/ComputerFamilyRecipe.java index efa6d2425..a87a4f987 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/recipe/ComputerFamilyRecipe.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/recipe/ComputerFamilyRecipe.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.recipe; import com.google.gson.JsonObject; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/recipe/ComputerUpgradeRecipe.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/recipe/ComputerUpgradeRecipe.java index ab9129898..8a5e530fa 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/recipe/ComputerUpgradeRecipe.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/recipe/ComputerUpgradeRecipe.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.recipe; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/terminal/NetworkedTerminal.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/terminal/NetworkedTerminal.java index ca8faf505..99734a9f8 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/terminal/NetworkedTerminal.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/terminal/NetworkedTerminal.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.computer.terminal; import dan200.computercraft.core.terminal.Palette; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/terminal/TerminalState.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/terminal/TerminalState.java index c0e91861a..ae9b3237c 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/terminal/TerminalState.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/terminal/TerminalState.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.terminal; import io.netty.buffer.ByteBuf; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/FileSlice.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/FileSlice.java index ab069f733..31367b283 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/FileSlice.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/FileSlice.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.upload; import org.slf4j.Logger; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/FileUpload.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/FileUpload.java index ac775bd36..e1d371b99 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/FileUpload.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/FileUpload.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.upload; import org.slf4j.Logger; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/TransferredFile.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/TransferredFile.java index 2e48a8bc9..687ea6989 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/TransferredFile.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/TransferredFile.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.upload; import dan200.computercraft.api.lua.LuaFunction; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/TransferredFiles.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/TransferredFiles.java index 346867bd0..c46841160 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/TransferredFiles.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/TransferredFiles.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.upload; import dan200.computercraft.api.lua.LuaFunction; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/UploadResult.java b/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/UploadResult.java index 92525e436..73c6ecf24 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/UploadResult.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/computer/upload/UploadResult.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.upload; import net.minecraft.network.chat.Component; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/config/AddressRuleConfig.java b/projects/common/src/main/java/dan200/computercraft/shared/config/AddressRuleConfig.java index 50ad30b42..cc1db0bee 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/config/AddressRuleConfig.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/config/AddressRuleConfig.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.config; import com.electronwill.nightconfig.core.Config; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/config/Config.java b/projects/common/src/main/java/dan200/computercraft/shared/config/Config.java index b332ea146..a98bb657e 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/config/Config.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/config/Config.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.config; import dan200.computercraft.shared.peripheral.monitor.MonitorRenderer; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/config/ConfigFile.java b/projects/common/src/main/java/dan200/computercraft/shared/config/ConfigFile.java index 995329e3c..346fb5e49 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/config/ConfigFile.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/config/ConfigFile.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.config; import com.google.common.base.Splitter; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/config/ConfigSpec.java b/projects/common/src/main/java/dan200/computercraft/shared/config/ConfigSpec.java index a10b5cfe5..f6fa9573e 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/config/ConfigSpec.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/config/ConfigSpec.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.config; import com.electronwill.nightconfig.core.UnmodifiableConfig; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/container/BasicContainer.java b/projects/common/src/main/java/dan200/computercraft/shared/container/BasicContainer.java index 609e09eb4..22c64b744 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/container/BasicContainer.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/container/BasicContainer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.container; import net.minecraft.core.NonNullList; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/container/BasicWorldlyContainer.java b/projects/common/src/main/java/dan200/computercraft/shared/container/BasicWorldlyContainer.java index 14c1adf57..3477fa16b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/container/BasicWorldlyContainer.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/container/BasicWorldlyContainer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.container; import net.minecraft.core.Direction; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/container/InventoryDelegate.java b/projects/common/src/main/java/dan200/computercraft/shared/container/InventoryDelegate.java index b2bff261e..6d65be18b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/container/InventoryDelegate.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/container/InventoryDelegate.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.container; import net.minecraft.world.Container; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/container/InvisibleSlot.java b/projects/common/src/main/java/dan200/computercraft/shared/container/InvisibleSlot.java index 365fb8ce8..9a002bf84 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/container/InvisibleSlot.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/container/InvisibleSlot.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.container; import net.minecraft.world.Container; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/container/SingleContainerData.java b/projects/common/src/main/java/dan200/computercraft/shared/container/SingleContainerData.java index e5d623120..d4d497982 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/container/SingleContainerData.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/container/SingleContainerData.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.container; import net.minecraft.world.inventory.ContainerData; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/container/ValidatingSlot.java b/projects/common/src/main/java/dan200/computercraft/shared/container/ValidatingSlot.java index dec3dc102..21c780a03 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/container/ValidatingSlot.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/container/ValidatingSlot.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.container; import net.minecraft.world.Container; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/data/BlockNamedEntityLootCondition.java b/projects/common/src/main/java/dan200/computercraft/shared/data/BlockNamedEntityLootCondition.java index b03cfdd2f..81f295772 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/data/BlockNamedEntityLootCondition.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/data/BlockNamedEntityLootCondition.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.data; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/data/ConstantLootConditionSerializer.java b/projects/common/src/main/java/dan200/computercraft/shared/data/ConstantLootConditionSerializer.java index b4ef6d9ec..75e6b3f3a 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/data/ConstantLootConditionSerializer.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/data/ConstantLootConditionSerializer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.data; import com.google.gson.JsonDeserializationContext; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/data/HasComputerIdLootCondition.java b/projects/common/src/main/java/dan200/computercraft/shared/data/HasComputerIdLootCondition.java index dbfcbf5ab..da73a0b4c 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/data/HasComputerIdLootCondition.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/data/HasComputerIdLootCondition.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.data; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/data/PlayerCreativeLootCondition.java b/projects/common/src/main/java/dan200/computercraft/shared/data/PlayerCreativeLootCondition.java index 745c1d806..36e248f64 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/data/PlayerCreativeLootCondition.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/data/PlayerCreativeLootCondition.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.data; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/details/BlockDetails.java b/projects/common/src/main/java/dan200/computercraft/shared/details/BlockDetails.java index c9e240742..b32ea9ecb 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/details/BlockDetails.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/details/BlockDetails.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.details; import dan200.computercraft.api.detail.BlockReference; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/details/DetailHelpers.java b/projects/common/src/main/java/dan200/computercraft/shared/details/DetailHelpers.java index e0869dd1c..38dac942c 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/details/DetailHelpers.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/details/DetailHelpers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.details; import dan200.computercraft.shared.platform.RegistryWrappers; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/details/ItemDetails.java b/projects/common/src/main/java/dan200/computercraft/shared/details/ItemDetails.java index f225be682..6ccf668a4 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/details/ItemDetails.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/details/ItemDetails.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.details; import com.google.gson.JsonParseException; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/integration/RecipeModHelpers.java b/projects/common/src/main/java/dan200/computercraft/shared/integration/RecipeModHelpers.java index 7a7e5b089..69e443890 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/integration/RecipeModHelpers.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/integration/RecipeModHelpers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.integration; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/integration/UpgradeRecipeGenerator.java b/projects/common/src/main/java/dan200/computercraft/shared/integration/UpgradeRecipeGenerator.java index a7e90116f..36e86ed51 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/integration/UpgradeRecipeGenerator.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/integration/UpgradeRecipeGenerator.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.integration; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/integration/jei/JEIComputerCraft.java b/projects/common/src/main/java/dan200/computercraft/shared/integration/jei/JEIComputerCraft.java index c31ca32dd..c2c7f5825 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/integration/jei/JEIComputerCraft.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/integration/jei/JEIComputerCraft.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.integration.jei; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/integration/jei/RecipeResolver.java b/projects/common/src/main/java/dan200/computercraft/shared/integration/jei/RecipeResolver.java index a286cafad..29030d6f2 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/integration/jei/RecipeResolver.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/integration/jei/RecipeResolver.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.integration.jei; import dan200.computercraft.shared.integration.UpgradeRecipeGenerator; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/media/items/DiskItem.java b/projects/common/src/main/java/dan200/computercraft/shared/media/items/DiskItem.java index a259f2e17..0b38fa8fe 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/media/items/DiskItem.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/media/items/DiskItem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.media.items; import dan200.computercraft.annotations.ForgeOverride; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/media/items/PrintoutItem.java b/projects/common/src/main/java/dan200/computercraft/shared/media/items/PrintoutItem.java index 80453e1ea..c99f2b756 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/media/items/PrintoutItem.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/media/items/PrintoutItem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.media.items; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/media/items/RecordMedia.java b/projects/common/src/main/java/dan200/computercraft/shared/media/items/RecordMedia.java index f8cb77dbc..86c638528 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/media/items/RecordMedia.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/media/items/RecordMedia.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.media.items; import dan200.computercraft.api.media.IMedia; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/media/items/TreasureDiskItem.java b/projects/common/src/main/java/dan200/computercraft/shared/media/items/TreasureDiskItem.java index 60486a303..f5fab821a 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/media/items/TreasureDiskItem.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/media/items/TreasureDiskItem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.media.items; import dan200.computercraft.annotations.ForgeOverride; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/media/recipes/DiskRecipe.java b/projects/common/src/main/java/dan200/computercraft/shared/media/recipes/DiskRecipe.java index 0ccc4c459..fdaa75d85 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/media/recipes/DiskRecipe.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/media/recipes/DiskRecipe.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.media.recipes; import dan200.computercraft.core.util.Colour; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/media/recipes/PrintoutRecipe.java b/projects/common/src/main/java/dan200/computercraft/shared/media/recipes/PrintoutRecipe.java index cfe89209f..1f59b5e4f 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/media/recipes/PrintoutRecipe.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/media/recipes/PrintoutRecipe.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.media.recipes; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/NetworkMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/NetworkMessage.java index bc18c0bcf..235b1fc1f 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/NetworkMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/NetworkMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network; import dan200.computercraft.shared.network.client.ClientNetworkContext; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/NetworkMessages.java b/projects/common/src/main/java/dan200/computercraft/shared/network/NetworkMessages.java index 5ac620ffd..6a1c5748f 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/NetworkMessages.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/NetworkMessages.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network; import dan200.computercraft.shared.network.client.*; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/client/ChatTableClientMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/client/ChatTableClientMessage.java index 904440e39..73f7e48c2 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/client/ChatTableClientMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/client/ChatTableClientMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.client; import dan200.computercraft.shared.command.text.TableBuilder; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/client/ClientNetworkContext.java b/projects/common/src/main/java/dan200/computercraft/shared/network/client/ClientNetworkContext.java index 31fad5586..a0268454f 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/client/ClientNetworkContext.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/client/ClientNetworkContext.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.client; import dan200.computercraft.impl.Services; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/client/ComputerTerminalClientMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/client/ComputerTerminalClientMessage.java index f2b268127..99656d4bb 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/client/ComputerTerminalClientMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/client/ComputerTerminalClientMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.client; import dan200.computercraft.shared.computer.terminal.TerminalState; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/client/MonitorClientMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/client/MonitorClientMessage.java index f1331134b..5b1ee9680 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/client/MonitorClientMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/client/MonitorClientMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.client; import dan200.computercraft.shared.computer.terminal.TerminalState; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/client/PlayRecordClientMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/client/PlayRecordClientMessage.java index 516aa08ba..5ebadd95c 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/client/PlayRecordClientMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/client/PlayRecordClientMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.client; import dan200.computercraft.shared.network.NetworkMessage; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/client/PocketComputerDataMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/client/PocketComputerDataMessage.java index 5e625ffde..32a7483e9 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/client/PocketComputerDataMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/client/PocketComputerDataMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.client; import dan200.computercraft.shared.computer.core.ComputerState; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/client/PocketComputerDeletedClientMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/client/PocketComputerDeletedClientMessage.java index d17d686d5..7a89bd4a3 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/client/PocketComputerDeletedClientMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/client/PocketComputerDeletedClientMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.client; import dan200.computercraft.shared.network.NetworkMessage; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerAudioClientMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerAudioClientMessage.java index b13383fc2..9b085b541 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerAudioClientMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerAudioClientMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.client; import dan200.computercraft.shared.network.NetworkMessage; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerMoveClientMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerMoveClientMessage.java index 75a043749..bf9456316 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerMoveClientMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerMoveClientMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.client; import dan200.computercraft.shared.network.NetworkMessage; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerPlayClientMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerPlayClientMessage.java index 97c3f48a9..d45cf2a82 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerPlayClientMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerPlayClientMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.client; import dan200.computercraft.shared.network.NetworkMessage; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerStopClientMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerStopClientMessage.java index 378cddba0..7cbe7ace5 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerStopClientMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/client/SpeakerStopClientMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.client; import dan200.computercraft.shared.network.NetworkMessage; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/client/UpgradesLoadedMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/client/UpgradesLoadedMessage.java index 65dd0f5d1..54446514b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/client/UpgradesLoadedMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/client/UpgradesLoadedMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.client; import dan200.computercraft.api.pocket.IPocketUpgrade; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/client/UploadResultMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/client/UploadResultMessage.java index 2db6407ed..a3a94e1a8 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/client/UploadResultMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/client/UploadResultMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.client; import dan200.computercraft.core.util.Nullability; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/container/ComputerContainerData.java b/projects/common/src/main/java/dan200/computercraft/shared/network/container/ComputerContainerData.java index 0e1c32082..96160d8e6 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/container/ComputerContainerData.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/container/ComputerContainerData.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.container; import dan200.computercraft.shared.computer.core.ComputerFamily; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/container/ContainerData.java b/projects/common/src/main/java/dan200/computercraft/shared/network/container/ContainerData.java index 5dc248cff..8ad6cd68d 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/container/ContainerData.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/container/ContainerData.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.container; import dan200.computercraft.shared.network.NetworkMessage; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/container/HeldItemContainerData.java b/projects/common/src/main/java/dan200/computercraft/shared/network/container/HeldItemContainerData.java index 763c90c84..8bbb6522b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/container/HeldItemContainerData.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/container/HeldItemContainerData.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.container; import dan200.computercraft.shared.common.HeldItemMenu; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/server/ComputerActionServerMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/server/ComputerActionServerMessage.java index 5db3a2803..c4e3afc20 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/server/ComputerActionServerMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/server/ComputerActionServerMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.server; import dan200.computercraft.shared.computer.menu.ComputerMenu; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/server/ComputerServerMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/server/ComputerServerMessage.java index 09d2a58af..f905e547b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/server/ComputerServerMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/server/ComputerServerMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.server; import dan200.computercraft.shared.computer.menu.ComputerMenu; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/server/KeyEventServerMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/server/KeyEventServerMessage.java index c59b6caec..8b6326e28 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/server/KeyEventServerMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/server/KeyEventServerMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.server; import dan200.computercraft.shared.computer.menu.ComputerMenu; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/server/MouseEventServerMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/server/MouseEventServerMessage.java index 1790ab5b9..82ef129fe 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/server/MouseEventServerMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/server/MouseEventServerMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.server; import dan200.computercraft.shared.computer.menu.ComputerMenu; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/server/QueueEventServerMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/server/QueueEventServerMessage.java index 1c610435f..56b8baff7 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/server/QueueEventServerMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/server/QueueEventServerMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.server; import dan200.computercraft.shared.computer.core.ServerComputer; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/server/ServerNetworkContext.java b/projects/common/src/main/java/dan200/computercraft/shared/network/server/ServerNetworkContext.java index a0a8f1c87..e103ba5bd 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/server/ServerNetworkContext.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/server/ServerNetworkContext.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.server; import net.minecraft.server.level.ServerPlayer; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/network/server/UploadFileMessage.java b/projects/common/src/main/java/dan200/computercraft/shared/network/server/UploadFileMessage.java index 560244c19..b598c16b1 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/network/server/UploadFileMessage.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/network/server/UploadFileMessage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.network.server; import com.google.common.annotations.VisibleForTesting; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/commandblock/CommandBlockPeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/commandblock/CommandBlockPeripheral.java index bb99b6195..e35080a48 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/commandblock/CommandBlockPeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/commandblock/CommandBlockPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.commandblock; import dan200.computercraft.api.lua.LuaFunction; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveBlock.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveBlock.java index 23d68fd20..2edca1700 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveBlock.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveBlock.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.diskdrive; import dan200.computercraft.impl.MediaProviders; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveBlockEntity.java index 6bfa79982..10f89811d 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.diskdrive; import com.google.errorprone.annotations.concurrent.GuardedBy; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveMenu.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveMenu.java index a4e8b84d1..dc6ca83da 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveMenu.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveMenu.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.diskdrive; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDrivePeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDrivePeripheral.java index 3aee2a253..395bf02f2 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDrivePeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDrivePeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.diskdrive; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveState.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveState.java index f4d685eb9..a65786104 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveState.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/DiskDriveState.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.diskdrive; import net.minecraft.util.StringRepresentable; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/MediaStack.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/MediaStack.java index 9a6edb54b..026b8587a 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/MediaStack.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/diskdrive/MediaStack.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.diskdrive; import dan200.computercraft.api.media.IMedia; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/generic/GenericPeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/generic/GenericPeripheral.java index 31a87b094..f181ae7c4 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/generic/GenericPeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/generic/GenericPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.generic; import dan200.computercraft.api.lua.IArguments; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/generic/SaturatedMethod.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/generic/SaturatedMethod.java index a535222c7..78049da8c 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/generic/SaturatedMethod.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/generic/SaturatedMethod.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.generic; import dan200.computercraft.api.lua.IArguments; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemPeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemPeripheral.java index ae4ac9637..45be424a3 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemPeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.modem; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemShapes.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemShapes.java index 05f6ff289..57c5c5742 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemShapes.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemShapes.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.modem; import net.minecraft.core.Direction; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemState.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemState.java index 1a8c96c81..d1e9031b1 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemState.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemState.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.modem; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlock.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlock.java index 86ad234be..0a51bbc8b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlock.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlock.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.modem.wired; import com.google.common.collect.ImmutableMap; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlockEntity.java index 6ba5c6ed5..239e430c6 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.modem.wired; import com.google.common.base.Objects; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlockItem.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlockItem.java index 42e46296d..50a5d9cea 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlockItem.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableBlockItem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.modem.wired; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableModemVariant.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableModemVariant.java index e39c5f3e3..89422d12d 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableModemVariant.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableModemVariant.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.modem.wired; import net.minecraft.core.Direction; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableShapes.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableShapes.java index 993107622..10f35e32e 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableShapes.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/CableShapes.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.modem.wired; import com.google.common.collect.ImmutableMap; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemElement.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemElement.java index 7fd231426..96e41bb17 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemElement.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemElement.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.modem.wired; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemFullBlock.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemFullBlock.java index 00960125f..8707ca5e9 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemFullBlock.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemFullBlock.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.modem.wired; import dan200.computercraft.annotations.ForgeOverride; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemFullBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemFullBlockEntity.java index 4e4fa68fd..a219e7f39 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemFullBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemFullBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.modem.wired; import com.google.common.base.Objects; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemLocalPeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemLocalPeripheral.java index cdd020f18..5187ec742 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemLocalPeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemLocalPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.modem.wired; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemPeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemPeripheral.java index a9af955dc..0ebf0cba5 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemPeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.modem.wired; import com.google.common.collect.ImmutableMap; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessModemBlock.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessModemBlock.java index 96feac717..c2cb274ed 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessModemBlock.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessModemBlock.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.modem.wireless; import dan200.computercraft.shared.peripheral.modem.ModemShapes; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessModemBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessModemBlockEntity.java index a5ec27ff0..10fe36371 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessModemBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessModemBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.modem.wireless; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessModemPeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessModemPeripheral.java index 9bfffc1c2..3b0d7fa14 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessModemPeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessModemPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.modem.wireless; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessNetwork.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessNetwork.java index 6d92a9b95..60b2c23a5 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessNetwork.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/modem/wireless/WirelessNetwork.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.modem.wireless; import dan200.computercraft.api.network.Packet; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/ClientMonitor.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/ClientMonitor.java index f91df688d..53630d80f 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/ClientMonitor.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/ClientMonitor.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.monitor; import dan200.computercraft.core.terminal.Terminal; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/Expander.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/Expander.java index 2d6dd494e..22b5ff506 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/Expander.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/Expander.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.monitor; import dan200.computercraft.shared.config.Config; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorBlock.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorBlock.java index 9719c7ca2..41d0b6182 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorBlock.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorBlock.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.monitor; import dan200.computercraft.shared.platform.PlatformHelper; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorBlockEntity.java index 2549e56dd..be2feee1e 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.monitor; import com.google.common.annotations.VisibleForTesting; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorEdgeState.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorEdgeState.java index 3be44026c..9889daa86 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorEdgeState.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorEdgeState.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.monitor; import net.minecraft.util.StringRepresentable; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorPeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorPeripheral.java index 7e269e3b2..02ea86c61 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorPeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.monitor; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorRenderer.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorRenderer.java index 14b65f41e..9dd52f115 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorRenderer.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorRenderer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.monitor; /** diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorState.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorState.java index 2b862e5ea..ff8e4b406 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorState.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorState.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.monitor; import javax.annotation.Nullable; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorWatcher.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorWatcher.java index 44f432ae6..bf3f56be5 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorWatcher.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorWatcher.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.monitor; import dan200.computercraft.shared.computer.terminal.TerminalState; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/ServerMonitor.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/ServerMonitor.java index eca373bee..7de81be87 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/ServerMonitor.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/ServerMonitor.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.monitor; import com.google.common.annotations.VisibleForTesting; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/XYPair.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/XYPair.java index 1dc2ad228..fcfed2d39 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/XYPair.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/monitor/XYPair.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.monitor; import net.minecraft.core.Direction; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterBlock.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterBlock.java index ceb873170..b0bede7cf 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterBlock.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterBlock.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.printer; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterBlockEntity.java index 5563137eb..deb10f0ea 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.printer; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterMenu.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterMenu.java index e11cdf002..80957dd65 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterMenu.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterMenu.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.printer; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterPeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterPeripheral.java index e2e6a1f50..b3d09c685 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterPeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/printer/PrinterPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.printer; import dan200.computercraft.api.lua.IArguments; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/DfpwmState.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/DfpwmState.java index 24839e0ad..2216a1156 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/DfpwmState.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/DfpwmState.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.speaker; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerBlock.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerBlock.java index 5482e339f..c19b9522e 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerBlock.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerBlock.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.speaker; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerBlockEntity.java index f34ef6d83..f003ee188 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.speaker; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerPeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerPeripheral.java index 4c8cceb9f..b17e64595 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerPeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.speaker; import dan200.computercraft.api.lua.ILuaContext; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerPosition.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerPosition.java index 471c1a0da..d674c56a1 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerPosition.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/SpeakerPosition.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.speaker; import net.minecraft.network.FriendlyByteBuf; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/UpgradeSpeakerPeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/UpgradeSpeakerPeripheral.java index 3e542c5f5..64b861de1 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/UpgradeSpeakerPeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/peripheral/speaker/UpgradeSpeakerPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.speaker; import dan200.computercraft.api.peripheral.IComputerAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/platform/ComponentAccess.java b/projects/common/src/main/java/dan200/computercraft/shared/platform/ComponentAccess.java index 4aa40ec2d..e8621ae9f 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/platform/ComponentAccess.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/platform/ComponentAccess.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import net.minecraft.core.BlockPos; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/platform/ContainerTransfer.java b/projects/common/src/main/java/dan200/computercraft/shared/platform/ContainerTransfer.java index fbe35abd5..bc6e969e8 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/platform/ContainerTransfer.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/platform/ContainerTransfer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import net.minecraft.world.Container; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/platform/PlatformHelper.java b/projects/common/src/main/java/dan200/computercraft/shared/platform/PlatformHelper.java index 60fc7c574..d05c0baaa 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/platform/PlatformHelper.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/platform/PlatformHelper.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import com.google.gson.JsonObject; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/platform/RecipeIngredients.java b/projects/common/src/main/java/dan200/computercraft/shared/platform/RecipeIngredients.java index 0e27740fd..ac984c5d4 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/platform/RecipeIngredients.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/platform/RecipeIngredients.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import net.minecraft.world.item.Items; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/platform/RegistrationHelper.java b/projects/common/src/main/java/dan200/computercraft/shared/platform/RegistrationHelper.java index 0de8eaf3e..fb2ef2300 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/platform/RegistrationHelper.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/platform/RegistrationHelper.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import net.minecraft.core.Registry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/platform/RegistryEntry.java b/projects/common/src/main/java/dan200/computercraft/shared/platform/RegistryEntry.java index c40cd2a89..ecf0eb7c2 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/platform/RegistryEntry.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/platform/RegistryEntry.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import net.minecraft.core.Registry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/platform/RegistryWrappers.java b/projects/common/src/main/java/dan200/computercraft/shared/platform/RegistryWrappers.java index 25bff8880..741aa7206 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/platform/RegistryWrappers.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/platform/RegistryWrappers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import net.minecraft.commands.synchronization.ArgumentTypeInfo; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/pocket/apis/PocketAPI.java b/projects/common/src/main/java/dan200/computercraft/shared/pocket/apis/PocketAPI.java index 6d83ef3fd..e1b1cb0ad 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/pocket/apis/PocketAPI.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/pocket/apis/PocketAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.pocket.apis; import dan200.computercraft.api.lua.ILuaAPI; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/pocket/core/PocketServerComputer.java b/projects/common/src/main/java/dan200/computercraft/shared/pocket/core/PocketServerComputer.java index 4fe1157ab..6ac22f3dd 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/pocket/core/PocketServerComputer.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/pocket/core/PocketServerComputer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.pocket.core; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/pocket/inventory/PocketComputerMenuProvider.java b/projects/common/src/main/java/dan200/computercraft/shared/pocket/inventory/PocketComputerMenuProvider.java index dee36ebef..dd789f63a 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/pocket/inventory/PocketComputerMenuProvider.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/pocket/inventory/PocketComputerMenuProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.pocket.inventory; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/pocket/items/PocketComputerItem.java b/projects/common/src/main/java/dan200/computercraft/shared/pocket/items/PocketComputerItem.java index 316d25266..7d3abc57b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/pocket/items/PocketComputerItem.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/pocket/items/PocketComputerItem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.pocket.items; import com.google.common.base.Objects; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/pocket/items/PocketComputerItemFactory.java b/projects/common/src/main/java/dan200/computercraft/shared/pocket/items/PocketComputerItemFactory.java index 19415c86f..010ef708b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/pocket/items/PocketComputerItemFactory.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/pocket/items/PocketComputerItemFactory.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.pocket.items; import dan200.computercraft.api.pocket.IPocketUpgrade; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketModem.java b/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketModem.java index 11c1bf839..273c5e8a4 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketModem.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketModem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.pocket.peripherals; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketModemPeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketModemPeripheral.java index c858c4cf0..2d6f329cd 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketModemPeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketModemPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.pocket.peripherals; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketSpeaker.java b/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketSpeaker.java index 661bbbeb3..720a6a168 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketSpeaker.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketSpeaker.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.pocket.peripherals; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketSpeakerPeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketSpeakerPeripheral.java index a8dda5000..b5f682865 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketSpeakerPeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/pocket/peripherals/PocketSpeakerPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.pocket.peripherals; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/pocket/recipes/PocketComputerUpgradeRecipe.java b/projects/common/src/main/java/dan200/computercraft/shared/pocket/recipes/PocketComputerUpgradeRecipe.java index 8b4b3cc4f..9ffa630b6 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/pocket/recipes/PocketComputerUpgradeRecipe.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/pocket/recipes/PocketComputerUpgradeRecipe.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.pocket.recipes; import dan200.computercraft.api.pocket.IPocketUpgrade; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/FurnaceRefuelHandler.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/FurnaceRefuelHandler.java index 70ce6e869..6a5abe38e 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/FurnaceRefuelHandler.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/FurnaceRefuelHandler.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/TurtleUtil.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/TurtleUtil.java index 020e7ca28..cfacf1e07 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/TurtleUtil.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/TurtleUtil.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.turtle; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/apis/TurtleAPI.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/apis/TurtleAPI.java index 3c9cacde4..3d1dd6ac0 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/apis/TurtleAPI.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/apis/TurtleAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.apis; import dan200.computercraft.api.detail.VanillaDetailRegistries; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/blocks/ITurtleBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/blocks/ITurtleBlockEntity.java index 02c2452d7..2ee127bba 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/blocks/ITurtleBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/blocks/ITurtleBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.blocks; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/blocks/TurtleBlock.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/blocks/TurtleBlock.java index 96c764ede..7c7f6774a 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/blocks/TurtleBlock.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/blocks/TurtleBlock.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.blocks; import dan200.computercraft.annotations.ForgeOverride; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/blocks/TurtleBlockEntity.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/blocks/TurtleBlockEntity.java index 993788108..9929d4447 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/blocks/TurtleBlockEntity.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/blocks/TurtleBlockEntity.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.blocks; import com.mojang.authlib.GameProfile; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/InteractDirection.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/InteractDirection.java index 2e23894ef..b200eb439 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/InteractDirection.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/InteractDirection.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/MoveDirection.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/MoveDirection.java index 4c3bf9903..dd7785f70 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/MoveDirection.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/MoveDirection.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurnDirection.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurnDirection.java index e1afac509..d1060d621 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurnDirection.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurnDirection.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; public enum TurnDirection { diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleAccessInternal.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleAccessInternal.java index dc8314caf..3d6bb1b6d 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleAccessInternal.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleAccessInternal.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleBrain.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleBrain.java index 2693d23c9..ecfc1f787 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleBrain.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleBrain.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import com.google.common.base.Objects; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCommandQueueEntry.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCommandQueueEntry.java index badb81f38..ba5a28981 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCommandQueueEntry.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCommandQueueEntry.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.TurtleCommand; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCompareCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCompareCommand.java index fb21b38df..bff4d3acc 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCompareCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCompareCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCompareToCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCompareToCommand.java index b9779e324..81cfe16e3 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCompareToCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCompareToCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCraftCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCraftCommand.java index e3c9db548..2d7125d26 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCraftCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleCraftCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleDetectCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleDetectCommand.java index 5cc5fd352..480ad209e 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleDetectCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleDetectCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleDropCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleDropCommand.java index 085403422..ac990902d 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleDropCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleDropCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleEquipCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleEquipCommand.java index 8d5ae15f1..1a15bb840 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleEquipCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleEquipCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.*; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleInspectCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleInspectCommand.java index c79f31be7..f47dc6bdc 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleInspectCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleInspectCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.detail.BlockReference; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleMoveCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleMoveCommand.java index f251b3485..c7d8a2ad8 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleMoveCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleMoveCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlaceCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlaceCommand.java index e4d0e6f4c..447e7a456 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlaceCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlaceCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import com.google.common.base.Splitter; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlayer.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlayer.java index 9010f78ef..42445b935 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlayer.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlayer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import com.mojang.authlib.GameProfile; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleRefuelCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleRefuelCommand.java index e7c1a3539..d0a87b7fb 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleRefuelCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleRefuelCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleSuckCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleSuckCommand.java index 1dcaeaa75..85f0bfe44 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleSuckCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleSuckCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleToolCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleToolCommand.java index caa642093..5bc19294d 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleToolCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleToolCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.*; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleTransferToCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleTransferToCommand.java index 82662157b..a16280941 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleTransferToCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleTransferToCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleTurnCommand.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleTurnCommand.java index 73ccd74db..3c1f743fb 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleTurnCommand.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/core/TurtleTurnCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.core; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/inventory/TurtleMenu.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/inventory/TurtleMenu.java index b4ed1072b..77116234b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/inventory/TurtleMenu.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/inventory/TurtleMenu.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.inventory; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/items/ITurtleItem.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/items/ITurtleItem.java index 5f0d665d5..5dfb4751a 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/items/ITurtleItem.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/items/ITurtleItem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.items; import dan200.computercraft.api.turtle.ITurtleUpgrade; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/items/TurtleItem.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/items/TurtleItem.java index 23e96082b..59620a755 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/items/TurtleItem.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/items/TurtleItem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.items; import dan200.computercraft.annotations.ForgeOverride; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/items/TurtleItemFactory.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/items/TurtleItemFactory.java index f19b29845..81953a899 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/items/TurtleItemFactory.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/items/TurtleItemFactory.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.items; import dan200.computercraft.api.turtle.ITurtleUpgrade; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/recipes/TurtleRecipe.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/recipes/TurtleRecipe.java index 4146e519a..2451c8324 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/recipes/TurtleRecipe.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/recipes/TurtleRecipe.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.recipes; import dan200.computercraft.shared.ModRegistry; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/recipes/TurtleUpgradeRecipe.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/recipes/TurtleUpgradeRecipe.java index 3221f7b86..690116d56 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/recipes/TurtleUpgradeRecipe.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/recipes/TurtleUpgradeRecipe.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.recipes; import dan200.computercraft.api.turtle.ITurtleUpgrade; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/CraftingTablePeripheral.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/CraftingTablePeripheral.java index 4d3eab0eb..b22a7ca45 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/CraftingTablePeripheral.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/CraftingTablePeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.upgrades; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleCraftingTable.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleCraftingTable.java index 8d7b4175f..83ce27f32 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleCraftingTable.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleCraftingTable.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.upgrades; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleInventoryCrafting.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleInventoryCrafting.java index b196557e3..9dd345c4a 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleInventoryCrafting.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleInventoryCrafting.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.upgrades; import dan200.computercraft.api.turtle.ITurtleAccess; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleModem.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleModem.java index ffbfa3868..4c514de2d 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleModem.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleModem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.upgrades; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleSpeaker.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleSpeaker.java index c6bde2b6c..99f5242e6 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleSpeaker.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleSpeaker.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.upgrades; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleTool.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleTool.java index 401f2d340..9f8b80150 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleTool.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleTool.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.turtle.upgrades; import dan200.computercraft.api.ComputerCraftTags; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleToolSerialiser.java b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleToolSerialiser.java index 49d2c45f7..7a635c214 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleToolSerialiser.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/turtle/upgrades/TurtleToolSerialiser.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.turtle.upgrades; import com.google.gson.JsonObject; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/ArgumentHelpers.java b/projects/common/src/main/java/dan200/computercraft/shared/util/ArgumentHelpers.java index 3fbc9d859..d26173050 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/ArgumentHelpers.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/ArgumentHelpers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/BlockEntityHelpers.java b/projects/common/src/main/java/dan200/computercraft/shared/util/BlockEntityHelpers.java index 5a96391ec..e9fee43e4 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/BlockEntityHelpers.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/BlockEntityHelpers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import dan200.computercraft.shared.platform.PlatformHelper; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/ColourTracker.java b/projects/common/src/main/java/dan200/computercraft/shared/util/ColourTracker.java index 02362e095..e4e6acffc 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/ColourTracker.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/ColourTracker.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import dan200.computercraft.core.util.Colour; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/ColourUtils.java b/projects/common/src/main/java/dan200/computercraft/shared/util/ColourUtils.java index 05f05116b..96be80c80 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/ColourUtils.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/ColourUtils.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import dan200.computercraft.shared.platform.PlatformHelper; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/DirectionUtil.java b/projects/common/src/main/java/dan200/computercraft/shared/util/DirectionUtil.java index 97531f13e..0e8b5e12f 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/DirectionUtil.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/DirectionUtil.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.util; import dan200.computercraft.core.computer.ComputerSide; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/DropConsumer.java b/projects/common/src/main/java/dan200/computercraft/shared/util/DropConsumer.java index 6840ca6b7..d2530bc1b 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/DropConsumer.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/DropConsumer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.util; import net.minecraft.core.BlockPos; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/Holiday.java b/projects/common/src/main/java/dan200/computercraft/shared/util/Holiday.java index c381b24f7..40d1792a4 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/Holiday.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/Holiday.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.util; import java.time.LocalDateTime; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/IDAssigner.java b/projects/common/src/main/java/dan200/computercraft/shared/util/IDAssigner.java index ffa4e45df..fd6ec23ab 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/IDAssigner.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/IDAssigner.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import com.google.gson.Gson; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/ImpostorRecipe.java b/projects/common/src/main/java/dan200/computercraft/shared/util/ImpostorRecipe.java index 67547b938..8354be236 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/ImpostorRecipe.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/ImpostorRecipe.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.util; import com.google.gson.JsonObject; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/ImpostorShapelessRecipe.java b/projects/common/src/main/java/dan200/computercraft/shared/util/ImpostorShapelessRecipe.java index 240fd9bfa..3e3add914 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/ImpostorShapelessRecipe.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/ImpostorShapelessRecipe.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.util; import com.google.gson.JsonArray; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/InventoryUtil.java b/projects/common/src/main/java/dan200/computercraft/shared/util/InventoryUtil.java index 241a1bc01..4fd34c316 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/InventoryUtil.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/InventoryUtil.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.util; import net.minecraft.core.BlockPos; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/NBTUtil.java b/projects/common/src/main/java/dan200/computercraft/shared/util/NBTUtil.java index 9b9db3c6a..8ee8ebdac 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/NBTUtil.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/NBTUtil.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.util; import com.google.common.io.BaseEncoding; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/PauseAwareTimer.java b/projects/common/src/main/java/dan200/computercraft/shared/util/PauseAwareTimer.java index 4fd8e4af9..2cb3a5a5e 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/PauseAwareTimer.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/PauseAwareTimer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import net.minecraft.Util; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/RecipeUtil.java b/projects/common/src/main/java/dan200/computercraft/shared/util/RecipeUtil.java index 432247c22..9919ec425 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/RecipeUtil.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/RecipeUtil.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import com.google.common.collect.Maps; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/RedstoneUtil.java b/projects/common/src/main/java/dan200/computercraft/shared/util/RedstoneUtil.java index 19e9643c3..e772c8806 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/RedstoneUtil.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/RedstoneUtil.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.util; import dan200.computercraft.shared.platform.PlatformHelper; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/TickScheduler.java b/projects/common/src/main/java/dan200/computercraft/shared/util/TickScheduler.java index 3c8b44134..7324780a7 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/TickScheduler.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/TickScheduler.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import net.minecraft.core.BlockPos; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/Trie.java b/projects/common/src/main/java/dan200/computercraft/shared/util/Trie.java index 9c8fc6086..24288ec77 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/Trie.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/Trie.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import javax.annotation.Nullable; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/WaterloggableHelpers.java b/projects/common/src/main/java/dan200/computercraft/shared/util/WaterloggableHelpers.java index df0bf6be3..eb2fd652f 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/WaterloggableHelpers.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/WaterloggableHelpers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import net.minecraft.core.BlockPos; diff --git a/projects/common/src/main/java/dan200/computercraft/shared/util/WorldUtil.java b/projects/common/src/main/java/dan200/computercraft/shared/util/WorldUtil.java index 726ca3cfa..b8358cbec 100644 --- a/projects/common/src/main/java/dan200/computercraft/shared/util/WorldUtil.java +++ b/projects/common/src/main/java/dan200/computercraft/shared/util/WorldUtil.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.util; import dan200.computercraft.shared.platform.PlatformHelper; diff --git a/projects/common/src/main/resources/assets/minecraft/shaders/core/computercraft/monitor_tbo.fsh b/projects/common/src/main/resources/assets/minecraft/shaders/core/computercraft/monitor_tbo.fsh index c1e089fed..3fe664aca 100644 --- a/projects/common/src/main/resources/assets/minecraft/shaders/core/computercraft/monitor_tbo.fsh +++ b/projects/common/src/main/resources/assets/minecraft/shaders/core/computercraft/monitor_tbo.fsh @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: LicenseRef-CCPL + #version 150 #moj_import diff --git a/projects/common/src/main/resources/assets/minecraft/shaders/core/computercraft/monitor_tbo.vsh b/projects/common/src/main/resources/assets/minecraft/shaders/core/computercraft/monitor_tbo.vsh index 885b20df5..766b0d72c 100644 --- a/projects/common/src/main/resources/assets/minecraft/shaders/core/computercraft/monitor_tbo.vsh +++ b/projects/common/src/main/resources/assets/minecraft/shaders/core/computercraft/monitor_tbo.vsh @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: LicenseRef-CCPL + #version 150 #moj_import diff --git a/projects/common/src/main/resources/computercraft-common.accesswidener b/projects/common/src/main/resources/computercraft-common.accesswidener index cfedacfcd..66a873e04 100644 --- a/projects/common/src/main/resources/computercraft-common.accesswidener +++ b/projects/common/src/main/resources/computercraft-common.accesswidener @@ -1,5 +1,9 @@ accessWidener v1 named +# SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +# +# SPDX-License-Identifier: MPL-2.0 + # Additional access wideners for vanilla code. This is a effectively the subset of Fabric's transitive access wideners # that we actually use diff --git a/projects/common/src/main/resources/computercraft.accesswidener b/projects/common/src/main/resources/computercraft.accesswidener index b4c1df08a..99517fee9 100644 --- a/projects/common/src/main/resources/computercraft.accesswidener +++ b/projects/common/src/main/resources/computercraft.accesswidener @@ -1,5 +1,9 @@ accessWidener v1 named +# SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +# +# SPDX-License-Identifier: MPL-2.0 + # Shared vanilla and Fabric access wideners. This should not include things already exposed by Fabric's transitive # wideners. diff --git a/projects/common/src/test/java/dan200/computercraft/TestPlatformHelper.java b/projects/common/src/test/java/dan200/computercraft/TestPlatformHelper.java index 9531d4166..60b016e9c 100644 --- a/projects/common/src/test/java/dan200/computercraft/TestPlatformHelper.java +++ b/projects/common/src/test/java/dan200/computercraft/TestPlatformHelper.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft; import com.google.auto.service.AutoService; diff --git a/projects/common/src/test/java/dan200/computercraft/client/sound/DfpwmStreamTest.java b/projects/common/src/test/java/dan200/computercraft/client/sound/DfpwmStreamTest.java index 2398fbca6..2cb2f72b3 100644 --- a/projects/common/src/test/java/dan200/computercraft/client/sound/DfpwmStreamTest.java +++ b/projects/common/src/test/java/dan200/computercraft/client/sound/DfpwmStreamTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.sound; import io.netty.buffer.ByteBufAllocator; diff --git a/projects/common/src/test/java/dan200/computercraft/impl/network/wired/NetworkTest.java b/projects/common/src/test/java/dan200/computercraft/impl/network/wired/NetworkTest.java index 5cbdb6465..822ceb5ec 100644 --- a/projects/common/src/test/java/dan200/computercraft/impl/network/wired/NetworkTest.java +++ b/projects/common/src/test/java/dan200/computercraft/impl/network/wired/NetworkTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl.network.wired; import com.google.common.collect.Maps; diff --git a/projects/common/src/test/java/dan200/computercraft/shared/computer/core/ResourceMountTest.java b/projects/common/src/test/java/dan200/computercraft/shared/computer/core/ResourceMountTest.java index e9c2fb1d7..6552df2d5 100644 --- a/projects/common/src/test/java/dan200/computercraft/shared/computer/core/ResourceMountTest.java +++ b/projects/common/src/test/java/dan200/computercraft/shared/computer/core/ResourceMountTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.core; import com.google.common.io.MoreFiles; diff --git a/projects/common/src/test/java/dan200/computercraft/shared/computer/terminal/NetworkedTerminalTest.java b/projects/common/src/test/java/dan200/computercraft/shared/computer/terminal/NetworkedTerminalTest.java index e10e5c8a3..677c35a5c 100644 --- a/projects/common/src/test/java/dan200/computercraft/shared/computer/terminal/NetworkedTerminalTest.java +++ b/projects/common/src/test/java/dan200/computercraft/shared/computer/terminal/NetworkedTerminalTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.terminal; import dan200.computercraft.api.lua.LuaValues; diff --git a/projects/common/src/test/java/dan200/computercraft/shared/computer/terminal/TerminalStateTest.java b/projects/common/src/test/java/dan200/computercraft/shared/computer/terminal/TerminalStateTest.java index 8ce4011f3..5dbcb75ed 100644 --- a/projects/common/src/test/java/dan200/computercraft/shared/computer/terminal/TerminalStateTest.java +++ b/projects/common/src/test/java/dan200/computercraft/shared/computer/terminal/TerminalStateTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.computer.terminal; import dan200.computercraft.core.terminal.Terminal; diff --git a/projects/common/src/test/java/dan200/computercraft/shared/network/server/UploadFileMessageTest.java b/projects/common/src/test/java/dan200/computercraft/shared/network/server/UploadFileMessageTest.java index e89438dc9..9ea3e5d53 100644 --- a/projects/common/src/test/java/dan200/computercraft/shared/network/server/UploadFileMessageTest.java +++ b/projects/common/src/test/java/dan200/computercraft/shared/network/server/UploadFileMessageTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.network.server; import dan200.computercraft.shared.computer.upload.FileUpload; diff --git a/projects/common/src/test/java/dan200/computercraft/shared/peripheral/speaker/DfpwmStateTest.java b/projects/common/src/test/java/dan200/computercraft/shared/peripheral/speaker/DfpwmStateTest.java index c6c774343..7d73af37e 100644 --- a/projects/common/src/test/java/dan200/computercraft/shared/peripheral/speaker/DfpwmStateTest.java +++ b/projects/common/src/test/java/dan200/computercraft/shared/peripheral/speaker/DfpwmStateTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.speaker; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/common/src/test/java/dan200/computercraft/shared/util/InventoryUtilTest.java b/projects/common/src/test/java/dan200/computercraft/shared/util/InventoryUtilTest.java index 8122da5f5..d14352b99 100644 --- a/projects/common/src/test/java/dan200/computercraft/shared/util/InventoryUtilTest.java +++ b/projects/common/src/test/java/dan200/computercraft/shared/util/InventoryUtilTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import dan200.computercraft.test.shared.WithMinecraft; diff --git a/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/CustomSampleUploadReporter.java b/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/CustomSampleUploadReporter.java index e75721ce4..afc6cb439 100644 --- a/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/CustomSampleUploadReporter.java +++ b/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/CustomSampleUploadReporter.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.shared; import com.google.auto.service.AutoService; diff --git a/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/FakeContainer.java b/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/FakeContainer.java index 2bf36e3f6..d8f0e4502 100644 --- a/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/FakeContainer.java +++ b/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/FakeContainer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.shared; import net.minecraft.world.entity.player.Player; diff --git a/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/ItemStackMatcher.java b/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/ItemStackMatcher.java index 69c002f78..2c12f3019 100644 --- a/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/ItemStackMatcher.java +++ b/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/ItemStackMatcher.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.shared; import net.minecraft.world.item.Item; diff --git a/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/WithMinecraft.java b/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/WithMinecraft.java index cc53dd4f3..12efe857c 100644 --- a/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/WithMinecraft.java +++ b/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/WithMinecraft.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.shared; import net.minecraft.SharedConstants; diff --git a/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/platform/ContainerTransferContract.java b/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/platform/ContainerTransferContract.java index 2a82acccf..1e878031a 100644 --- a/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/platform/ContainerTransferContract.java +++ b/projects/common/src/testFixtures/java/dan200/computercraft/test/shared/platform/ContainerTransferContract.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.shared.platform; import dan200.computercraft.shared.platform.ContainerTransfer; diff --git a/projects/common/src/testMod/java/dan200/computercraft/export/Exporter.java b/projects/common/src/testMod/java/dan200/computercraft/export/Exporter.java index 81e869a07..45d8368b3 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/export/Exporter.java +++ b/projects/common/src/testMod/java/dan200/computercraft/export/Exporter.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.export; import com.google.common.io.MoreFiles; diff --git a/projects/common/src/testMod/java/dan200/computercraft/export/ImageRenderer.java b/projects/common/src/testMod/java/dan200/computercraft/export/ImageRenderer.java index 2a83d6ff9..538799033 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/export/ImageRenderer.java +++ b/projects/common/src/testMod/java/dan200/computercraft/export/ImageRenderer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.export; import com.mojang.blaze3d.pipeline.TextureTarget; diff --git a/projects/common/src/testMod/java/dan200/computercraft/export/JsonDump.java b/projects/common/src/testMod/java/dan200/computercraft/export/JsonDump.java index ecd10ff0c..43d642cd7 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/export/JsonDump.java +++ b/projects/common/src/testMod/java/dan200/computercraft/export/JsonDump.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.export; import dan200.computercraft.shared.platform.RegistryWrappers; diff --git a/projects/common/src/testMod/java/dan200/computercraft/gametest/api/ComputerState.java b/projects/common/src/testMod/java/dan200/computercraft/gametest/api/ComputerState.java index 52938b8d1..82a15b1f7 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/gametest/api/ComputerState.java +++ b/projects/common/src/testMod/java/dan200/computercraft/gametest/api/ComputerState.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.api; import dan200.computercraft.gametest.core.TestAPI; diff --git a/projects/common/src/testMod/java/dan200/computercraft/gametest/core/CCTestCommand.java b/projects/common/src/testMod/java/dan200/computercraft/gametest/core/CCTestCommand.java index d58d28563..b192d0b7c 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/gametest/core/CCTestCommand.java +++ b/projects/common/src/testMod/java/dan200/computercraft/gametest/core/CCTestCommand.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.core; import com.mojang.brigadier.CommandDispatcher; diff --git a/projects/common/src/testMod/java/dan200/computercraft/gametest/core/Copier.java b/projects/common/src/testMod/java/dan200/computercraft/gametest/core/Copier.java index bc37f8abf..91793100d 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/gametest/core/Copier.java +++ b/projects/common/src/testMod/java/dan200/computercraft/gametest/core/Copier.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.core; import com.google.common.io.MoreFiles; diff --git a/projects/common/src/testMod/java/dan200/computercraft/gametest/core/MinecraftExtensions.java b/projects/common/src/testMod/java/dan200/computercraft/gametest/core/MinecraftExtensions.java index 1a21f8d9a..59644ba38 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/gametest/core/MinecraftExtensions.java +++ b/projects/common/src/testMod/java/dan200/computercraft/gametest/core/MinecraftExtensions.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.core; import net.minecraft.client.Minecraft; diff --git a/projects/common/src/testMod/java/dan200/computercraft/gametest/core/TestAPI.java b/projects/common/src/testMod/java/dan200/computercraft/gametest/core/TestAPI.java index 3f76d4288..0ae3a2847 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/gametest/core/TestAPI.java +++ b/projects/common/src/testMod/java/dan200/computercraft/gametest/core/TestAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.core; import dan200.computercraft.api.lua.IComputerSystem; diff --git a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestHelperAccessor.java b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestHelperAccessor.java index 7a92267e6..591e35af4 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestHelperAccessor.java +++ b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestHelperAccessor.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.gametest; import net.minecraft.gametest.framework.GameTestHelper; diff --git a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestInfoAccessor.java b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestInfoAccessor.java index 258be4718..e0b555228 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestInfoAccessor.java +++ b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestInfoAccessor.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.gametest; import net.minecraft.gametest.framework.GameTestInfo; diff --git a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestSequenceAccessor.java b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestSequenceAccessor.java index b2fedd62d..af4efb51d 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestSequenceAccessor.java +++ b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestSequenceAccessor.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.gametest; import net.minecraft.gametest.framework.GameTestInfo; diff --git a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestSequenceMixin.java b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestSequenceMixin.java index fb812c5b1..48d2eaed0 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestSequenceMixin.java +++ b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/GameTestSequenceMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.gametest; import dan200.computercraft.gametest.core.TestHooks; diff --git a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/TestCommandAccessor.java b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/TestCommandAccessor.java index 8f87246a1..4837eb198 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/TestCommandAccessor.java +++ b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/TestCommandAccessor.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.gametest; import net.minecraft.commands.CommandSourceStack; diff --git a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/client/MinecraftMixin.java b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/client/MinecraftMixin.java index cce4db752..52ab5c742 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/client/MinecraftMixin.java +++ b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/client/MinecraftMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.gametest.client; import dan200.computercraft.gametest.core.MinecraftExtensions; diff --git a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/client/WorldOpenFlowsMixin.java b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/client/WorldOpenFlowsMixin.java index df5556fca..ec3c861b7 100644 --- a/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/client/WorldOpenFlowsMixin.java +++ b/projects/common/src/testMod/java/dan200/computercraft/mixin/gametest/client/WorldOpenFlowsMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.gametest.client; import net.minecraft.client.gui.screens.Screen; diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Computer_Test.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Computer_Test.kt index 5403eb4c6..7e6a948e3 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Computer_Test.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Computer_Test.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest import dan200.computercraft.api.lua.ObjectArguments diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/CraftOs_Test.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/CraftOs_Test.kt index 447d3380b..62b700698 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/CraftOs_Test.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/CraftOs_Test.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest import dan200.computercraft.gametest.api.Timeouts diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Disk_Drive_Test.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Disk_Drive_Test.kt index 559da776c..8758b4f17 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Disk_Drive_Test.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Disk_Drive_Test.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest import dan200.computercraft.core.apis.FSAPI diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Inventory_Test.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Inventory_Test.kt index 82100588b..ac557b781 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Inventory_Test.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Inventory_Test.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest import dan200.computercraft.api.lua.ObjectArguments diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Loot_Test.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Loot_Test.kt index 203c9aebe..0d8394189 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Loot_Test.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Loot_Test.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest import dan200.computercraft.gametest.api.Structures diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Modem_Test.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Modem_Test.kt index 1107e863b..d4de9f575 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Modem_Test.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Modem_Test.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest import dan200.computercraft.api.lua.ObjectArguments diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Monitor_Test.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Monitor_Test.kt index 6807961ab..4e9c54bed 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Monitor_Test.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Monitor_Test.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest import dan200.computercraft.gametest.api.* diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Pocket_Computer_Test.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Pocket_Computer_Test.kt index 8b1c56d29..aad722c03 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Pocket_Computer_Test.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Pocket_Computer_Test.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest import dan200.computercraft.api.lua.ObjectArguments diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Printer_Test.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Printer_Test.kt index 782757004..fd8577c3e 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Printer_Test.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Printer_Test.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest import dan200.computercraft.gametest.api.assertBlockHas diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Printout_Test.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Printout_Test.kt index 9577c20a7..1cb547eba 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Printout_Test.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Printout_Test.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest import dan200.computercraft.gametest.api.* diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Recipe_Test.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Recipe_Test.kt index 14779ec6d..da554f1ec 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Recipe_Test.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Recipe_Test.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest import dan200.computercraft.gametest.api.Structures diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Turtle_Test.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Turtle_Test.kt index e1adb6acd..259ff9b8d 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Turtle_Test.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/Turtle_Test.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest import dan200.computercraft.api.detail.BasicItemDetailProvider diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/ClientGameTest.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/ClientGameTest.kt index 0516278b7..c7b81c29e 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/ClientGameTest.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/ClientGameTest.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.api import net.minecraft.gametest.framework.GameTest diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/ClientTestExtensions.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/ClientTestExtensions.kt index 2f113bc72..b7f105612 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/ClientTestExtensions.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/ClientTestExtensions.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.api import dan200.computercraft.gametest.core.MinecraftExtensions diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/TestExtensions.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/TestExtensions.kt index 131d2f7bd..eb8eba1a1 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/TestExtensions.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/TestExtensions.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.api import dan200.computercraft.gametest.core.ManagedComputers diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/TestTags.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/TestTags.kt index d2632b359..da6b04c5b 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/TestTags.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/api/TestTags.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.api /** diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/ClientTestHooks.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/ClientTestHooks.kt index 1de990191..236247a8e 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/ClientTestHooks.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/ClientTestHooks.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.core import dan200.computercraft.gametest.api.Timeouts diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/ManagedComputers.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/ManagedComputers.kt index f5bd8fb0f..f8b77249e 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/ManagedComputers.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/ManagedComputers.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.core import dan200.computercraft.api.lua.ILuaAPI diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/TestHooks.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/TestHooks.kt index c4b288740..c3a418d30 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/TestHooks.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/TestHooks.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.core import dan200.computercraft.api.ComputerCraftAPI diff --git a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/TestReporters.kt b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/TestReporters.kt index a521d0836..f6a6e8b68 100644 --- a/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/TestReporters.kt +++ b/projects/common/src/testMod/kotlin/dan200/computercraft/gametest/core/TestReporters.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.core import net.minecraft.gametest.framework.GameTestInfo diff --git a/projects/common/src/testMod/resources/data/cctest/computer/startup.lua b/projects/common/src/testMod/resources/data/cctest/computer/startup.lua index b67ad6af7..5078dfe99 100644 --- a/projects/common/src/testMod/resources/data/cctest/computer/startup.lua +++ b/projects/common/src/testMod/resources/data/cctest/computer/startup.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + local label = os.getComputerLabel() if label == nil then return test.fail("Label a computer to use it.") end diff --git a/projects/common/src/testMod/resources/data/cctest/computer/tests/craftos_test.sends_basic_rednet_messages.echo.lua b/projects/common/src/testMod/resources/data/cctest/computer/tests/craftos_test.sends_basic_rednet_messages.echo.lua index c7f3a2056..9dabd353b 100644 --- a/projects/common/src/testMod/resources/data/cctest/computer/tests/craftos_test.sends_basic_rednet_messages.echo.lua +++ b/projects/common/src/testMod/resources/data/cctest/computer/tests/craftos_test.sends_basic_rednet_messages.echo.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + os.getComputerID = function() return 1 end os.computerID = os.getComputerID diff --git a/projects/common/src/testMod/resources/data/cctest/computer/tests/craftos_test.sends_basic_rednet_messages.main.lua b/projects/common/src/testMod/resources/data/cctest/computer/tests/craftos_test.sends_basic_rednet_messages.main.lua index 6cc619802..d6d52a2bd 100644 --- a/projects/common/src/testMod/resources/data/cctest/computer/tests/craftos_test.sends_basic_rednet_messages.main.lua +++ b/projects/common/src/testMod/resources/data/cctest/computer/tests/craftos_test.sends_basic_rednet_messages.main.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + rednet.open("top") local id, msg diff --git a/projects/common/src/testMod/resources/data/computercraft/lua/rom/autorun/cctest.lua b/projects/common/src/testMod/resources/data/computercraft/lua/rom/autorun/cctest.lua index ecf36c4e9..45d9cd654 100644 --- a/projects/common/src/testMod/resources/data/computercraft/lua/rom/autorun/cctest.lua +++ b/projects/common/src/testMod/resources/data/computercraft/lua/rom/autorun/cctest.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + --- Extend the test API with some convenience functions. -- -- It's much easier to declare these in Lua rather than Java. diff --git a/projects/core-api/build.gradle.kts b/projects/core-api/build.gradle.kts index a8532786e..ccc61de99 100644 --- a/projects/core-api/build.gradle.kts +++ b/projects/core-api/build.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + plugins { id("cc-tweaked.java-convention") id("cc-tweaked.publishing") diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/FileAttributes.java b/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/FileAttributes.java index 884c71ac1..2d8fb7ecc 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/FileAttributes.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/FileAttributes.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.filesystem; import javax.annotation.Nullable; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/FileOperationException.java b/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/FileOperationException.java index e249f484b..9d3ac4260 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/FileOperationException.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/FileOperationException.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.filesystem; import javax.annotation.Nullable; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/Mount.java b/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/Mount.java index 97bd83e02..91740c7dc 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/Mount.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/Mount.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.filesystem; import dan200.computercraft.api.peripheral.IComputerAccess; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/WritableMount.java b/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/WritableMount.java index 761437344..9cdd2ea3d 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/WritableMount.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/filesystem/WritableMount.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.filesystem; import dan200.computercraft.api.peripheral.IComputerAccess; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/GenericSource.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/GenericSource.java index 9dfe28ada..41d1a4fb6 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/GenericSource.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/GenericSource.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.lua; import dan200.computercraft.api.peripheral.GenericPeripheral; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/IArguments.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/IArguments.java index fa0177911..94b690fbb 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/IArguments.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/IArguments.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.lua; import org.jetbrains.annotations.Contract; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/IComputerSystem.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/IComputerSystem.java index 3165fb8f2..2a0c4ab8e 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/IComputerSystem.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/IComputerSystem.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.lua; import dan200.computercraft.api.peripheral.IComputerAccess; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/IDynamicLuaObject.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/IDynamicLuaObject.java index 02aa64be6..04be2bc74 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/IDynamicLuaObject.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/IDynamicLuaObject.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers + +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.lua; import dan200.computercraft.api.peripheral.IDynamicPeripheral; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaAPI.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaAPI.java index fb9905297..1206e8f86 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaAPI.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers + +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.lua; /** diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaAPIFactory.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaAPIFactory.java index 275d00d6e..75167739b 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaAPIFactory.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaAPIFactory.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.lua; import javax.annotation.Nullable; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaCallback.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaCallback.java index be0bd0aae..0a9e25066 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaCallback.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaCallback.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.lua; /** diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaContext.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaContext.java index 0b1e73bb2..263503789 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaContext.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaContext.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.lua; /** diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaFunction.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaFunction.java index 17ba60102..db3ec7e7a 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaFunction.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ILuaFunction.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.lua; /** diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaException.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaException.java index 6c1f2a679..c6d4371f2 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaException.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaException.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.lua; import javax.annotation.Nullable; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaFunction.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaFunction.java index bd7895a9a..fb7f3abb3 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaFunction.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaFunction.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.lua; import dan200.computercraft.api.peripheral.IComputerAccess; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaTable.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaTable.java index d7a7d4435..b3a996820 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaTable.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaTable.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.lua; import javax.annotation.Nullable; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaTask.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaTask.java index 9b5df3530..c49473b07 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaTask.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaTask.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.lua; import javax.annotation.Nullable; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaValues.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaValues.java index 49e4739cd..4e9f5a62b 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaValues.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/LuaValues.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.lua; import javax.annotation.Nullable; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/MethodResult.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/MethodResult.java index 57c3bbc54..712277098 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/MethodResult.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/MethodResult.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.lua; import dan200.computercraft.api.peripheral.IComputerAccess; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ObjectArguments.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ObjectArguments.java index a734fb2b9..fd3ee1019 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ObjectArguments.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ObjectArguments.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.lua; import javax.annotation.Nullable; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ObjectLuaTable.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ObjectLuaTable.java index c83a22954..db4ea75eb 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/ObjectLuaTable.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/ObjectLuaTable.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.lua; import javax.annotation.Nullable; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/lua/TaskCallback.java b/projects/core-api/src/main/java/dan200/computercraft/api/lua/TaskCallback.java index f02c2dede..70660f9be 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/lua/TaskCallback.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/lua/TaskCallback.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers + +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.lua; import org.checkerframework.checker.nullness.qual.MonotonicNonNull; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/package-info.java b/projects/core-api/src/main/java/dan200/computercraft/api/package-info.java index 8e04d156d..a19a3583d 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/package-info.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/package-info.java @@ -1,8 +1,6 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 /** * ComputerCraft's public API. diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/GenericPeripheral.java b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/GenericPeripheral.java index 9cbbdff86..bb866976e 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/GenericPeripheral.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/GenericPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.peripheral; import dan200.computercraft.api.lua.GenericSource; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IComputerAccess.java b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IComputerAccess.java index 7cc33fa15..fc56bc6a9 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IComputerAccess.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IComputerAccess.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.peripheral; import dan200.computercraft.api.filesystem.Mount; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IDynamicPeripheral.java b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IDynamicPeripheral.java index 0b22684fe..292b0cc1d 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IDynamicPeripheral.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IDynamicPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers + +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.peripheral; import dan200.computercraft.api.lua.*; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IPeripheral.java b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IPeripheral.java index c22f3eb7d..501894ddd 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IPeripheral.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/IPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.peripheral; import dan200.computercraft.api.lua.LuaFunction; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/NotAttachedException.java b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/NotAttachedException.java index cc3748e38..0b9593407 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/NotAttachedException.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/NotAttachedException.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.peripheral; import java.io.Serial; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/PeripheralType.java b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/PeripheralType.java index 6cbcc8dc8..1b5edf6f1 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/PeripheralType.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/PeripheralType.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.peripheral; import javax.annotation.Nullable; diff --git a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/WorkMonitor.java b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/WorkMonitor.java index 2c856fab5..265285c86 100644 --- a/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/WorkMonitor.java +++ b/projects/core-api/src/main/java/dan200/computercraft/api/peripheral/WorkMonitor.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.peripheral; import java.util.Objects; diff --git a/projects/core/build.gradle.kts b/projects/core/build.gradle.kts index a2928556a..12e05ae23 100644 --- a/projects/core/build.gradle.kts +++ b/projects/core/build.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + plugins { `java-library` `java-test-fixtures` diff --git a/projects/core/src/main/java/dan200/computercraft/core/ComputerContext.java b/projects/core/src/main/java/dan200/computercraft/core/ComputerContext.java index 53043eed4..305b598a9 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/ComputerContext.java +++ b/projects/core/src/main/java/dan200/computercraft/core/ComputerContext.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core; import dan200.computercraft.core.computer.ComputerThread; diff --git a/projects/core/src/main/java/dan200/computercraft/core/CoreConfig.java b/projects/core/src/main/java/dan200/computercraft/core/CoreConfig.java index 5273fc089..f2b140fe2 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/CoreConfig.java +++ b/projects/core/src/main/java/dan200/computercraft/core/CoreConfig.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core; import dan200.computercraft.core.apis.http.options.Action; diff --git a/projects/core/src/main/java/dan200/computercraft/core/Logging.java b/projects/core/src/main/java/dan200/computercraft/core/Logging.java index 7863019f8..cf0e4b357 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/Logging.java +++ b/projects/core/src/main/java/dan200/computercraft/core/Logging.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core; import org.slf4j.Marker; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/ApiFactories.java b/projects/core/src/main/java/dan200/computercraft/core/apis/ApiFactories.java index 755bc5d3b..232419aa1 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/ApiFactories.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/ApiFactories.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis; import dan200.computercraft.api.lua.ILuaAPIFactory; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/ComputerAccess.java b/projects/core/src/main/java/dan200/computercraft/core/apis/ComputerAccess.java index baffd6dfc..1844db6c6 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/ComputerAccess.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/ComputerAccess.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis; import dan200.computercraft.api.filesystem.Mount; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/FSAPI.java b/projects/core/src/main/java/dan200/computercraft/core/apis/FSAPI.java index 5d3ed8045..fd75c2f92 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/FSAPI.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/FSAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis; import dan200.computercraft.api.lua.IArguments; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/FastLuaException.java b/projects/core/src/main/java/dan200/computercraft/core/apis/FastLuaException.java index b7f2d21da..efadf52c2 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/FastLuaException.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/FastLuaException.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/HTTPAPI.java b/projects/core/src/main/java/dan200/computercraft/core/apis/HTTPAPI.java index 63a19a322..0adea2af9 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/HTTPAPI.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/HTTPAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis; import dan200.computercraft.api.lua.IArguments; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/IAPIEnvironment.java b/projects/core/src/main/java/dan200/computercraft/core/apis/IAPIEnvironment.java index c5735b686..9f19cf95f 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/IAPIEnvironment.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/IAPIEnvironment.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/LuaDateTime.java b/projects/core/src/main/java/dan200/computercraft/core/apis/LuaDateTime.java index d9e987129..d185f4fad 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/LuaDateTime.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/LuaDateTime.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/OSAPI.java b/projects/core/src/main/java/dan200/computercraft/core/apis/OSAPI.java index 58badf914..e6382f789 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/OSAPI.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/OSAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis; import dan200.computercraft.api.lua.IArguments; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/PeripheralAPI.java b/projects/core/src/main/java/dan200/computercraft/core/apis/PeripheralAPI.java index b44054cac..5c8ab85d4 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/PeripheralAPI.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/PeripheralAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis; import dan200.computercraft.api.filesystem.Mount; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/RedstoneAPI.java b/projects/core/src/main/java/dan200/computercraft/core/apis/RedstoneAPI.java index 8be6b8418..c25706a29 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/RedstoneAPI.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/RedstoneAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis; import dan200.computercraft.api.lua.ILuaAPI; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/TableHelper.java b/projects/core/src/main/java/dan200/computercraft/core/apis/TableHelper.java index cc60ef65c..6bcd85186 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/TableHelper.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/TableHelper.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/TermAPI.java b/projects/core/src/main/java/dan200/computercraft/core/apis/TermAPI.java index b35ea0af6..3da4cd85f 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/TermAPI.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/TermAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis; import dan200.computercraft.api.lua.IArguments; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/TermMethods.java b/projects/core/src/main/java/dan200/computercraft/core/apis/TermMethods.java index 22e49ded2..c810a9580 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/TermMethods.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/TermMethods.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis; import dan200.computercraft.api.lua.IArguments; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/ArrayByteChannel.java b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/ArrayByteChannel.java index cdee9b600..80078c568 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/ArrayByteChannel.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/ArrayByteChannel.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.handles; import java.nio.ByteBuffer; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/BinaryReadableHandle.java b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/BinaryReadableHandle.java index ead17be38..f69c3c4ff 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/BinaryReadableHandle.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/BinaryReadableHandle.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis.handles; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/BinaryWritableHandle.java b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/BinaryWritableHandle.java index 297fdad1c..17fa51626 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/BinaryWritableHandle.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/BinaryWritableHandle.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis.handles; import dan200.computercraft.api.lua.IArguments; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/ByteBufferChannel.java b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/ByteBufferChannel.java index ff723d87a..d0bf781d3 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/ByteBufferChannel.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/ByteBufferChannel.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.handles; import java.nio.ByteBuffer; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/EncodedReadableHandle.java b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/EncodedReadableHandle.java index a8a1fae29..e58f67f57 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/EncodedReadableHandle.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/EncodedReadableHandle.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis.handles; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/EncodedWritableHandle.java b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/EncodedWritableHandle.java index 1f62c6fa6..bd44e3d4e 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/EncodedWritableHandle.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/EncodedWritableHandle.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis.handles; import dan200.computercraft.api.lua.IArguments; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/HandleGeneric.java b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/HandleGeneric.java index 2b328f195..b24bda63f 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/handles/HandleGeneric.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/handles/HandleGeneric.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis.handles; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/CheckUrl.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/CheckUrl.java index ceae9ee2f..7d23b7973 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/CheckUrl.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/CheckUrl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http; import dan200.computercraft.core.apis.IAPIEnvironment; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/HTTPRequestException.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/HTTPRequestException.java index ca544c8ed..134867ea6 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/HTTPRequestException.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/HTTPRequestException.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.apis.http; import java.io.Serial; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/NetworkUtils.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/NetworkUtils.java index 07b66b287..b7376b929 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/NetworkUtils.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/NetworkUtils.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http; import dan200.computercraft.core.CoreConfig; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/Resource.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/Resource.java index ff6af05f4..c4396ff5e 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/Resource.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/Resource.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http; import dan200.computercraft.core.util.IoUtil; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/ResourceGroup.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/ResourceGroup.java index 3a516387a..66ece1cb1 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/ResourceGroup.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/ResourceGroup.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http; import java.util.Collections; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/ResourceQueue.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/ResourceQueue.java index 14c576510..846578b3a 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/ResourceQueue.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/ResourceQueue.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http; import java.util.ArrayDeque; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/Action.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/Action.java index 3c517a34a..3cd4d33d3 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/Action.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/Action.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.options; import java.util.OptionalInt; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressPredicate.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressPredicate.java index 5befeb5e0..ce4760452 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressPredicate.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressPredicate.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.options; import com.google.common.net.InetAddresses; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressRule.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressRule.java index 92e380944..89eac9f99 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressRule.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/AddressRule.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.options; import com.google.common.net.InetAddresses; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/Options.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/Options.java index df0fc8d3b..97a8a574f 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/Options.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/Options.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.options; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/PartialOptions.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/PartialOptions.java index 08fa46b4e..a651e2d7c 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/PartialOptions.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/options/PartialOptions.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.options; import com.google.errorprone.annotations.Immutable; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/request/HttpRequest.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/request/HttpRequest.java index acdabdc36..aef9f729e 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/request/HttpRequest.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/request/HttpRequest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.request; import dan200.computercraft.core.Logging; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/request/HttpRequestHandler.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/request/HttpRequestHandler.java index 0769e2d43..1f5a51c98 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/request/HttpRequestHandler.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/request/HttpRequestHandler.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.request; import dan200.computercraft.core.Logging; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/request/HttpResponseHandle.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/request/HttpResponseHandle.java index a5905502c..dba9683a6 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/request/HttpResponseHandle.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/request/HttpResponseHandle.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.request; import dan200.computercraft.api.lua.IArguments; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/NoOriginWebSocketHandshaker.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/NoOriginWebSocketHandshaker.java index 16dcf1417..2ed8f29f6 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/NoOriginWebSocketHandshaker.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/NoOriginWebSocketHandshaker.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.websocket; import io.netty.handler.codec.http.FullHttpRequest; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/Websocket.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/Websocket.java index 6c2ed008c..c50dca0d2 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/Websocket.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/Websocket.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.websocket; import com.google.common.base.Strings; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/WebsocketCompressionHandler.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/WebsocketCompressionHandler.java index 1c2663f2b..183ceb577 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/WebsocketCompressionHandler.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/WebsocketCompressionHandler.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.websocket; import io.netty.channel.ChannelHandler; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/WebsocketHandle.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/WebsocketHandle.java index 1f75769dd..d06c6ac7b 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/WebsocketHandle.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/WebsocketHandle.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.websocket; import com.google.common.base.Objects; diff --git a/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/WebsocketHandler.java b/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/WebsocketHandler.java index 2b7c2a4ac..33b7ece1d 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/WebsocketHandler.java +++ b/projects/core/src/main/java/dan200/computercraft/core/apis/http/websocket/WebsocketHandler.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.websocket; import dan200.computercraft.core.apis.http.NetworkUtils; diff --git a/projects/core/src/main/java/dan200/computercraft/core/asm/DeclaringClassLoader.java b/projects/core/src/main/java/dan200/computercraft/core/asm/DeclaringClassLoader.java index d9cead3e2..070845c62 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/asm/DeclaringClassLoader.java +++ b/projects/core/src/main/java/dan200/computercraft/core/asm/DeclaringClassLoader.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.asm; import java.security.ProtectionDomain; diff --git a/projects/core/src/main/java/dan200/computercraft/core/asm/Generator.java b/projects/core/src/main/java/dan200/computercraft/core/asm/Generator.java index b1a002f73..7782d897d 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/asm/Generator.java +++ b/projects/core/src/main/java/dan200/computercraft/core/asm/Generator.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.asm; import com.google.common.cache.CacheBuilder; diff --git a/projects/core/src/main/java/dan200/computercraft/core/asm/GenericMethod.java b/projects/core/src/main/java/dan200/computercraft/core/asm/GenericMethod.java index 3e5c1c8ee..d7a8468bf 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/asm/GenericMethod.java +++ b/projects/core/src/main/java/dan200/computercraft/core/asm/GenericMethod.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.asm; import dan200.computercraft.api.lua.GenericSource; diff --git a/projects/core/src/main/java/dan200/computercraft/core/asm/IntCache.java b/projects/core/src/main/java/dan200/computercraft/core/asm/IntCache.java index c8d4e159e..850c6303a 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/asm/IntCache.java +++ b/projects/core/src/main/java/dan200/computercraft/core/asm/IntCache.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.asm; import java.util.Arrays; diff --git a/projects/core/src/main/java/dan200/computercraft/core/asm/LuaMethod.java b/projects/core/src/main/java/dan200/computercraft/core/asm/LuaMethod.java index 51c3dc3c7..f9742de15 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/asm/LuaMethod.java +++ b/projects/core/src/main/java/dan200/computercraft/core/asm/LuaMethod.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.asm; import dan200.computercraft.api.lua.*; diff --git a/projects/core/src/main/java/dan200/computercraft/core/asm/NamedMethod.java b/projects/core/src/main/java/dan200/computercraft/core/asm/NamedMethod.java index abfae18be..35f5c51c7 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/asm/NamedMethod.java +++ b/projects/core/src/main/java/dan200/computercraft/core/asm/NamedMethod.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.asm; import dan200.computercraft.api.peripheral.PeripheralType; diff --git a/projects/core/src/main/java/dan200/computercraft/core/asm/ObjectSource.java b/projects/core/src/main/java/dan200/computercraft/core/asm/ObjectSource.java index c200b0ff5..3328c9b89 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/asm/ObjectSource.java +++ b/projects/core/src/main/java/dan200/computercraft/core/asm/ObjectSource.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.asm; import java.util.function.BiConsumer; diff --git a/projects/core/src/main/java/dan200/computercraft/core/asm/PeripheralMethod.java b/projects/core/src/main/java/dan200/computercraft/core/asm/PeripheralMethod.java index 9d139799c..2096ebf8d 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/asm/PeripheralMethod.java +++ b/projects/core/src/main/java/dan200/computercraft/core/asm/PeripheralMethod.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.asm; import dan200.computercraft.api.lua.IArguments; diff --git a/projects/core/src/main/java/dan200/computercraft/core/asm/Reflect.java b/projects/core/src/main/java/dan200/computercraft/core/asm/Reflect.java index 50a47c699..3fbba6b59 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/asm/Reflect.java +++ b/projects/core/src/main/java/dan200/computercraft/core/asm/Reflect.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.asm; import dan200.computercraft.api.lua.LuaTable; diff --git a/projects/core/src/main/java/dan200/computercraft/core/asm/ResultHelpers.java b/projects/core/src/main/java/dan200/computercraft/core/asm/ResultHelpers.java index 32062c9ae..2b9d58c0a 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/asm/ResultHelpers.java +++ b/projects/core/src/main/java/dan200/computercraft/core/asm/ResultHelpers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.asm; import dan200.computercraft.api.lua.MethodResult; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/ApiWrapper.java b/projects/core/src/main/java/dan200/computercraft/core/computer/ApiWrapper.java index fedce23c3..270f2c4e4 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/ApiWrapper.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/ApiWrapper.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer; import dan200.computercraft.api.lua.ILuaAPI; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/Computer.java b/projects/core/src/main/java/dan200/computercraft/core/computer/Computer.java index 4674c3843..b96a8223a 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/Computer.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/Computer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.computer; import com.google.common.base.Objects; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerEnvironment.java b/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerEnvironment.java index 2bf32873b..a9984aa1f 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerEnvironment.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerEnvironment.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer; import dan200.computercraft.api.filesystem.WritableMount; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerExecutor.java b/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerExecutor.java index 321533829..f44483fb1 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerExecutor.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerExecutor.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer; import dan200.computercraft.api.filesystem.Mount; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerSide.java b/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerSide.java index ae55ddf0c..c35016080 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerSide.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerSide.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer; import javax.annotation.Nullable; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerSystem.java b/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerSystem.java index a19ded2dc..54f3d5bf6 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerSystem.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerSystem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer; import dan200.computercraft.api.lua.IComputerSystem; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerThread.java b/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerThread.java index 951d6f004..19122a396 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerThread.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/ComputerThread.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer; import com.google.common.annotations.VisibleForTesting; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/Environment.java b/projects/core/src/main/java/dan200/computercraft/core/computer/Environment.java index 4274c6024..d6bb1ff4e 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/Environment.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/Environment.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.computer; import dan200.computercraft.api.lua.ILuaAPI; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/GlobalEnvironment.java b/projects/core/src/main/java/dan200/computercraft/core/computer/GlobalEnvironment.java index 2baf9d855..36b018cd0 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/GlobalEnvironment.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/GlobalEnvironment.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.computer; import dan200.computercraft.api.filesystem.Mount; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/LuaContext.java b/projects/core/src/main/java/dan200/computercraft/core/computer/LuaContext.java index c1ba7e072..f83e39b99 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/LuaContext.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/LuaContext.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.computer; import dan200.computercraft.api.lua.ILuaContext; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/TimeoutState.java b/projects/core/src/main/java/dan200/computercraft/core/computer/TimeoutState.java index 52a5a1e86..6c12d6794 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/TimeoutState.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/TimeoutState.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer; import dan200.computercraft.core.lua.ILuaMachine; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/MainThread.java b/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/MainThread.java index 138c8a3de..24896c31f 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/MainThread.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/MainThread.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer.mainthread; import dan200.computercraft.core.CoreConfig; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/MainThreadExecutor.java b/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/MainThreadExecutor.java index 98c7432c2..490f3c1f9 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/MainThreadExecutor.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/MainThreadExecutor.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer.mainthread; import dan200.computercraft.api.peripheral.WorkMonitor; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/MainThreadScheduler.java b/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/MainThreadScheduler.java index 21ce570c7..668d52c75 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/MainThreadScheduler.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/MainThreadScheduler.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer.mainthread; import dan200.computercraft.api.peripheral.WorkMonitor; diff --git a/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/NoWorkMainThreadScheduler.java b/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/NoWorkMainThreadScheduler.java index 45ee947ba..b4e04c59b 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/NoWorkMainThreadScheduler.java +++ b/projects/core/src/main/java/dan200/computercraft/core/computer/mainthread/NoWorkMainThreadScheduler.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer.mainthread; import dan200.computercraft.core.metrics.MetricsObserver; diff --git a/projects/core/src/main/java/dan200/computercraft/core/filesystem/ArchiveMount.java b/projects/core/src/main/java/dan200/computercraft/core/filesystem/ArchiveMount.java index f484c4844..cacc6c74a 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/filesystem/ArchiveMount.java +++ b/projects/core/src/main/java/dan200/computercraft/core/filesystem/ArchiveMount.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.filesystem; import com.google.common.cache.Cache; diff --git a/projects/core/src/main/java/dan200/computercraft/core/filesystem/ChannelWrapper.java b/projects/core/src/main/java/dan200/computercraft/core/filesystem/ChannelWrapper.java index 95289ef12..4bc8a5503 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/filesystem/ChannelWrapper.java +++ b/projects/core/src/main/java/dan200/computercraft/core/filesystem/ChannelWrapper.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.filesystem; import java.io.Closeable; diff --git a/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileMount.java b/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileMount.java index 309a107d5..b9a27687b 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileMount.java +++ b/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileMount.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.filesystem; import com.google.common.base.Joiner; diff --git a/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileSystem.java b/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileSystem.java index 4fa4b9c7c..d43918aaa 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileSystem.java +++ b/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileSystem.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.filesystem; import com.google.common.base.Splitter; diff --git a/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileSystemException.java b/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileSystemException.java index 253288409..ecce695ff 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileSystemException.java +++ b/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileSystemException.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.filesystem; import java.io.IOException; diff --git a/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileSystemWrapper.java b/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileSystemWrapper.java index 44689d179..3a5d0ea69 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileSystemWrapper.java +++ b/projects/core/src/main/java/dan200/computercraft/core/filesystem/FileSystemWrapper.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.filesystem; import dan200.computercraft.core.util.IoUtil; diff --git a/projects/core/src/main/java/dan200/computercraft/core/filesystem/JarMount.java b/projects/core/src/main/java/dan200/computercraft/core/filesystem/JarMount.java index 64ddb3b5c..18f1698d7 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/filesystem/JarMount.java +++ b/projects/core/src/main/java/dan200/computercraft/core/filesystem/JarMount.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.filesystem; import dan200.computercraft.api.filesystem.FileOperationException; diff --git a/projects/core/src/main/java/dan200/computercraft/core/filesystem/MountWrapper.java b/projects/core/src/main/java/dan200/computercraft/core/filesystem/MountWrapper.java index ff491e21d..f3938b4a9 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/filesystem/MountWrapper.java +++ b/projects/core/src/main/java/dan200/computercraft/core/filesystem/MountWrapper.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.filesystem; import dan200.computercraft.api.filesystem.FileOperationException; diff --git a/projects/core/src/main/java/dan200/computercraft/core/filesystem/SubMount.java b/projects/core/src/main/java/dan200/computercraft/core/filesystem/SubMount.java index b0044ec62..46c5502aa 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/filesystem/SubMount.java +++ b/projects/core/src/main/java/dan200/computercraft/core/filesystem/SubMount.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.filesystem; import dan200.computercraft.api.filesystem.Mount; diff --git a/projects/core/src/main/java/dan200/computercraft/core/filesystem/TrackingCloseable.java b/projects/core/src/main/java/dan200/computercraft/core/filesystem/TrackingCloseable.java index 9373b39f5..c124e650e 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/filesystem/TrackingCloseable.java +++ b/projects/core/src/main/java/dan200/computercraft/core/filesystem/TrackingCloseable.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.filesystem; import java.io.Closeable; diff --git a/projects/core/src/main/java/dan200/computercraft/core/filesystem/WritableFileMount.java b/projects/core/src/main/java/dan200/computercraft/core/filesystem/WritableFileMount.java index be055a293..6764d01af 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/filesystem/WritableFileMount.java +++ b/projects/core/src/main/java/dan200/computercraft/core/filesystem/WritableFileMount.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.filesystem; import com.google.common.collect.Sets; diff --git a/projects/core/src/main/java/dan200/computercraft/core/lua/BasicFunction.java b/projects/core/src/main/java/dan200/computercraft/core/lua/BasicFunction.java index 6cbbef15b..dc9593fb7 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/lua/BasicFunction.java +++ b/projects/core/src/main/java/dan200/computercraft/core/lua/BasicFunction.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.lua; import dan200.computercraft.api.lua.ILuaContext; diff --git a/projects/core/src/main/java/dan200/computercraft/core/lua/CobaltLuaMachine.java b/projects/core/src/main/java/dan200/computercraft/core/lua/CobaltLuaMachine.java index 8ee11fa31..be4caa6b1 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/lua/CobaltLuaMachine.java +++ b/projects/core/src/main/java/dan200/computercraft/core/lua/CobaltLuaMachine.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.lua; import dan200.computercraft.api.lua.IDynamicLuaObject; diff --git a/projects/core/src/main/java/dan200/computercraft/core/lua/ILuaMachine.java b/projects/core/src/main/java/dan200/computercraft/core/lua/ILuaMachine.java index 3ae31609a..d8b7c17dd 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/lua/ILuaMachine.java +++ b/projects/core/src/main/java/dan200/computercraft/core/lua/ILuaMachine.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.lua; import dan200.computercraft.api.lua.IDynamicLuaObject; diff --git a/projects/core/src/main/java/dan200/computercraft/core/lua/MachineEnvironment.java b/projects/core/src/main/java/dan200/computercraft/core/lua/MachineEnvironment.java index ea9592fc7..903036347 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/lua/MachineEnvironment.java +++ b/projects/core/src/main/java/dan200/computercraft/core/lua/MachineEnvironment.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.lua; import dan200.computercraft.api.lua.ILuaContext; diff --git a/projects/core/src/main/java/dan200/computercraft/core/lua/MachineResult.java b/projects/core/src/main/java/dan200/computercraft/core/lua/MachineResult.java index f36d890a1..8ff713c55 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/lua/MachineResult.java +++ b/projects/core/src/main/java/dan200/computercraft/core/lua/MachineResult.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.lua; import dan200.computercraft.core.computer.TimeoutState; diff --git a/projects/core/src/main/java/dan200/computercraft/core/lua/ResultInterpreterFunction.java b/projects/core/src/main/java/dan200/computercraft/core/lua/ResultInterpreterFunction.java index 7c4ad20da..04ed846f0 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/lua/ResultInterpreterFunction.java +++ b/projects/core/src/main/java/dan200/computercraft/core/lua/ResultInterpreterFunction.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.lua; import dan200.computercraft.api.lua.ILuaCallback; diff --git a/projects/core/src/main/java/dan200/computercraft/core/lua/TableImpl.java b/projects/core/src/main/java/dan200/computercraft/core/lua/TableImpl.java index 984a3a15b..0e0d42c18 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/lua/TableImpl.java +++ b/projects/core/src/main/java/dan200/computercraft/core/lua/TableImpl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.lua; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/core/src/main/java/dan200/computercraft/core/lua/VarargArguments.java b/projects/core/src/main/java/dan200/computercraft/core/lua/VarargArguments.java index ae0b61357..783fabe2a 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/lua/VarargArguments.java +++ b/projects/core/src/main/java/dan200/computercraft/core/lua/VarargArguments.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.lua; import dan200.computercraft.api.lua.IArguments; diff --git a/projects/core/src/main/java/dan200/computercraft/core/metrics/Metric.java b/projects/core/src/main/java/dan200/computercraft/core/metrics/Metric.java index 01425da07..04bb6a77a 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/metrics/Metric.java +++ b/projects/core/src/main/java/dan200/computercraft/core/metrics/Metric.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.metrics; import java.util.Collections; diff --git a/projects/core/src/main/java/dan200/computercraft/core/metrics/Metrics.java b/projects/core/src/main/java/dan200/computercraft/core/metrics/Metrics.java index 2882d341a..4eb2e3441 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/metrics/Metrics.java +++ b/projects/core/src/main/java/dan200/computercraft/core/metrics/Metrics.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.metrics; /** diff --git a/projects/core/src/main/java/dan200/computercraft/core/metrics/MetricsObserver.java b/projects/core/src/main/java/dan200/computercraft/core/metrics/MetricsObserver.java index e31416fb4..eec6770f0 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/metrics/MetricsObserver.java +++ b/projects/core/src/main/java/dan200/computercraft/core/metrics/MetricsObserver.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.metrics; import dan200.computercraft.core.computer.ComputerEnvironment; diff --git a/projects/core/src/main/java/dan200/computercraft/core/metrics/OperationTimer.java b/projects/core/src/main/java/dan200/computercraft/core/metrics/OperationTimer.java index d9ed84a98..182a22c10 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/metrics/OperationTimer.java +++ b/projects/core/src/main/java/dan200/computercraft/core/metrics/OperationTimer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.metrics; /** diff --git a/projects/core/src/main/java/dan200/computercraft/core/package-info.java b/projects/core/src/main/java/dan200/computercraft/core/package-info.java index 7f87fdfc5..e1ced50e2 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/package-info.java +++ b/projects/core/src/main/java/dan200/computercraft/core/package-info.java @@ -1,8 +1,6 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 /** * ComputerCraft's core Lua runtime and APIs. diff --git a/projects/core/src/main/java/dan200/computercraft/core/terminal/Palette.java b/projects/core/src/main/java/dan200/computercraft/core/terminal/Palette.java index da5a56034..7ce7cf509 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/terminal/Palette.java +++ b/projects/core/src/main/java/dan200/computercraft/core/terminal/Palette.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.terminal; import dan200.computercraft.core.util.Colour; diff --git a/projects/core/src/main/java/dan200/computercraft/core/terminal/Terminal.java b/projects/core/src/main/java/dan200/computercraft/core/terminal/Terminal.java index b069b794a..983a277e0 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/terminal/Terminal.java +++ b/projects/core/src/main/java/dan200/computercraft/core/terminal/Terminal.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.terminal; import dan200.computercraft.core.util.Colour; diff --git a/projects/core/src/main/java/dan200/computercraft/core/terminal/TextBuffer.java b/projects/core/src/main/java/dan200/computercraft/core/terminal/TextBuffer.java index 691ea660b..a83182e6c 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/terminal/TextBuffer.java +++ b/projects/core/src/main/java/dan200/computercraft/core/terminal/TextBuffer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.terminal; import java.nio.ByteBuffer; diff --git a/projects/core/src/main/java/dan200/computercraft/core/util/Colour.java b/projects/core/src/main/java/dan200/computercraft/core/util/Colour.java index 4f92d0c20..fded29173 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/util/Colour.java +++ b/projects/core/src/main/java/dan200/computercraft/core/util/Colour.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.util; import javax.annotation.Nullable; diff --git a/projects/core/src/main/java/dan200/computercraft/core/util/IoUtil.java b/projects/core/src/main/java/dan200/computercraft/core/util/IoUtil.java index 43217c049..dc5e18e67 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/util/IoUtil.java +++ b/projects/core/src/main/java/dan200/computercraft/core/util/IoUtil.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.util; import javax.annotation.Nullable; diff --git a/projects/core/src/main/java/dan200/computercraft/core/util/LuaUtil.java b/projects/core/src/main/java/dan200/computercraft/core/util/LuaUtil.java index aa7c18412..86205d319 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/util/LuaUtil.java +++ b/projects/core/src/main/java/dan200/computercraft/core/util/LuaUtil.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.util; import java.util.Collection; diff --git a/projects/core/src/main/java/dan200/computercraft/core/util/Nullability.java b/projects/core/src/main/java/dan200/computercraft/core/util/Nullability.java index d368dcca2..10b4e90fc 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/util/Nullability.java +++ b/projects/core/src/main/java/dan200/computercraft/core/util/Nullability.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.util; import javax.annotation.Nullable; diff --git a/projects/core/src/main/java/dan200/computercraft/core/util/StringUtil.java b/projects/core/src/main/java/dan200/computercraft/core/util/StringUtil.java index 49bdfe400..95b2e17af 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/util/StringUtil.java +++ b/projects/core/src/main/java/dan200/computercraft/core/util/StringUtil.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.util; import javax.annotation.Nullable; diff --git a/projects/core/src/main/java/dan200/computercraft/core/util/ThreadUtils.java b/projects/core/src/main/java/dan200/computercraft/core/util/ThreadUtils.java index 09590c005..c9e85cd1d 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/util/ThreadUtils.java +++ b/projects/core/src/main/java/dan200/computercraft/core/util/ThreadUtils.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.util; import com.google.common.util.concurrent.ThreadFactoryBuilder; diff --git a/projects/core/src/main/resources/data/computercraft/lua/bios.lua b/projects/core/src/main/resources/data/computercraft/lua/bios.lua index 07ba77bca..917b69862 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/bios.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/bios.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + -- Load in expect from the module path. -- -- Ideally we'd use require, but that is part of the shell, and so is not diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/colors.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/colors.lua index f6c4291b9..cff3b0c0d 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/colors.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/colors.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- Constants and functions for colour values, suitable for working with @{term} and @{redstone}. diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/colours.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/colours.lua index eea54fd7e..7181cb85c 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/colours.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/colours.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- An alternative version of @{colors} for lovers of British spelling. -- -- @see colors diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/command/commands.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/command/commands.lua index 55c20e207..315e17358 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/command/commands.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/command/commands.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- Execute [Minecraft commands][mc] and gather data from the results from a command computer. diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/disk.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/disk.lua index c00486b69..0989e53f2 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/disk.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/disk.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- Interact with disk drives. These functions can operate on locally attached or remote disk drives. To use a diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/fs.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/fs.lua index 0c142f439..0374d03d9 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/fs.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/fs.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- @module fs local expect = dofile("rom/modules/main/cc/expect.lua") diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/gps.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/gps.lua index 8a49cab1b..fafd2bea7 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/gps.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/gps.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- Use @{modem|modems} to locate the position of the current turtle or computers. diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/help.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/help.lua index f86b72a57..1836dc3b5 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/help.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/help.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- Find help files on the current computer. -- -- @module help diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/http/http.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/http/http.lua index 8f38c9b64..5895c1d93 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/http/http.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/http/http.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- Make HTTP requests, sending and receiving data to a remote web server. @module http diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/io.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/io.lua index 50ee341e0..8092eb0c5 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/io.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/io.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- Emulates Lua's standard [io library][io]. -- -- [io]: https://www.lua.org/manual/5.1/manual.html#5.7 diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/keys.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/keys.lua index 300cf6eb2..cfce4b9dc 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/keys.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/keys.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- Constants for all keyboard "key codes", as queued by the @{key} event. -- -- These values are not guaranteed to remain the same between versions. It is diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/paintutils.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/paintutils.lua index 048ce6ab8..d52373ce7 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/paintutils.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/paintutils.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- Utilities for drawing more complex graphics, such as pixels, lines and -- images. -- diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/parallel.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/parallel.lua index f18475e4b..0b3bdce61 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/parallel.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/parallel.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- A simple way to run several functions at once. Functions are not actually executed simultaneously, but rather this API will diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/peripheral.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/peripheral.lua index 7e3d8ed31..a7a291d7e 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/peripheral.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/peripheral.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- Find and control peripherals attached to this computer. Peripherals are blocks (or turtle and pocket computer upgrades) which can diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/rednet.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/rednet.lua index 5f0dede12..a2d168cc0 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/rednet.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/rednet.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- Communicate with other computers by using @{modem|modems}. @{rednet} provides a layer of abstraction on top of the main @{modem} peripheral, making it slightly easier to use. diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/settings.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/settings.lua index 1644ae34f..e4ebd7cff 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/settings.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/settings.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- Read and write configuration options for CraftOS and your programs. -- -- By default, the settings API will load its configuration from the diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/term.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/term.lua index 2d2b4afb4..2bfa72b8b 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/term.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/term.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- @module term local expect = dofile("rom/modules/main/cc/expect.lua").expect diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/textutils.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/textutils.lua index fd16f965f..dd751989b 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/textutils.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/textutils.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- Helpful utilities for formatting and manipulating strings. -- -- @module textutils diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/turtle/turtle.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/turtle/turtle.lua index 18fb1ed34..5a19e15a7 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/turtle/turtle.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/turtle/turtle.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- @module turtle if not turtle then diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/vector.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/vector.lua index 0b90d373c..e4d204062 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/vector.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/vector.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- A basic 3D vector type and some common vector operations. This may be useful -- when working with coordinates in Minecraft's world (such as those from the -- @{gps} API). diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/window.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/window.lua index fd57b79fa..302372a39 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/window.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/window.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- A @{term.Redirect|terminal redirect} occupying a smaller area of an existing terminal. This allows for easy definition of spaces within the display that can be written/drawn to, then later redrawn/repositioned/etc as need diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/audio/dfpwm.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/audio/dfpwm.lua index fc8e8fa66..fb35af58b 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/audio/dfpwm.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/audio/dfpwm.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + --[[- Convert between streams of DFPWM audio data and a list of amplitudes. diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/completion.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/completion.lua index ade5988ae..241f1a218 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/completion.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/completion.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: MPL-2.0 + --- A collection of helper methods for working with input completion, such -- as that require by @{_G.read}. -- diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/expect.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/expect.lua index e5c5ebcbf..85b3f5a0b 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/expect.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/expect.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- The @{cc.expect} library provides helper functions for verifying that function arguments are well-formed and of the correct type. diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/image/nft.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/image/nft.lua index 0950bebd7..731dbaaf6 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/image/nft.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/image/nft.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- Read and draw nbt ("Nitrogen Fingers Text") images. -- -- nft ("Nitrogen Fingers Text") is a file format for drawing basic images. diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/error_printer.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/error_printer.lua index 596cb2732..6619bee90 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/error_printer.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/error_printer.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + --[[- A pretty-printer for Lua errors. :::warning diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/exception.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/exception.lua index 6f306b3ac..c2def8c61 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/exception.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/exception.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + --[[- Internal tools for working with errors. :::warning diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/import.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/import.lua index 1aa80900e..8b03e3c4c 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/import.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/import.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + --[[- Upload a list of files, as received by the @{event!file_transfer} event. :::warning diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/errors.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/errors.lua index 81c0cef9f..2fcf9aa10 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/errors.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/errors.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + --[[- The error messages reported by our lexer and parser. :::warning diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/init.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/init.lua index 00df37a24..7df278186 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/init.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/init.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + --[[- The main entrypoint to our Lua parser :::warning diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/lexer.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/lexer.lua index f4f5159c5..16436b3ea 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/lexer.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/lexer.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + --[[- A lexer for Lua source code. :::warning diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/parser.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/parser.lua index 125942952..2ee238c68 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/parser.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/parser.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + --[[- A parser for Lua programs and expressions. :::warning diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/pretty.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/pretty.lua index 4e7bbdaa1..19b285882 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/pretty.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/pretty.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- A pretty printer for rendering data structures in an aesthetically pleasing manner. diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/require.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/require.lua index 28391580c..73e20151f 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/require.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/require.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- A pure Lua implementation of the builtin @{require} function and @{package} library. diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/shell/completion.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/shell/completion.lua index 86a061c42..388d3983e 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/shell/completion.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/shell/completion.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- A collection of helper methods for working with shell completion. Most programs may be completed using the @{build} helper method, rather than diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/strings.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/strings.lua index 6c9da0d9f..51e6035d0 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/strings.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/strings.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- Various utilities for working with strings and text. -- -- @module cc.strings diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/about.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/about.lua index 37a0e2901..5a568fa79 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/about.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/about.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + -- Prints information about CraftOS term.setTextColor(colors.yellow) print(os.version() .. " on " .. _HOST) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/advanced/bg.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/advanced/bg.lua index ccb03ffce..fe0cd26e8 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/advanced/bg.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/advanced/bg.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not shell.openTab then printError("Requires multishell") return diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/advanced/fg.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/advanced/fg.lua index 0e87ca495..a3778ac8f 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/advanced/fg.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/advanced/fg.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not shell.openTab then printError("Requires multishell") return diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/advanced/multishell.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/advanced/multishell.lua index 69e0447a5..8ab5b7bcf 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/advanced/multishell.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/advanced/multishell.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- Multishell allows multiple programs to be run at the same time. -- -- When multiple programs are running, it displays a tab bar at the top of the diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/alias.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/alias.lua index c3471a723..de2191fc9 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/alias.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/alias.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } if #tArgs > 2 then local programName = arg[0] or fs.getName(shell.getRunningProgram()) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/apis.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/apis.lua index 3fd56c80f..b4bcfcbbc 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/apis.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/apis.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tApis = {} for k, v in pairs(_G) do if type(k) == "string" and type(v) == "table" and k ~= "_G" then diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/cd.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/cd.lua index f127ea88b..ef17d26eb 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/cd.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/cd.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } if #tArgs < 1 then local programName = arg[0] or fs.getName(shell.getRunningProgram()) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/clear.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/clear.lua index cfd8cb9c4..5e8eb93ff 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/clear.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/clear.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } local function printUsage() diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/command/commands.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/command/commands.lua index fe2b20ec2..6f42593c0 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/command/commands.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/command/commands.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not commands then printError("Requires a Command Computer.") return diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/command/exec.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/command/exec.lua index 1591b579d..79fb45e27 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/command/exec.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/command/exec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } if not commands then printError("Requires a Command Computer.") diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/copy.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/copy.lua index 0977d3f8f..c4ae8f5df 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/copy.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/copy.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } if #tArgs < 2 then local programName = arg[0] or fs.getName(shell.getRunningProgram()) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/delete.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/delete.lua index 1d071619c..727c12bcb 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/delete.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/delete.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local args = table.pack(...) if args.n < 1 then diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/drive.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/drive.lua index 799b65ecc..2c41935b5 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/drive.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/drive.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } -- Get where a directory is mounted diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/edit.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/edit.lua index fe7788074..9821a6d7e 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/edit.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/edit.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + -- Get file to edit local tArgs = { ... } if #tArgs == 0 then diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/eject.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/eject.lua index 3deb9c2a2..ce538172d 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/eject.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/eject.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + -- Get arguments local tArgs = { ... } if #tArgs == 0 then diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/exit.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/exit.lua index b90092cba..ca41377e2 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/exit.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/exit.lua @@ -1 +1,5 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + shell.exit() diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/advanced/paint.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/advanced/paint.lua index 555bab4bd..2cb3e4bc8 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/advanced/paint.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/advanced/paint.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + -- Paint created by nitrogenfingers (edited by dan200) -- http://www.youtube.com/user/NitrogenFingers diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/advanced/redirection.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/advanced/redirection.lua index 7cc1233a6..b6bb26d90 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/advanced/redirection.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/advanced/redirection.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --CCRedirection by : RamiLego4Game and Dan200-- --Based on Redirection by Dan200: http://www.redirectiongame.com-- --Clearing Screen-- diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/adventure.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/adventure.lua index 639b5307f..b374ff835 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/adventure.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/adventure.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tBiomes = { "in a forest", "in a pine forest", diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/dj.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/dj.lua index 48b4aa06c..dce6d9f41 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/dj.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/dj.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } local function printUsage() diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/hello.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/hello.lua index 0afdf9e77..c909db669 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/hello.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/hello.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if term.isColour() then term.setTextColour(2 ^ math.random(0, 15)) end diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/speaker.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/speaker.lua index d8f2a1bd2..6755ec29d 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/speaker.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/speaker.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local function get_speakers(name) if name then local speaker = peripheral.wrap(name) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/worm.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/worm.lua index 9d98ac2fd..17561b17c 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/worm.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/fun/worm.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + -- Display the start screen local w, h = term.getSize() diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/gps.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/gps.lua index d8a050edc..3a65fd8ae 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/gps.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/gps.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local function printUsage() local programName = arg[0] or fs.getName(shell.getRunningProgram()) print("Usages:") diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/help.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/help.lua index 14fd9d261..3ae6ac7f7 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/help.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/help.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } local sTopic if #tArgs > 0 then diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/http/pastebin.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/http/pastebin.lua index f1335ef97..763433cfe 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/http/pastebin.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/http/pastebin.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local function printUsage() local programName = arg[0] or fs.getName(shell.getRunningProgram()) print("Usages:") diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/http/wget.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/http/wget.lua index 90e566337..bd568c366 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/http/wget.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/http/wget.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local function printUsage() local programName = arg[0] or fs.getName(shell.getRunningProgram()) print("Usage:") diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/id.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/id.lua index 79aecf9e6..fc70a6c57 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/id.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/id.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local sDrive = nil local tArgs = { ... } if #tArgs > 0 then diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/import.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/import.lua index 2e0304d46..a3b4d44ef 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/import.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/import.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + require "cc.completion" print("Drop files to transfer them to this computer") diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/label.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/label.lua index 68f228c60..9b0df8937 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/label.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/label.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local function printUsage() local programName = arg[0] or fs.getName(shell.getRunningProgram()) print("Usages:") diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/list.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/list.lua index 490662071..b25349e92 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/list.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/list.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } -- Get all the files in the directory diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/lua.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/lua.lua index 184fde912..7e00ead50 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/lua.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/lua.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } if #tArgs > 0 then print("This is an interactive Lua prompt.") diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/mkdir.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/mkdir.lua index 4e1b8ac10..5300fccde 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/mkdir.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/mkdir.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } if #tArgs < 1 then diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/monitor.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/monitor.lua index fbf8daa04..01f5a1f2f 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/monitor.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/monitor.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local function printUsage() local programName = arg[0] or fs.getName(shell.getRunningProgram()) print("Usage:") diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/motd.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/motd.lua index 5a2e78b83..0fc64ca97 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/motd.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/motd.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local date = os.date("*t") if date.month == 1 and date.day == 1 then print("Happy new year!") diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/move.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/move.lua index 3f68236d0..ffc55ebf7 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/move.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/move.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } if #tArgs < 2 then local programName = arg[0] or fs.getName(shell.getRunningProgram()) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/peripherals.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/peripherals.lua index 17d4877e8..e947e6c17 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/peripherals.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/peripherals.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tPeripherals = peripheral.getNames() print("Attached Peripherals:") if #tPeripherals > 0 then diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/pocket/equip.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/pocket/equip.lua index b4fdb399a..e2fbd571c 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/pocket/equip.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/pocket/equip.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not pocket then printError("Requires a Pocket Computer") return diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/pocket/falling.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/pocket/falling.lua index baec3840f..d6f623b66 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/pocket/falling.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/pocket/falling.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[ Falling - Based on Tetris by Alexey Pajitnov This version written by Gopher, at the request of Dan200, for diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/pocket/unequip.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/pocket/unequip.lua index 8cd1ef444..613ffbb61 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/pocket/unequip.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/pocket/unequip.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not pocket then printError("Requires a Pocket Computer") return diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/programs.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/programs.lua index ca987596a..9554e33a4 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/programs.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/programs.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local bAll = false local tArgs = { ... } if #tArgs > 0 and tArgs[1] == "all" then diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/reboot.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/reboot.lua index 2824cc0c6..5c2362940 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/reboot.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/reboot.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if term.isColour() then term.setTextColour(colours.yellow) end diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/rednet/chat.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/rednet/chat.lua index 6585d0675..c708c34cb 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/rednet/chat.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/rednet/chat.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } local function printUsage() diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/rednet/repeat.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/rednet/repeat.lua index e1e0b9340..b1acbcc9b 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/rednet/repeat.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/rednet/repeat.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + -- Find modems local tModems = {} for _, sModem in ipairs(peripheral.getNames()) do diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/redstone.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/redstone.lua index 7c3165c1c..9280ad54d 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/redstone.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/redstone.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } local function printUsage() diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/rename.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/rename.lua index e627bb27f..19e402c17 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/rename.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/rename.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } if #tArgs < 2 then local programName = arg[0] or fs.getName(shell.getRunningProgram()) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/set.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/set.lua index 01d4b246e..8e2072bdd 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/set.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/set.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local pp = require "cc.pretty" local tArgs = { ... } diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/shell.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/shell.lua index 9a6165439..7a2fea94c 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/shell.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/shell.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --[[- The shell API provides access to CraftOS's command line interface. It allows you to @{run|start programs}, @{setCompletionFunction|add completion diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/shutdown.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/shutdown.lua index b895c571f..f8b80bc9b 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/shutdown.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/shutdown.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if term.isColour() then term.setTextColour(colours.yellow) end diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/time.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/time.lua index 988846013..24ff5a3c1 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/time.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/time.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local nTime = os.time() local nDay = os.day() print("The time is " .. textutils.formatTime(nTime, false) .. " on Day " .. nDay) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/craft.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/craft.lua index 19ab82f45..9dce7ab41 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/craft.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/craft.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not turtle then printError("Requires a Turtle") return diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/dance.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/dance.lua index 20b14f12e..21dad33f3 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/dance.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/dance.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not turtle then printError("Requires a Turtle") end diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/equip.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/equip.lua index 9f0d60735..2c7cc6972 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/equip.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/equip.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not turtle then printError("Requires a Turtle") return diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/excavate.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/excavate.lua index 277fb068e..5e9162649 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/excavate.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/excavate.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not turtle then printError("Requires a Turtle") return diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/go.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/go.lua index 5b6c658e2..4d76e3ff7 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/go.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/go.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not turtle then printError("Requires a Turtle") return diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/refuel.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/refuel.lua index 138cb9e47..eb65aa63c 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/refuel.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/refuel.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not turtle then printError("Requires a Turtle") return diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/tunnel.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/tunnel.lua index 821965390..d54c48395 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/tunnel.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/tunnel.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not turtle then printError("Requires a Turtle") return diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/turn.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/turn.lua index c4d6ceeb7..e1e829a12 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/turn.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/turn.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not turtle then printError("Requires a Turtle") return diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/unequip.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/unequip.lua index 82a37c895..9cc17fff3 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/unequip.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/turtle/unequip.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + if not turtle then printError("Requires a Turtle") return diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/type.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/type.lua index aa2ee54bb..25421d700 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/type.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/type.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local tArgs = { ... } if #tArgs < 1 then local programName = arg[0] or fs.getName(shell.getRunningProgram()) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/startup.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/startup.lua index 99d2e5869..2c1f147a3 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/startup.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/startup.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2017 Daniel Ratcliffe +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local completion = require "cc.shell.completion" -- Setup paths diff --git a/projects/core/src/test/java/dan200/computercraft/core/ComputerTestDelegate.java b/projects/core/src/test/java/dan200/computercraft/core/ComputerTestDelegate.java index 323115d04..0f03cd273 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/ComputerTestDelegate.java +++ b/projects/core/src/test/java/dan200/computercraft/core/ComputerTestDelegate.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core; import dan200.computercraft.api.filesystem.WritableMount; diff --git a/projects/core/src/test/java/dan200/computercraft/core/LuaCoverage.java b/projects/core/src/test/java/dan200/computercraft/core/LuaCoverage.java index 751f77dbb..8da47d0a2 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/LuaCoverage.java +++ b/projects/core/src/test/java/dan200/computercraft/core/LuaCoverage.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core; import it.unimi.dsi.fastutil.ints.Int2IntMap; diff --git a/projects/core/src/test/java/dan200/computercraft/core/TestFiles.java b/projects/core/src/test/java/dan200/computercraft/core/TestFiles.java index 7e0788c14..92fae5c6e 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/TestFiles.java +++ b/projects/core/src/test/java/dan200/computercraft/core/TestFiles.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core; import java.nio.file.Path; diff --git a/projects/core/src/test/java/dan200/computercraft/core/apis/ObjectWrapper.java b/projects/core/src/test/java/dan200/computercraft/core/apis/ObjectWrapper.java index 8abc39a28..543776bff 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/apis/ObjectWrapper.java +++ b/projects/core/src/test/java/dan200/computercraft/core/apis/ObjectWrapper.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis; import dan200.computercraft.api.lua.*; diff --git a/projects/core/src/test/java/dan200/computercraft/core/apis/handles/ArrayByteChannelTest.java b/projects/core/src/test/java/dan200/computercraft/core/apis/handles/ArrayByteChannelTest.java index 0a6421767..5c66564fb 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/apis/handles/ArrayByteChannelTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/apis/handles/ArrayByteChannelTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.handles; import dan200.computercraft.test.core.filesystem.ReadableChannelContract; diff --git a/projects/core/src/test/java/dan200/computercraft/core/apis/handles/BinaryReadableHandleTest.java b/projects/core/src/test/java/dan200/computercraft/core/apis/handles/BinaryReadableHandleTest.java index 0673a2b7f..42cb04b8d 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/apis/handles/BinaryReadableHandleTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/apis/handles/BinaryReadableHandleTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.handles; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/core/src/test/java/dan200/computercraft/core/apis/handles/ByteBufferChannelTest.java b/projects/core/src/test/java/dan200/computercraft/core/apis/handles/ByteBufferChannelTest.java index 653720177..0fb050e1a 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/apis/handles/ByteBufferChannelTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/apis/handles/ByteBufferChannelTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.handles; import dan200.computercraft.test.core.filesystem.ReadableChannelContract; diff --git a/projects/core/src/test/java/dan200/computercraft/core/apis/handles/EncodedReadableHandleTest.java b/projects/core/src/test/java/dan200/computercraft/core/apis/handles/EncodedReadableHandleTest.java index 8458def96..acff62ab7 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/apis/handles/EncodedReadableHandleTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/apis/handles/EncodedReadableHandleTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.handles; import dan200.computercraft.api.lua.LuaException; diff --git a/projects/core/src/test/java/dan200/computercraft/core/apis/http/options/AddressRuleTest.java b/projects/core/src/test/java/dan200/computercraft/core/apis/http/options/AddressRuleTest.java index 6c16b3f14..4682d45da 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/apis/http/options/AddressRuleTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/apis/http/options/AddressRuleTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.apis.http.options; import dan200.computercraft.core.CoreConfig; diff --git a/projects/core/src/test/java/dan200/computercraft/core/asm/GeneratorTest.java b/projects/core/src/test/java/dan200/computercraft/core/asm/GeneratorTest.java index 7fba4af6c..d3f06b7b7 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/asm/GeneratorTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/asm/GeneratorTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.asm; import dan200.computercraft.api.lua.*; diff --git a/projects/core/src/test/java/dan200/computercraft/core/asm/IntCacheTest.java b/projects/core/src/test/java/dan200/computercraft/core/asm/IntCacheTest.java index ef1e3d2c4..2fa8783aa 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/asm/IntCacheTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/asm/IntCacheTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.asm; import org.junit.jupiter.api.Test; diff --git a/projects/core/src/test/java/dan200/computercraft/core/asm/MethodTest.java b/projects/core/src/test/java/dan200/computercraft/core/asm/MethodTest.java index 1e197c021..5866eac32 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/asm/MethodTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/asm/MethodTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.asm; import dan200.computercraft.api.lua.*; diff --git a/projects/core/src/test/java/dan200/computercraft/core/computer/ComputerBootstrap.java b/projects/core/src/test/java/dan200/computercraft/core/computer/ComputerBootstrap.java index c2134698e..19c70be75 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/computer/ComputerBootstrap.java +++ b/projects/core/src/test/java/dan200/computercraft/core/computer/ComputerBootstrap.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer; import dan200.computercraft.api.filesystem.WritableMount; diff --git a/projects/core/src/test/java/dan200/computercraft/core/computer/ComputerTest.java b/projects/core/src/test/java/dan200/computercraft/core/computer/ComputerTest.java index ecb849095..98124fc89 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/computer/ComputerTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/computer/ComputerTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer; import com.google.common.io.CharStreams; diff --git a/projects/core/src/test/java/dan200/computercraft/core/computer/ComputerThreadTest.java b/projects/core/src/test/java/dan200/computercraft/core/computer/ComputerThreadTest.java index b64f24f62..04193853c 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/computer/ComputerThreadTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/computer/ComputerThreadTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.computer; import dan200.computercraft.core.lua.MachineResult; diff --git a/projects/core/src/test/java/dan200/computercraft/core/filesystem/FileMountTest.java b/projects/core/src/test/java/dan200/computercraft/core/filesystem/FileMountTest.java index 588bca130..695747cbc 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/filesystem/FileMountTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/filesystem/FileMountTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.filesystem; import com.google.common.io.MoreFiles; diff --git a/projects/core/src/test/java/dan200/computercraft/core/filesystem/FileSystemTest.java b/projects/core/src/test/java/dan200/computercraft/core/filesystem/FileSystemTest.java index fc4825a1d..703b32e38 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/filesystem/FileSystemTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/filesystem/FileSystemTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.filesystem; import com.google.common.io.Files; diff --git a/projects/core/src/test/java/dan200/computercraft/core/filesystem/JarMountTest.java b/projects/core/src/test/java/dan200/computercraft/core/filesystem/JarMountTest.java index b0e7c43e4..416571dd5 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/filesystem/JarMountTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/filesystem/JarMountTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.filesystem; import com.google.common.io.ByteStreams; diff --git a/projects/core/src/test/java/dan200/computercraft/core/filesystem/WritableFileMountTest.java b/projects/core/src/test/java/dan200/computercraft/core/filesystem/WritableFileMountTest.java index e97c8a691..74e624421 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/filesystem/WritableFileMountTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/filesystem/WritableFileMountTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.core.filesystem; import com.google.common.io.MoreFiles; diff --git a/projects/core/src/test/java/dan200/computercraft/core/terminal/TerminalTest.java b/projects/core/src/test/java/dan200/computercraft/core/terminal/TerminalTest.java index f47746252..7f79d49f8 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/terminal/TerminalTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/terminal/TerminalTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.terminal; import dan200.computercraft.api.lua.LuaValues; diff --git a/projects/core/src/test/java/dan200/computercraft/core/terminal/TextBufferTest.java b/projects/core/src/test/java/dan200/computercraft/core/terminal/TextBufferTest.java index 1b9550fcc..4efc3e980 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/terminal/TextBufferTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/terminal/TextBufferTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.core.terminal; import org.junit.jupiter.api.Test; diff --git a/projects/core/src/test/kotlin/http/TestHttpApi.kt b/projects/core/src/test/kotlin/http/TestHttpApi.kt index c6ce1de14..0064c72b9 100644 --- a/projects/core/src/test/kotlin/http/TestHttpApi.kt +++ b/projects/core/src/test/kotlin/http/TestHttpApi.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package http import dan200.computercraft.core.CoreConfig diff --git a/projects/core/src/test/resources/benchmark.lua b/projects/core/src/test/resources/benchmark.lua index dbbef23a1..a01287756 100644 --- a/projects/core/src/test/resources/benchmark.lua +++ b/projects/core/src/test/resources/benchmark.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + local function log(msg) print(msg) if assertion then assertion.log(msg) end diff --git a/projects/core/src/test/resources/junit-platform.properties b/projects/core/src/test/resources/junit-platform.properties index 1d27b78fb..ee4487e53 100644 --- a/projects/core/src/test/resources/junit-platform.properties +++ b/projects/core/src/test/resources/junit-platform.properties @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +# +# SPDX-License-Identifier: CC0-1.0 junit.jupiter.execution.parallel.enabled=true diff --git a/projects/core/src/test/resources/test-rom/data/dump-args.lua b/projects/core/src/test/resources/test-rom/data/dump-args.lua index 3772a43ec..1b0038d69 100644 --- a/projects/core/src/test/resources/test-rom/data/dump-args.lua +++ b/projects/core/src/test/resources/test-rom/data/dump-args.lua @@ -1 +1,5 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + _G.__arg = _ENV.arg diff --git a/projects/core/src/test/resources/test-rom/mcfly.lua b/projects/core/src/test/resources/test-rom/mcfly.lua index 9eb79875a..55a08ae45 100644 --- a/projects/core/src/test/resources/test-rom/mcfly.lua +++ b/projects/core/src/test/resources/test-rom/mcfly.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + --- A very basic test framework for ComputerCraft -- -- Like Busted (http://olivinelabs.com/busted/), but more memorable. diff --git a/projects/core/src/test/resources/test-rom/spec/apis/colors_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/colors_spec.lua index c7505ca5a..c88d062c5 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/colors_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/colors_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + describe("The colors library", function() describe("colors.combine", function() it("validates arguments", function() diff --git a/projects/core/src/test/resources/test-rom/spec/apis/fs_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/fs_spec.lua index 539d30dc2..0ec9b711c 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/fs_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/fs_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + describe("The fs library", function() local test_root = "/test-files/fs" local function test_file(path) return fs.combine(test_root, path) end diff --git a/projects/core/src/test/resources/test-rom/spec/apis/gps_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/gps_spec.lua index 1e0a49f87..307699b9e 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/gps_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/gps_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + describe("The gps library", function() describe("gps.locate", function() it("validates arguments", function() diff --git a/projects/core/src/test/resources/test-rom/spec/apis/help_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/help_spec.lua index f8ebcdb5c..4dcd5cb78 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/help_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/help_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + describe("The help library", function() describe("help.setPath", function() it("validates arguments", function() diff --git a/projects/core/src/test/resources/test-rom/spec/apis/http_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/http_spec.lua index ca8788c22..39a1506ac 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/http_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/http_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + local timeout = require "test_helpers".timeout describe("The http library", function() diff --git a/projects/core/src/test/resources/test-rom/spec/apis/io_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/io_spec.lua index b1746093f..2a4fe4d6a 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/io_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/io_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + --- Tests the io library is (mostly) consistent with PUC Lua. -- -- These tests are based on the tests for Lua 5.1 and 5.3 diff --git a/projects/core/src/test/resources/test-rom/spec/apis/keys_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/keys_spec.lua index 8983543bc..0cfe80947 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/keys_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/keys_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + describe("The keys library", function() describe("keys.getName", function() it("validates arguments", function() diff --git a/projects/core/src/test/resources/test-rom/spec/apis/os_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/os_spec.lua index 12aaadced..9fc31a979 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/os_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/os_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + describe("The os library", function() describe("os.date and os.time", function() it("round trips correctly", function() diff --git a/projects/core/src/test/resources/test-rom/spec/apis/paintutils_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/paintutils_spec.lua index f13bbcfd2..b243c7940 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/paintutils_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/paintutils_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local with_window = require "test_helpers".with_window describe("The paintutils library", function() diff --git a/projects/core/src/test/resources/test-rom/spec/apis/parallel_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/parallel_spec.lua index 30add56c6..df8416001 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/parallel_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/parallel_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + describe("The parallel library", function() describe("parallel.waitForAny", function() it("validates arguments", function() diff --git a/projects/core/src/test/resources/test-rom/spec/apis/peripheral_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/peripheral_spec.lua index 36d507a5e..e580eb5d6 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/peripheral_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/peripheral_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + describe("The peripheral library", function() local it_modem = peripheral.getType("top") == "modem" and it or pending local it_remote = peripheral.getType("bottom") == "peripheral_hub" and it or pending diff --git a/projects/core/src/test/resources/test-rom/spec/apis/rednet_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/rednet_spec.lua index 2f57a7c08..08b73a9c7 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/rednet_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/rednet_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + describe("The rednet library", function() describe("rednet.open", function() it("validates arguments", function() diff --git a/projects/core/src/test/resources/test-rom/spec/apis/redstone_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/redstone_spec.lua index 148d08700..118209bd2 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/redstone_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/redstone_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + local function it_side(func, ...) local arg = table.pack(...) it("requires a specific side", function() diff --git a/projects/core/src/test/resources/test-rom/spec/apis/settings_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/settings_spec.lua index 5e8f9783f..927c39480 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/settings_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/settings_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + describe("The settings library", function() describe("settings.define", function() it("ensures valid type names", function() diff --git a/projects/core/src/test/resources/test-rom/spec/apis/term_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/term_spec.lua index 769fcb867..033c2cfdf 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/term_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/term_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + describe("The term library", function() describe("term.redirect", function() it("validates arguments", function() diff --git a/projects/core/src/test/resources/test-rom/spec/apis/textutils_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/textutils_spec.lua index 1bf3d7402..3a1941ff7 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/textutils_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/textutils_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local helpers = require "test_helpers" describe("The textutils library", function() diff --git a/projects/core/src/test/resources/test-rom/spec/apis/window_spec.lua b/projects/core/src/test/resources/test-rom/spec/apis/window_spec.lua index 6b5e7fdf7..9a2a0bb6b 100644 --- a/projects/core/src/test/resources/test-rom/spec/apis/window_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/apis/window_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + describe("The window library", function() local function mk() return window.create(term.current(), 1, 1, 5, 5, false) diff --git a/projects/core/src/test/resources/test-rom/spec/base_spec.lua b/projects/core/src/test/resources/test-rom/spec/base_spec.lua index 815461ec7..eaf83d0e0 100644 --- a/projects/core/src/test/resources/test-rom/spec/base_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/base_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + local with_window = require "test_helpers".with_window describe("The Lua base library", function() diff --git a/projects/core/src/test/resources/test-rom/spec/lua/README.md b/projects/core/src/test/resources/test-rom/spec/lua/README.md index 9bd6c61a0..91b0bbc73 100644 --- a/projects/core/src/test/resources/test-rom/spec/lua/README.md +++ b/projects/core/src/test/resources/test-rom/spec/lua/README.md @@ -1,3 +1,9 @@ + + # Lua VM tests Unlike the rest of the test suites, the code in this folder doesn't test any diff --git a/projects/core/src/test/resources/test-rom/spec/lua/coroutine_spec.lua b/projects/core/src/test/resources/test-rom/spec/lua/coroutine_spec.lua index 2bf29e260..a0819e88a 100644 --- a/projects/core/src/test/resources/test-rom/spec/lua/coroutine_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/lua/coroutine_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + describe("Coroutines", function() local function assert_resume(ok, ...) if ok then return table.pack(...) end diff --git a/projects/core/src/test/resources/test-rom/spec/lua/timeout_spec.lua b/projects/core/src/test/resources/test-rom/spec/lua/timeout_spec.lua index 159130d4c..b21b4048a 100644 --- a/projects/core/src/test/resources/test-rom/spec/lua/timeout_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/lua/timeout_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + describe("The VM terminates long running code :slow", function() it("in loops", function() expect.error(function() while true do end end) diff --git a/projects/core/src/test/resources/test-rom/spec/lua/vm_spec.lua b/projects/core/src/test/resources/test-rom/spec/lua/vm_spec.lua index 702306939..6fe4d850a 100644 --- a/projects/core/src/test/resources/test-rom/spec/lua/vm_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/lua/vm_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + describe("The VM", function() it("allows unpacking a large number of values", function() -- We don't allow arbitrarily many values, half a meg is probably fine. diff --git a/projects/core/src/test/resources/test-rom/spec/modules/cc/audio/dfpwm_spec.lua b/projects/core/src/test/resources/test-rom/spec/modules/cc/audio/dfpwm_spec.lua index dbc28ca01..f08661f89 100644 --- a/projects/core/src/test/resources/test-rom/spec/modules/cc/audio/dfpwm_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/modules/cc/audio/dfpwm_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + describe("cc.audio.dfpwm", function() local dfpwm = require "cc.audio.dfpwm" diff --git a/projects/core/src/test/resources/test-rom/spec/modules/cc/completion_spec.lua b/projects/core/src/test/resources/test-rom/spec/modules/cc/completion_spec.lua index 41e7ae5bc..398dda04a 100644 --- a/projects/core/src/test/resources/test-rom/spec/modules/cc/completion_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/modules/cc/completion_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + describe("cc.completion", function() local c = require("cc.completion") diff --git a/projects/core/src/test/resources/test-rom/spec/modules/cc/expect_spec.lua b/projects/core/src/test/resources/test-rom/spec/modules/cc/expect_spec.lua index 98c91e53e..3b1af1eb8 100644 --- a/projects/core/src/test/resources/test-rom/spec/modules/cc/expect_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/modules/cc/expect_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + describe("cc.expect", function() local e = require("cc.expect") @@ -27,7 +31,7 @@ describe("cc.expect", function() worker() end - expect.error(trampoline):str_match("^[^:]*expect_spec.lua:27: bad argument #1 to 'worker' %(expected string, got nil%)$") + expect.error(trampoline):str_match("^[^:]*expect_spec.lua:31: bad argument #1 to 'worker' %(expected string, got nil%)$") end) end) diff --git a/projects/core/src/test/resources/test-rom/spec/modules/cc/image/nft_spec.lua b/projects/core/src/test/resources/test-rom/spec/modules/cc/image/nft_spec.lua index f67c40898..c37273536 100644 --- a/projects/core/src/test/resources/test-rom/spec/modules/cc/image/nft_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/modules/cc/image/nft_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local helpers = require "test_helpers" describe("cc.image.nft", function() diff --git a/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/init_spec.lua b/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/init_spec.lua index 10ae30f78..1e390d682 100644 --- a/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/init_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/init_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + local helpers = require "test_helpers" describe("cc.internal.syntax", function() diff --git a/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/lexer_spec.md b/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/lexer_spec.md index c550f1ef9..a0049c367 100644 --- a/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/lexer_spec.md +++ b/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/lexer_spec.md @@ -1,3 +1,9 @@ + + We provide a lexer for Lua source code. Here we test that the lexer returns the correct tokens and positions, and that it can report sensible error messages. diff --git a/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/parser_exhaustive_spec.md b/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/parser_exhaustive_spec.md index 93868de81..153b4e15a 100644 --- a/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/parser_exhaustive_spec.md +++ b/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/parser_exhaustive_spec.md @@ -1,3 +1,9 @@ + + An exhaustive list of all error states in the parser, and the error messages we generate for each one. This is _not_ a complete collection of all possible errors, but is a useful guide for where we might be providing terrible messages. diff --git a/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/parser_spec.md b/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/parser_spec.md index d640cc957..979c8bd1e 100644 --- a/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/parser_spec.md +++ b/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/parser_spec.md @@ -1,3 +1,9 @@ + + We provide a parser for Lua source code. Here we test that the parser reports sensible syntax errors in specific cases. diff --git a/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/syntax_helpers.lua b/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/syntax_helpers.lua index e8be579b1..18b310d68 100644 --- a/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/syntax_helpers.lua +++ b/projects/core/src/test/resources/test-rom/spec/modules/cc/internal/syntax/syntax_helpers.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + local expect = require "cc.expect".expect local lex_one = require "cc.internal.syntax.lexer".lex_one local parser = require "cc.internal.syntax.parser" diff --git a/projects/core/src/test/resources/test-rom/spec/modules/cc/pretty_spec.lua b/projects/core/src/test/resources/test-rom/spec/modules/cc/pretty_spec.lua index 0832a5715..efb886733 100644 --- a/projects/core/src/test/resources/test-rom/spec/modules/cc/pretty_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/modules/cc/pretty_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + local with_window = require "test_helpers".with_window describe("cc.pretty", function() diff --git a/projects/core/src/test/resources/test-rom/spec/modules/cc/shell/completion_spec.lua b/projects/core/src/test/resources/test-rom/spec/modules/cc/shell/completion_spec.lua index 4ecc6056f..38ce8efa0 100644 --- a/projects/core/src/test/resources/test-rom/spec/modules/cc/shell/completion_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/modules/cc/shell/completion_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + describe("cc.shell.completion", function() local c = require "cc.shell.completion" diff --git a/projects/core/src/test/resources/test-rom/spec/modules/cc/shell/require_spec.lua b/projects/core/src/test/resources/test-rom/spec/modules/cc/shell/require_spec.lua index 721476f9d..8b62da4fa 100644 --- a/projects/core/src/test/resources/test-rom/spec/modules/cc/shell/require_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/modules/cc/shell/require_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + describe("cc.require", function() local r = require "cc.require" local function mk() diff --git a/projects/core/src/test/resources/test-rom/spec/modules/cc/strings_spec.lua b/projects/core/src/test/resources/test-rom/spec/modules/cc/strings_spec.lua index 900c6fe6f..c85571a8e 100644 --- a/projects/core/src/test/resources/test-rom/spec/modules/cc/strings_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/modules/cc/strings_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + describe("cc.pretty", function() local str = require("cc.strings") diff --git a/projects/core/src/test/resources/test-rom/spec/programs/advanced/bg_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/advanced/bg_spec.lua index 0a8ff77f4..6c2b1e44c 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/advanced/bg_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/advanced/bg_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The bg program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/advanced/fg_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/advanced/fg_spec.lua index de842ede4..bdbd35325 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/advanced/fg_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/advanced/fg_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The fg program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/advanced/multishell_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/advanced/multishell_spec.lua index d0917c296..af9c469e7 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/advanced/multishell_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/advanced/multishell_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + describe("The multishell program", function() describe("multishell.setFocus", function() it("validates arguments", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/alias_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/alias_spec.lua index 37a1ae5e6..7fc24363e 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/alias_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/alias_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The alias program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/cd_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/cd_spec.lua index 2a8713b05..8edd55d4e 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/cd_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/cd_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The cd program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/clear_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/clear_spec.lua index 0255bcaa7..4f66e7c1c 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/clear_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/clear_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The clear program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/command/commands_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/command/commands_spec.lua index 82056b450..6fe78f4ce 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/command/commands_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/command/commands_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The commands program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/command/exec_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/command/exec_spec.lua index ef8eb8763..2656f9d5b 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/command/exec_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/command/exec_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The exec program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/copy_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/copy_spec.lua index 791752a53..e89a0cca3 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/copy_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/copy_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The copy program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/delete_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/delete_spec.lua index 450aa9fc9..b34bc9519 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/delete_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/delete_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The rm program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/drive_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/drive_spec.lua index d0c2fa819..5424d028f 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/drive_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/drive_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The drive program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/edit_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/edit_spec.lua index 21f0eb2ce..3d378959b 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/edit_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/edit_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The edit program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/eject_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/eject_spec.lua index 74c71073b..d22aeae69 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/eject_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/eject_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The eject program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/exit_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/exit_spec.lua index 7d6419b58..7468a6421 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/exit_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/exit_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The exit program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/fun/advanced/paint_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/fun/advanced/paint_spec.lua index 72bfb76b9..df68ff411 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/fun/advanced/paint_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/fun/advanced/paint_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The paint program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/fun/dj_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/fun/dj_spec.lua index e15b81753..ea88276ac 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/fun/dj_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/fun/dj_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The dj program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/fun/hello_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/fun/hello_spec.lua index 10e2c2f2e..ead7d0fe2 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/fun/hello_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/fun/hello_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The hello program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/gps_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/gps_spec.lua index 5bafdd065..4417e50ed 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/gps_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/gps_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The gps program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/help_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/help_spec.lua index 87195dcaa..8e9875983 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/help_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/help_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program local with_window_lines = require "test_helpers".with_window_lines diff --git a/projects/core/src/test/resources/test-rom/spec/programs/http/pastebin_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/http/pastebin_spec.lua index 8b3611e3c..69f64d5e9 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/http/pastebin_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/http/pastebin_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The pastebin program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/http/wget_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/http/wget_spec.lua index 693970010..c7588f197 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/http/wget_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/http/wget_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The wget program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/id_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/id_spec.lua index 05b1bd52b..648e0f9df 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/id_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/id_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The id program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/import_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/import_spec.lua index 8eb58624d..6420a9e14 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/import_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/import_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + local with_window = require "test_helpers".with_window describe("The import program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/label_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/label_spec.lua index f1dd2bcce..6eefdb322 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/label_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/label_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The label program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/list_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/list_spec.lua index 08160e5ca..a3e4f0866 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/list_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/list_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The list program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/mkdir_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/mkdir_spec.lua index fb7327519..f743e761d 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/mkdir_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/mkdir_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + describe("The mkdir program", function() it("creates a directory", function() fs.delete("/test-files") diff --git a/projects/core/src/test/resources/test-rom/spec/programs/monitor_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/monitor_spec.lua index 718c5a129..3a0ebce92 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/monitor_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/monitor_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The monitor program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/motd_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/motd_spec.lua index ef5383168..98b251067 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/motd_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/motd_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The motd program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/move_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/move_spec.lua index 3f562b81f..652744da6 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/move_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/move_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The move program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/peripherals_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/peripherals_spec.lua index 338495448..04d3d97f5 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/peripherals_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/peripherals_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The peripherals program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/pocket/equip_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/pocket/equip_spec.lua index d5c3feb6d..d03b4888d 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/pocket/equip_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/pocket/equip_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The pocket equip program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/pocket/unequip_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/pocket/unequip_spec.lua index 4b4fa69f1..f81739b41 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/pocket/unequip_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/pocket/unequip_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The pocket unequip program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/programs_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/programs_spec.lua index d2205eafe..9905a9e9c 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/programs_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/programs_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The programs program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/reboot_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/reboot_spec.lua index c1f4f83ef..b918ba627 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/reboot_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/reboot_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The reboot program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/redstone_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/redstone_spec.lua index f64bb1c7c..aa610b85a 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/redstone_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/redstone_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The redstone program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/rename_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/rename_spec.lua index aa93df242..9bfcb744d 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/rename_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/rename_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The rename program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/set_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/set_spec.lua index e0018752b..4ec04c93d 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/set_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/set_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The set program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/shell_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/shell_spec.lua index e0dd40dfd..88c027ca1 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/shell_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/shell_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local with_window = require "test_helpers".with_window describe("The shell", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/shutdown_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/shutdown_spec.lua index 693822974..67f0ff520 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/shutdown_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/shutdown_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The shutdown program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/time_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/time_spec.lua index c5dbc19a8..869d27187 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/time_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/time_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The time program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/turtle/craft_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/turtle/craft_spec.lua index c78c0d001..0a81bdb3b 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/turtle/craft_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/turtle/craft_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The craft program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/turtle/equip_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/turtle/equip_spec.lua index 22409388d..3f2c1ff38 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/turtle/equip_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/turtle/equip_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The turtle equip program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/turtle/refuel_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/turtle/refuel_spec.lua index 4b9bea761..418d8df74 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/turtle/refuel_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/turtle/refuel_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The refuel program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/turtle/unequip_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/turtle/unequip_spec.lua index 4afd68305..912624eb0 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/turtle/unequip_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/turtle/unequip_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The turtle unequip program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/programs/type_spec.lua b/projects/core/src/test/resources/test-rom/spec/programs/type_spec.lua index 3e9f962ed..a770b1302 100644 --- a/projects/core/src/test/resources/test-rom/spec/programs/type_spec.lua +++ b/projects/core/src/test/resources/test-rom/spec/programs/type_spec.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local capture = require "test_helpers".capture_program describe("The type program", function() diff --git a/projects/core/src/test/resources/test-rom/spec/support/debug_ext.lua b/projects/core/src/test/resources/test-rom/spec/support/debug_ext.lua index 10b9b89c3..22948a1a2 100644 --- a/projects/core/src/test/resources/test-rom/spec/support/debug_ext.lua +++ b/projects/core/src/test/resources/test-rom/spec/support/debug_ext.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local function getupvalue(fn, name) for i = 1, debug.getinfo(fn, "u").nups do local up_name, value = debug.getupvalue(fn, i) diff --git a/projects/core/src/test/resources/test-rom/spec/support/fake_computer.lua b/projects/core/src/test/resources/test-rom/spec/support/fake_computer.lua index 09f2c6223..26767c00b 100644 --- a/projects/core/src/test/resources/test-rom/spec/support/fake_computer.lua +++ b/projects/core/src/test/resources/test-rom/spec/support/fake_computer.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: LicenseRef-CCPL + local function keys(tbl) local keys = {} for k in pairs(tbl) do keys[#keys + 1] = k end diff --git a/projects/core/src/test/resources/test-rom/spec/test_helpers.lua b/projects/core/src/test/resources/test-rom/spec/test_helpers.lua index 4e9d8aa3d..35f5e008f 100644 --- a/projects/core/src/test/resources/test-rom/spec/test_helpers.lua +++ b/projects/core/src/test/resources/test-rom/spec/test_helpers.lua @@ -1,3 +1,7 @@ +-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + --- Run a program and capture its output -- -- @tparam function(tbl:table, var:string, value:string) stub The active stub function. diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ArbitraryByteBuffer.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ArbitraryByteBuffer.java index a8eb8d636..f117e543d 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ArbitraryByteBuffer.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ArbitraryByteBuffer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core; import net.jqwik.api.*; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ByteBufferMatcher.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ByteBufferMatcher.java index 2383492f2..0c5bafc9e 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ByteBufferMatcher.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ByteBufferMatcher.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core; import org.hamcrest.Description; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/CallCounter.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/CallCounter.java index e828eba6d..271c55168 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/CallCounter.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/CallCounter.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.test.core; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/CloseScope.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/CloseScope.java index b387cc2c6..d6a54a91e 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/CloseScope.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/CloseScope.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core; import javax.annotation.Nullable; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ConcurrentHelpers.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ConcurrentHelpers.java index f81cdba4b..9e452155a 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ConcurrentHelpers.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ConcurrentHelpers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core; import java.util.concurrent.TimeUnit; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ContramapMatcher.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ContramapMatcher.java index 41f3ae70c..c10e8c692 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ContramapMatcher.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/ContramapMatcher.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core; import org.hamcrest.FeatureMatcher; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/CustomMatchers.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/CustomMatchers.java index ced9d73ac..679f79258 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/CustomMatchers.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/CustomMatchers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core; import org.hamcrest.Matcher; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/apis/BasicApiEnvironment.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/apis/BasicApiEnvironment.java index 0dbaa7f7f..9e9b76388 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/apis/BasicApiEnvironment.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/apis/BasicApiEnvironment.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core.apis; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/computer/BasicEnvironment.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/computer/BasicEnvironment.java index 7a0da0147..11a9700eb 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/computer/BasicEnvironment.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/computer/BasicEnvironment.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core.computer; import dan200.computercraft.api.filesystem.Mount; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/MemoryMount.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/MemoryMount.java index 67a70a485..b333961b7 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/MemoryMount.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/MemoryMount.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core.filesystem; import dan200.computercraft.api.filesystem.FileOperationException; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/MountContract.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/MountContract.java index de46d09b2..60f541212 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/MountContract.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/MountContract.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core.filesystem; import dan200.computercraft.api.filesystem.FileOperationException; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/ReadOnlyWritableMount.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/ReadOnlyWritableMount.java index a656136b6..6282f4744 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/ReadOnlyWritableMount.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/ReadOnlyWritableMount.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core.filesystem; import dan200.computercraft.api.filesystem.FileOperationException; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/ReadableChannelContract.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/ReadableChannelContract.java index 596ffc269..b6d6c00a9 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/ReadableChannelContract.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/ReadableChannelContract.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core.filesystem; import org.junit.jupiter.api.Test; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/WritableMountContract.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/WritableMountContract.java index dbdc308fd..a9dc0cdea 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/WritableMountContract.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/filesystem/WritableMountContract.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core.filesystem; import dan200.computercraft.api.filesystem.WritableMount; diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/package-info.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/package-info.java index 8cf88a49a..270c9ed70 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/package-info.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/package-info.java @@ -1,8 +1,6 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 /** * Test helpers for ComputerCraft's core Lua runtime and APIs. diff --git a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/terminal/TerminalMatchers.java b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/terminal/TerminalMatchers.java index b6e8400a4..4c84afcc7 100644 --- a/projects/core/src/testFixtures/java/dan200/computercraft/test/core/terminal/TerminalMatchers.java +++ b/projects/core/src/testFixtures/java/dan200/computercraft/test/core/terminal/TerminalMatchers.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.test.core.terminal; import dan200.computercraft.core.terminal.Terminal; diff --git a/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/Assertions.kt b/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/Assertions.kt index e83e80381..20e07778a 100644 --- a/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/Assertions.kt +++ b/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/Assertions.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core import org.hamcrest.BaseMatcher diff --git a/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/KotlinComputerManager.kt b/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/KotlinComputerManager.kt index e100566a8..b447b9157 100644 --- a/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/KotlinComputerManager.kt +++ b/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/KotlinComputerManager.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core.computer import dan200.computercraft.api.lua.ILuaAPI diff --git a/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/KotlinLuaMachine.kt b/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/KotlinLuaMachine.kt index 3e94dea31..e58383e0e 100644 --- a/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/KotlinLuaMachine.kt +++ b/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/KotlinLuaMachine.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core.computer import dan200.computercraft.api.lua.ILuaAPI diff --git a/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/LuaTaskContext.kt b/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/LuaTaskContext.kt index 066045b87..1c23c7dbe 100644 --- a/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/LuaTaskContext.kt +++ b/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/LuaTaskContext.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core.computer import dan200.computercraft.api.lua.ILuaAPI diff --git a/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/LuaTaskRunner.kt b/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/LuaTaskRunner.kt index 4ac65d1cb..903531899 100644 --- a/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/LuaTaskRunner.kt +++ b/projects/core/src/testFixtures/kotlin/dan200/computercraft/test/core/computer/LuaTaskRunner.kt @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.test.core.computer import dan200.computercraft.api.lua.ILuaAPI diff --git a/projects/fabric-api/build.gradle.kts b/projects/fabric-api/build.gradle.kts index 8cc80cac7..820e70c42 100644 --- a/projects/fabric-api/build.gradle.kts +++ b/projects/fabric-api/build.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + plugins { id("cc-tweaked.fabric") id("cc-tweaked.publishing") diff --git a/projects/fabric-api/src/main/java/dan200/computercraft/api/detail/FabricDetailRegistries.java b/projects/fabric-api/src/main/java/dan200/computercraft/api/detail/FabricDetailRegistries.java index 728cd4886..8b603ff42 100644 --- a/projects/fabric-api/src/main/java/dan200/computercraft/api/detail/FabricDetailRegistries.java +++ b/projects/fabric-api/src/main/java/dan200/computercraft/api/detail/FabricDetailRegistries.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.detail; import dan200.computercraft.impl.ComputerCraftAPIFabricService; diff --git a/projects/fabric-api/src/main/java/dan200/computercraft/api/node/wired/WiredElementLookup.java b/projects/fabric-api/src/main/java/dan200/computercraft/api/node/wired/WiredElementLookup.java index 597165b51..a02d086db 100644 --- a/projects/fabric-api/src/main/java/dan200/computercraft/api/node/wired/WiredElementLookup.java +++ b/projects/fabric-api/src/main/java/dan200/computercraft/api/node/wired/WiredElementLookup.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.node.wired; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/fabric-api/src/main/java/dan200/computercraft/api/peripheral/PeripheralLookup.java b/projects/fabric-api/src/main/java/dan200/computercraft/api/peripheral/PeripheralLookup.java index ae00f7dc7..439beb341 100644 --- a/projects/fabric-api/src/main/java/dan200/computercraft/api/peripheral/PeripheralLookup.java +++ b/projects/fabric-api/src/main/java/dan200/computercraft/api/peripheral/PeripheralLookup.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.peripheral; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/fabric-api/src/main/java/dan200/computercraft/impl/ComputerCraftAPIFabricService.java b/projects/fabric-api/src/main/java/dan200/computercraft/impl/ComputerCraftAPIFabricService.java index 49a574fe2..6730cfc4b 100644 --- a/projects/fabric-api/src/main/java/dan200/computercraft/impl/ComputerCraftAPIFabricService.java +++ b/projects/fabric-api/src/main/java/dan200/computercraft/impl/ComputerCraftAPIFabricService.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl; import dan200.computercraft.api.detail.DetailRegistry; diff --git a/projects/fabric/build.gradle.kts b/projects/fabric/build.gradle.kts index 359e473b4..0b8279520 100644 --- a/projects/fabric/build.gradle.kts +++ b/projects/fabric/build.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + import cc.tweaked.gradle.* import net.fabricmc.loom.configuration.ide.RunConfigSettings import java.util.* diff --git a/projects/fabric/src/client/java/dan200/computercraft/client/ComputerCraftClient.java b/projects/fabric/src/client/java/dan200/computercraft/client/ComputerCraftClient.java index 681cb782e..292d1ea9a 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/client/ComputerCraftClient.java +++ b/projects/fabric/src/client/java/dan200/computercraft/client/ComputerCraftClient.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client; import dan200.computercraft.client.model.turtle.TurtleModelLoader; diff --git a/projects/fabric/src/client/java/dan200/computercraft/client/integration/IrisShaderMod.java b/projects/fabric/src/client/java/dan200/computercraft/client/integration/IrisShaderMod.java index 58454f7d8..6ac77e078 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/client/integration/IrisShaderMod.java +++ b/projects/fabric/src/client/java/dan200/computercraft/client/integration/IrisShaderMod.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.integration; import com.google.auto.service.AutoService; diff --git a/projects/fabric/src/client/java/dan200/computercraft/client/integration/rei/REIComputerCraft.java b/projects/fabric/src/client/java/dan200/computercraft/client/integration/rei/REIComputerCraft.java index d94e30ef1..c3addf41e 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/client/integration/rei/REIComputerCraft.java +++ b/projects/fabric/src/client/java/dan200/computercraft/client/integration/rei/REIComputerCraft.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.integration.rei; import dan200.computercraft.api.turtle.TurtleSide; diff --git a/projects/fabric/src/client/java/dan200/computercraft/client/integration/rei/UpgradeDisplayGenerator.java b/projects/fabric/src/client/java/dan200/computercraft/client/integration/rei/UpgradeDisplayGenerator.java index 8cbe0a34c..09d278bf4 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/client/integration/rei/UpgradeDisplayGenerator.java +++ b/projects/fabric/src/client/java/dan200/computercraft/client/integration/rei/UpgradeDisplayGenerator.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.integration.rei; import dan200.computercraft.shared.integration.UpgradeRecipeGenerator; diff --git a/projects/fabric/src/client/java/dan200/computercraft/client/model/CompositeBakedModel.java b/projects/fabric/src/client/java/dan200/computercraft/client/model/CompositeBakedModel.java index 6937b4c6b..aa22ac224 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/client/model/CompositeBakedModel.java +++ b/projects/fabric/src/client/java/dan200/computercraft/client/model/CompositeBakedModel.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.model; import net.minecraft.client.renderer.block.model.BakedQuad; diff --git a/projects/fabric/src/client/java/dan200/computercraft/client/model/CustomBakedModel.java b/projects/fabric/src/client/java/dan200/computercraft/client/model/CustomBakedModel.java index 1194e4171..ad09c37c6 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/client/model/CustomBakedModel.java +++ b/projects/fabric/src/client/java/dan200/computercraft/client/model/CustomBakedModel.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.model; import net.fabricmc.fabric.api.renderer.v1.model.ForwardingBakedModel; diff --git a/projects/fabric/src/client/java/dan200/computercraft/client/model/TransformedBakedModel.java b/projects/fabric/src/client/java/dan200/computercraft/client/model/TransformedBakedModel.java index 9f75f40c5..9862101ff 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/client/model/TransformedBakedModel.java +++ b/projects/fabric/src/client/java/dan200/computercraft/client/model/TransformedBakedModel.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.model; import com.mojang.blaze3d.vertex.DefaultVertexFormat; diff --git a/projects/fabric/src/client/java/dan200/computercraft/client/model/turtle/TurtleModel.java b/projects/fabric/src/client/java/dan200/computercraft/client/model/turtle/TurtleModel.java index c851c393d..6cfcc9f32 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/client/model/turtle/TurtleModel.java +++ b/projects/fabric/src/client/java/dan200/computercraft/client/model/turtle/TurtleModel.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.model.turtle; import dan200.computercraft.client.model.CompositeBakedModel; diff --git a/projects/fabric/src/client/java/dan200/computercraft/client/model/turtle/TurtleModelLoader.java b/projects/fabric/src/client/java/dan200/computercraft/client/model/turtle/TurtleModelLoader.java index 9a10afe60..ed0f3d6bd 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/client/model/turtle/TurtleModelLoader.java +++ b/projects/fabric/src/client/java/dan200/computercraft/client/model/turtle/TurtleModelLoader.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.model.turtle; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/fabric/src/client/java/dan200/computercraft/client/platform/ClientNetworkHandlerImpl.java b/projects/fabric/src/client/java/dan200/computercraft/client/platform/ClientNetworkHandlerImpl.java index de12deb18..a16a007be 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/client/platform/ClientNetworkHandlerImpl.java +++ b/projects/fabric/src/client/java/dan200/computercraft/client/platform/ClientNetworkHandlerImpl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.platform; import com.google.auto.service.AutoService; diff --git a/projects/fabric/src/client/java/dan200/computercraft/client/platform/ClientPlatformHelperImpl.java b/projects/fabric/src/client/java/dan200/computercraft/client/platform/ClientPlatformHelperImpl.java index 2f980772d..e2b47750f 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/client/platform/ClientPlatformHelperImpl.java +++ b/projects/fabric/src/client/java/dan200/computercraft/client/platform/ClientPlatformHelperImpl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.platform; import com.google.auto.service.AutoService; diff --git a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/BlockRenderDispatcherMixin.java b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/BlockRenderDispatcherMixin.java index 68e041315..5fb2f0aea 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/BlockRenderDispatcherMixin.java +++ b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/BlockRenderDispatcherMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.client; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/DebugScreenOverlayMixin.java b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/DebugScreenOverlayMixin.java index 3ddc13891..301043a8a 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/DebugScreenOverlayMixin.java +++ b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/DebugScreenOverlayMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.client; import dan200.computercraft.client.ClientHooks; diff --git a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/GameRendererMixin.java b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/GameRendererMixin.java index 4a017ac28..b0ca49e29 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/GameRendererMixin.java +++ b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/GameRendererMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.client; import dan200.computercraft.client.ClientRegistry; diff --git a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/ItemFrameRendererMixin.java b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/ItemFrameRendererMixin.java index a0d3db168..88b766edc 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/ItemFrameRendererMixin.java +++ b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/ItemFrameRendererMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.client; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/ItemInHandRendererMixin.java b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/ItemInHandRendererMixin.java index 9f28931e4..7f934cb4e 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/ItemInHandRendererMixin.java +++ b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/ItemInHandRendererMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.client; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/MinecraftMixin.java b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/MinecraftMixin.java index f1bd2f72b..da50fdac1 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/MinecraftMixin.java +++ b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/MinecraftMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.client; import dan200.computercraft.client.ClientHooks; diff --git a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/MultiPlayerGameModeMixin.java b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/MultiPlayerGameModeMixin.java index 6111b0c82..85377cebc 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/MultiPlayerGameModeMixin.java +++ b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/MultiPlayerGameModeMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.client; import dan200.computercraft.shared.FabricCommonHooks; diff --git a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/SoundEngineMixin.java b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/SoundEngineMixin.java index 9321e8934..95b1c7555 100644 --- a/projects/fabric/src/client/java/dan200/computercraft/mixin/client/SoundEngineMixin.java +++ b/projects/fabric/src/client/java/dan200/computercraft/mixin/client/SoundEngineMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.client; import com.mojang.blaze3d.audio.Channel; diff --git a/projects/fabric/src/main/java/dan200/computercraft/data/FabricDataGenerators.java b/projects/fabric/src/main/java/dan200/computercraft/data/FabricDataGenerators.java index 4ad90c1e4..40e5135a8 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/data/FabricDataGenerators.java +++ b/projects/fabric/src/main/java/dan200/computercraft/data/FabricDataGenerators.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import dan200.computercraft.shared.platform.RegistryWrappers; diff --git a/projects/fabric/src/main/java/dan200/computercraft/data/MoreConventionalTagsProvider.java b/projects/fabric/src/main/java/dan200/computercraft/data/MoreConventionalTagsProvider.java index f76534164..97c07e4db 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/data/MoreConventionalTagsProvider.java +++ b/projects/fabric/src/main/java/dan200/computercraft/data/MoreConventionalTagsProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import dan200.computercraft.shared.platform.MoreConventionalTags; diff --git a/projects/fabric/src/main/java/dan200/computercraft/impl/ComputerCraftAPIImpl.java b/projects/fabric/src/main/java/dan200/computercraft/impl/ComputerCraftAPIImpl.java index 1761533a3..65e62f0c8 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/impl/ComputerCraftAPIImpl.java +++ b/projects/fabric/src/main/java/dan200/computercraft/impl/ComputerCraftAPIImpl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl; import com.google.auto.service.AutoService; diff --git a/projects/fabric/src/main/java/dan200/computercraft/mixin/ArgumentTypeInfosAccessor.java b/projects/fabric/src/main/java/dan200/computercraft/mixin/ArgumentTypeInfosAccessor.java index d2eacac2e..29433b08d 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/mixin/ArgumentTypeInfosAccessor.java +++ b/projects/fabric/src/main/java/dan200/computercraft/mixin/ArgumentTypeInfosAccessor.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin; import net.minecraft.commands.synchronization.ArgumentTypeInfo; diff --git a/projects/fabric/src/main/java/dan200/computercraft/mixin/ChunkMapMixin.java b/projects/fabric/src/main/java/dan200/computercraft/mixin/ChunkMapMixin.java index 64fb3189c..1835ed109 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/mixin/ChunkMapMixin.java +++ b/projects/fabric/src/main/java/dan200/computercraft/mixin/ChunkMapMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin; import dan200.computercraft.shared.CommonHooks; diff --git a/projects/fabric/src/main/java/dan200/computercraft/mixin/EntityMixin.java b/projects/fabric/src/main/java/dan200/computercraft/mixin/EntityMixin.java index 433f2939f..5e97f4e5c 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/mixin/EntityMixin.java +++ b/projects/fabric/src/main/java/dan200/computercraft/mixin/EntityMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin; import dan200.computercraft.shared.CommonHooks; diff --git a/projects/fabric/src/main/java/dan200/computercraft/mixin/ExplosionDamageCalculatorMixin.java b/projects/fabric/src/main/java/dan200/computercraft/mixin/ExplosionDamageCalculatorMixin.java index 942602e25..321ca725d 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/mixin/ExplosionDamageCalculatorMixin.java +++ b/projects/fabric/src/main/java/dan200/computercraft/mixin/ExplosionDamageCalculatorMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin; import dan200.computercraft.shared.turtle.blocks.TurtleBlock; diff --git a/projects/fabric/src/main/java/dan200/computercraft/mixin/ItemEntityMixin.java b/projects/fabric/src/main/java/dan200/computercraft/mixin/ItemEntityMixin.java index c5f932911..71c94154f 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/mixin/ItemEntityMixin.java +++ b/projects/fabric/src/main/java/dan200/computercraft/mixin/ItemEntityMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin; import dan200.computercraft.shared.pocket.items.PocketComputerItem; diff --git a/projects/fabric/src/main/java/dan200/computercraft/mixin/ServerLevelMixin.java b/projects/fabric/src/main/java/dan200/computercraft/mixin/ServerLevelMixin.java index 06064ce57..c020dfb10 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/mixin/ServerLevelMixin.java +++ b/projects/fabric/src/main/java/dan200/computercraft/mixin/ServerLevelMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin; import dan200.computercraft.shared.CommonHooks; diff --git a/projects/fabric/src/main/java/dan200/computercraft/mixin/ShapedRecipeMixin.java b/projects/fabric/src/main/java/dan200/computercraft/mixin/ShapedRecipeMixin.java index 2bd5ef265..e1ef5d24d 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/mixin/ShapedRecipeMixin.java +++ b/projects/fabric/src/main/java/dan200/computercraft/mixin/ShapedRecipeMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin; import com.google.gson.JsonObject; diff --git a/projects/fabric/src/main/java/dan200/computercraft/mixin/TagEntryAccessor.java b/projects/fabric/src/main/java/dan200/computercraft/mixin/TagEntryAccessor.java index 1cf2cc1ef..a3a0059e1 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/mixin/TagEntryAccessor.java +++ b/projects/fabric/src/main/java/dan200/computercraft/mixin/TagEntryAccessor.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin; import net.minecraft.tags.TagEntry; diff --git a/projects/fabric/src/main/java/dan200/computercraft/mixin/TagsProviderMixin.java b/projects/fabric/src/main/java/dan200/computercraft/mixin/TagsProviderMixin.java index f0fd07b05..2e844e5c8 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/mixin/TagsProviderMixin.java +++ b/projects/fabric/src/main/java/dan200/computercraft/mixin/TagsProviderMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin; import net.minecraft.data.tags.TagsProvider; diff --git a/projects/fabric/src/main/java/dan200/computercraft/shared/ComputerCraft.java b/projects/fabric/src/main/java/dan200/computercraft/shared/ComputerCraft.java index b3970ce0e..28d25a2ea 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/shared/ComputerCraft.java +++ b/projects/fabric/src/main/java/dan200/computercraft/shared/ComputerCraft.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/fabric/src/main/java/dan200/computercraft/shared/FabricCommonHooks.java b/projects/fabric/src/main/java/dan200/computercraft/shared/FabricCommonHooks.java index 404c7859e..cb1e17b74 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/shared/FabricCommonHooks.java +++ b/projects/fabric/src/main/java/dan200/computercraft/shared/FabricCommonHooks.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared; import com.google.gson.Gson; diff --git a/projects/fabric/src/main/java/dan200/computercraft/shared/details/FluidDetails.java b/projects/fabric/src/main/java/dan200/computercraft/shared/details/FluidDetails.java index 813f2714f..57318851b 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/shared/details/FluidDetails.java +++ b/projects/fabric/src/main/java/dan200/computercraft/shared/details/FluidDetails.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.details; import dan200.computercraft.api.detail.DetailProvider; diff --git a/projects/fabric/src/main/java/dan200/computercraft/shared/peripheral/generic/GenericPeripheralProvider.java b/projects/fabric/src/main/java/dan200/computercraft/shared/peripheral/generic/GenericPeripheralProvider.java index 25e8212e0..4b36a5d84 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/shared/peripheral/generic/GenericPeripheralProvider.java +++ b/projects/fabric/src/main/java/dan200/computercraft/shared/peripheral/generic/GenericPeripheralProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.generic; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/fabric/src/main/java/dan200/computercraft/shared/peripheral/generic/SidedGenericPeripheral.java b/projects/fabric/src/main/java/dan200/computercraft/shared/peripheral/generic/SidedGenericPeripheral.java index 46bd5dc1b..b0aa1a351 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/shared/peripheral/generic/SidedGenericPeripheral.java +++ b/projects/fabric/src/main/java/dan200/computercraft/shared/peripheral/generic/SidedGenericPeripheral.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.generic; import net.minecraft.core.Direction; diff --git a/projects/fabric/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/InventoryMethods.java b/projects/fabric/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/InventoryMethods.java index d9f47cbd7..45012e403 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/InventoryMethods.java +++ b/projects/fabric/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/InventoryMethods.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.generic.methods; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FabricConfigFile.java b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FabricConfigFile.java index 17f493956..75e1efe70 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FabricConfigFile.java +++ b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FabricConfigFile.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import com.electronwill.nightconfig.core.Config; diff --git a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FabricContainerTransfer.java b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FabricContainerTransfer.java index 7144c5045..5036fffc7 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FabricContainerTransfer.java +++ b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FabricContainerTransfer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import net.fabricmc.fabric.api.transfer.v1.item.InventoryStorage; diff --git a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FakeNetHandler.java b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FakeNetHandler.java index c90b9987e..633826e3c 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FakeNetHandler.java +++ b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FakeNetHandler.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import net.minecraft.network.Connection; diff --git a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FakePlayer.java b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FakePlayer.java index 4cf054f65..14ca95715 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FakePlayer.java +++ b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/FakePlayer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import com.mojang.authlib.GameProfile; diff --git a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/MoreConventionalTags.java b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/MoreConventionalTags.java index 40dfc3f65..0aa89af3d 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/MoreConventionalTags.java +++ b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/MoreConventionalTags.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import net.fabricmc.fabric.api.tag.convention.v1.ConventionalItemTags; diff --git a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/NetworkHandler.java b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/NetworkHandler.java index 99bee8694..afcd9f02a 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/NetworkHandler.java +++ b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/NetworkHandler.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/PlatformHelperImpl.java b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/PlatformHelperImpl.java index d6a32e1f6..4d50035ec 100644 --- a/projects/fabric/src/main/java/dan200/computercraft/shared/platform/PlatformHelperImpl.java +++ b/projects/fabric/src/main/java/dan200/computercraft/shared/platform/PlatformHelperImpl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.platform; import com.google.auto.service.AutoService; diff --git a/projects/fabric/src/test/java/dan200/computercraft/shared/FabricBootstrap.java b/projects/fabric/src/test/java/dan200/computercraft/shared/FabricBootstrap.java index 0f309bd2d..027ad8370 100644 --- a/projects/fabric/src/test/java/dan200/computercraft/shared/FabricBootstrap.java +++ b/projects/fabric/src/test/java/dan200/computercraft/shared/FabricBootstrap.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared; import com.google.auto.service.AutoService; diff --git a/projects/fabric/src/test/java/dan200/computercraft/shared/platform/FabricContainerTransferTest.java b/projects/fabric/src/test/java/dan200/computercraft/shared/platform/FabricContainerTransferTest.java index 0ed289a40..93269e2e1 100644 --- a/projects/fabric/src/test/java/dan200/computercraft/shared/platform/FabricContainerTransferTest.java +++ b/projects/fabric/src/test/java/dan200/computercraft/shared/platform/FabricContainerTransferTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import dan200.computercraft.test.shared.WithMinecraft; diff --git a/projects/fabric/src/test/resources/junit-platform.properties b/projects/fabric/src/test/resources/junit-platform.properties index 6efc0d5e8..4b4e1e28d 100644 --- a/projects/fabric/src/test/resources/junit-platform.properties +++ b/projects/fabric/src/test/resources/junit-platform.properties @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +# +# SPDX-License-Identifier: CC0-1.0 junit.jupiter.extensions.autodetection.enabled=true diff --git a/projects/fabric/src/testMod/java/dan200/computercraft/gametest/core/TestMod.java b/projects/fabric/src/testMod/java/dan200/computercraft/gametest/core/TestMod.java index 9c76c12c7..4a2ba819d 100644 --- a/projects/fabric/src/testMod/java/dan200/computercraft/gametest/core/TestMod.java +++ b/projects/fabric/src/testMod/java/dan200/computercraft/gametest/core/TestMod.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.core; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/forge-api/build.gradle.kts b/projects/forge-api/build.gradle.kts index f174bcc65..1b169f3f4 100644 --- a/projects/forge-api/build.gradle.kts +++ b/projects/forge-api/build.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + plugins { id("cc-tweaked.forge") id("cc-tweaked.publishing") diff --git a/projects/forge-api/src/main/java/dan200/computercraft/api/ForgeComputerCraftAPI.java b/projects/forge-api/src/main/java/dan200/computercraft/api/ForgeComputerCraftAPI.java index 3b1cf5671..2a4b1dc0e 100644 --- a/projects/forge-api/src/main/java/dan200/computercraft/api/ForgeComputerCraftAPI.java +++ b/projects/forge-api/src/main/java/dan200/computercraft/api/ForgeComputerCraftAPI.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api; import dan200.computercraft.api.lua.GenericSource; diff --git a/projects/forge-api/src/main/java/dan200/computercraft/api/detail/ForgeDetailRegistries.java b/projects/forge-api/src/main/java/dan200/computercraft/api/detail/ForgeDetailRegistries.java index 4687682f4..6b93f326e 100644 --- a/projects/forge-api/src/main/java/dan200/computercraft/api/detail/ForgeDetailRegistries.java +++ b/projects/forge-api/src/main/java/dan200/computercraft/api/detail/ForgeDetailRegistries.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.api.detail; import dan200.computercraft.impl.ComputerCraftAPIForgeService; diff --git a/projects/forge-api/src/main/java/dan200/computercraft/api/peripheral/IPeripheralProvider.java b/projects/forge-api/src/main/java/dan200/computercraft/api/peripheral/IPeripheralProvider.java index d715bdc1f..15abb9fa2 100644 --- a/projects/forge-api/src/main/java/dan200/computercraft/api/peripheral/IPeripheralProvider.java +++ b/projects/forge-api/src/main/java/dan200/computercraft/api/peripheral/IPeripheralProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of the public ComputerCraft API - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. - * For help using the API, and posting your mods, visit the forums at computercraft.info. - */ +// Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.api.peripheral; import dan200.computercraft.api.ForgeComputerCraftAPI; diff --git a/projects/forge-api/src/main/java/dan200/computercraft/impl/ComputerCraftAPIForgeService.java b/projects/forge-api/src/main/java/dan200/computercraft/impl/ComputerCraftAPIForgeService.java index d760ed9dd..a9dd5e774 100644 --- a/projects/forge-api/src/main/java/dan200/computercraft/impl/ComputerCraftAPIForgeService.java +++ b/projects/forge-api/src/main/java/dan200/computercraft/impl/ComputerCraftAPIForgeService.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl; import dan200.computercraft.api.ForgeComputerCraftAPI; diff --git a/projects/forge/build.gradle.kts b/projects/forge/build.gradle.kts index 65f990924..991425cb0 100644 --- a/projects/forge/build.gradle.kts +++ b/projects/forge/build.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + import cc.tweaked.gradle.* import net.darkhax.curseforgegradle.TaskPublishCurseForge import net.minecraftforge.gradle.common.util.RunConfig diff --git a/projects/forge/src/client/java/dan200/computercraft/client/ForgeClientHooks.java b/projects/forge/src/client/java/dan200/computercraft/client/ForgeClientHooks.java index e94f543e1..69fdb7502 100644 --- a/projects/forge/src/client/java/dan200/computercraft/client/ForgeClientHooks.java +++ b/projects/forge/src/client/java/dan200/computercraft/client/ForgeClientHooks.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/forge/src/client/java/dan200/computercraft/client/ForgeClientRegistry.java b/projects/forge/src/client/java/dan200/computercraft/client/ForgeClientRegistry.java index 0c763001e..d2adbd51d 100644 --- a/projects/forge/src/client/java/dan200/computercraft/client/ForgeClientRegistry.java +++ b/projects/forge/src/client/java/dan200/computercraft/client/ForgeClientRegistry.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/forge/src/client/java/dan200/computercraft/client/integration/IrisShaderMod.java b/projects/forge/src/client/java/dan200/computercraft/client/integration/IrisShaderMod.java index 758b112e9..948a70589 100644 --- a/projects/forge/src/client/java/dan200/computercraft/client/integration/IrisShaderMod.java +++ b/projects/forge/src/client/java/dan200/computercraft/client/integration/IrisShaderMod.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.integration; import com.google.auto.service.AutoService; diff --git a/projects/forge/src/client/java/dan200/computercraft/client/model/TransformedBakedModel.java b/projects/forge/src/client/java/dan200/computercraft/client/model/TransformedBakedModel.java index 65f5b39be..0a5698964 100644 --- a/projects/forge/src/client/java/dan200/computercraft/client/model/TransformedBakedModel.java +++ b/projects/forge/src/client/java/dan200/computercraft/client/model/TransformedBakedModel.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.model; import com.mojang.math.Transformation; diff --git a/projects/forge/src/client/java/dan200/computercraft/client/model/turtle/TurtleModel.java b/projects/forge/src/client/java/dan200/computercraft/client/model/turtle/TurtleModel.java index 3e053182e..64f183bad 100644 --- a/projects/forge/src/client/java/dan200/computercraft/client/model/turtle/TurtleModel.java +++ b/projects/forge/src/client/java/dan200/computercraft/client/model/turtle/TurtleModel.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.model.turtle; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/forge/src/client/java/dan200/computercraft/client/model/turtle/TurtleModelLoader.java b/projects/forge/src/client/java/dan200/computercraft/client/model/turtle/TurtleModelLoader.java index 2ea8c73bd..a196553ca 100644 --- a/projects/forge/src/client/java/dan200/computercraft/client/model/turtle/TurtleModelLoader.java +++ b/projects/forge/src/client/java/dan200/computercraft/client/model/turtle/TurtleModelLoader.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.model.turtle; import com.google.gson.JsonDeserializationContext; diff --git a/projects/forge/src/client/java/dan200/computercraft/client/platform/ClientNetworkContextImpl.java b/projects/forge/src/client/java/dan200/computercraft/client/platform/ClientNetworkContextImpl.java index 25611cc9f..79057e24b 100644 --- a/projects/forge/src/client/java/dan200/computercraft/client/platform/ClientNetworkContextImpl.java +++ b/projects/forge/src/client/java/dan200/computercraft/client/platform/ClientNetworkContextImpl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.platform; import com.google.auto.service.AutoService; diff --git a/projects/forge/src/client/java/dan200/computercraft/client/platform/ClientPlatformHelperImpl.java b/projects/forge/src/client/java/dan200/computercraft/client/platform/ClientPlatformHelperImpl.java index a3b9dc83c..568b6ea9d 100644 --- a/projects/forge/src/client/java/dan200/computercraft/client/platform/ClientPlatformHelperImpl.java +++ b/projects/forge/src/client/java/dan200/computercraft/client/platform/ClientPlatformHelperImpl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.client.platform; import com.google.auto.service.AutoService; diff --git a/projects/forge/src/client/java/dan200/computercraft/mixin/client/BlockRenderDispatcherMixin.java b/projects/forge/src/client/java/dan200/computercraft/mixin/client/BlockRenderDispatcherMixin.java index 98cf34241..2263a0a2e 100644 --- a/projects/forge/src/client/java/dan200/computercraft/mixin/client/BlockRenderDispatcherMixin.java +++ b/projects/forge/src/client/java/dan200/computercraft/mixin/client/BlockRenderDispatcherMixin.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.mixin.client; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/projects/forge/src/main/java/dan200/computercraft/ComputerCraft.java b/projects/forge/src/main/java/dan200/computercraft/ComputerCraft.java index cc05b08b6..8b3f27f60 100644 --- a/projects/forge/src/main/java/dan200/computercraft/ComputerCraft.java +++ b/projects/forge/src/main/java/dan200/computercraft/ComputerCraft.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/forge/src/main/java/dan200/computercraft/data/Generators.java b/projects/forge/src/main/java/dan200/computercraft/data/Generators.java index bf3b074b5..840ae1acd 100644 --- a/projects/forge/src/main/java/dan200/computercraft/data/Generators.java +++ b/projects/forge/src/main/java/dan200/computercraft/data/Generators.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.data; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/forge/src/main/java/dan200/computercraft/impl/ComputerCraftAPIImpl.java b/projects/forge/src/main/java/dan200/computercraft/impl/ComputerCraftAPIImpl.java index 793f3f6d5..14d7169be 100644 --- a/projects/forge/src/main/java/dan200/computercraft/impl/ComputerCraftAPIImpl.java +++ b/projects/forge/src/main/java/dan200/computercraft/impl/ComputerCraftAPIImpl.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.impl; import com.google.auto.service.AutoService; diff --git a/projects/forge/src/main/java/dan200/computercraft/impl/Peripherals.java b/projects/forge/src/main/java/dan200/computercraft/impl/Peripherals.java index 2a790152a..a39fa1778 100644 --- a/projects/forge/src/main/java/dan200/computercraft/impl/Peripherals.java +++ b/projects/forge/src/main/java/dan200/computercraft/impl/Peripherals.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.impl; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/Capabilities.java b/projects/forge/src/main/java/dan200/computercraft/shared/Capabilities.java index 7bc374604..06b28df0d 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/Capabilities.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/Capabilities.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared; import dan200.computercraft.api.network.wired.WiredElement; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/ForgeCommonHooks.java b/projects/forge/src/main/java/dan200/computercraft/shared/ForgeCommonHooks.java index 70c48915a..d5f1a4ed5 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/ForgeCommonHooks.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/ForgeCommonHooks.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/details/FluidData.java b/projects/forge/src/main/java/dan200/computercraft/shared/details/FluidData.java index 3ea8c9345..a877b21f2 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/details/FluidData.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/details/FluidData.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.details; import dan200.computercraft.shared.platform.RegistryWrappers; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/GenericPeripheralProvider.java b/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/GenericPeripheralProvider.java index f53fca547..a2a26e65a 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/GenericPeripheralProvider.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/GenericPeripheralProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.generic; import dan200.computercraft.api.peripheral.IPeripheral; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/EnergyMethods.java b/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/EnergyMethods.java index e13d8f2ff..92565043c 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/EnergyMethods.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/EnergyMethods.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.generic.methods; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/FluidMethods.java b/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/FluidMethods.java index 102f96fde..b05a99e40 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/FluidMethods.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/FluidMethods.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.peripheral.generic.methods; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/InventoryMethods.java b/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/InventoryMethods.java index ade31a94e..a0fb47ed5 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/InventoryMethods.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/InventoryMethods.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. +// +// SPDX-License-Identifier: LicenseRef-CCPL + package dan200.computercraft.shared.peripheral.generic.methods; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/platform/FakePlayerExt.java b/projects/forge/src/main/java/dan200/computercraft/shared/platform/FakePlayerExt.java index 126a56c46..060e080a4 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/platform/FakePlayerExt.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/platform/FakePlayerExt.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import com.mojang.authlib.GameProfile; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/platform/ForgeConfigFile.java b/projects/forge/src/main/java/dan200/computercraft/shared/platform/ForgeConfigFile.java index a9306ee2c..eba7500ce 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/platform/ForgeConfigFile.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/platform/ForgeConfigFile.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2023 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import dan200.computercraft.shared.config.ConfigFile; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/platform/ForgeContainerTransfer.java b/projects/forge/src/main/java/dan200/computercraft/shared/platform/ForgeContainerTransfer.java index 8d83b4e63..d802cfc2e 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/platform/ForgeContainerTransfer.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/platform/ForgeContainerTransfer.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import net.minecraft.world.item.ItemStack; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/platform/NetworkHandler.java b/projects/forge/src/main/java/dan200/computercraft/shared/platform/NetworkHandler.java index ede118853..d621a2de0 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/platform/NetworkHandler.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/platform/NetworkHandler.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import dan200.computercraft.api.ComputerCraftAPI; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/platform/PlatformHelperImpl.java b/projects/forge/src/main/java/dan200/computercraft/shared/platform/PlatformHelperImpl.java deleted file mode 100644 index 1dd378da1..000000000 --- a/projects/forge/src/main/java/dan200/computercraft/shared/platform/PlatformHelperImpl.java +++ /dev/null @@ -1,469 +0,0 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ -package dan200.computercraft.shared.platform; - -import com.google.auto.service.AutoService; -import com.google.gson.JsonObject; -import com.mojang.authlib.GameProfile; -import com.mojang.brigadier.arguments.ArgumentType; -import dan200.computercraft.api.ComputerCraftAPI; -import dan200.computercraft.api.network.wired.WiredElement; -import dan200.computercraft.api.peripheral.IPeripheral; -import dan200.computercraft.impl.Peripherals; -import dan200.computercraft.shared.Capabilities; -import dan200.computercraft.shared.config.ConfigFile; -import dan200.computercraft.shared.network.NetworkMessage; -import dan200.computercraft.shared.network.client.ClientNetworkContext; -import dan200.computercraft.shared.network.container.ContainerData; -import dan200.computercraft.shared.util.CapabilityUtil; -import dan200.computercraft.shared.util.InventoryUtil; -import net.minecraft.commands.synchronization.ArgumentTypeInfo; -import net.minecraft.commands.synchronization.ArgumentTypeInfos; -import net.minecraft.core.BlockPos; -import net.minecraft.core.Direction; -import net.minecraft.core.Registry; -import net.minecraft.nbt.CompoundTag; -import net.minecraft.network.FriendlyByteBuf; -import net.minecraft.resources.ResourceKey; -import net.minecraft.resources.ResourceLocation; -import net.minecraft.server.MinecraftServer; -import net.minecraft.server.level.ServerLevel; -import net.minecraft.server.level.ServerPlayer; -import net.minecraft.tags.TagKey; -import net.minecraft.world.*; -import net.minecraft.world.entity.Entity; -import net.minecraft.world.entity.player.Player; -import net.minecraft.world.inventory.AbstractContainerMenu; -import net.minecraft.world.inventory.CraftingContainer; -import net.minecraft.world.inventory.MenuType; -import net.minecraft.world.item.CreativeModeTab; -import net.minecraft.world.item.Item; -import net.minecraft.world.item.ItemStack; -import net.minecraft.world.item.context.UseOnContext; -import net.minecraft.world.item.crafting.Ingredient; -import net.minecraft.world.item.crafting.Recipe; -import net.minecraft.world.level.Level; -import net.minecraft.world.level.block.Block; -import net.minecraft.world.level.block.entity.BlockEntity; -import net.minecraft.world.level.block.entity.BlockEntityType; -import net.minecraft.world.level.block.state.BlockState; -import net.minecraft.world.level.chunk.LevelChunk; -import net.minecraft.world.phys.BlockHitResult; -import net.minecraft.world.phys.Vec3; -import net.minecraftforge.common.CreativeModeTabRegistry; -import net.minecraftforge.common.ForgeHooks; -import net.minecraftforge.common.Tags; -import net.minecraftforge.common.ToolActions; -import net.minecraftforge.common.capabilities.Capability; -import net.minecraftforge.common.capabilities.ForgeCapabilities; -import net.minecraftforge.common.crafting.conditions.ICondition; -import net.minecraftforge.common.extensions.IForgeMenuType; -import net.minecraftforge.common.util.NonNullConsumer; -import net.minecraftforge.event.ForgeEventFactory; -import net.minecraftforge.eventbus.api.Event; -import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; -import net.minecraftforge.items.wrapper.InvWrapper; -import net.minecraftforge.items.wrapper.SidedInvWrapper; -import net.minecraftforge.network.NetworkHooks; -import net.minecraftforge.registries.DeferredRegister; -import net.minecraftforge.registries.ForgeRegistry; -import net.minecraftforge.registries.RegistryManager; -import net.minecraftforge.registries.RegistryObject; - -import javax.annotation.Nullable; -import java.util.*; -import java.util.function.*; - -@AutoService(dan200.computercraft.impl.PlatformHelper.class) -public class PlatformHelperImpl implements PlatformHelper { - @Override - public ConfigFile.Builder createConfigBuilder() { - return new ForgeConfigFile.Builder(); - } - - @Override - public ResourceLocation getRegistryKey(ResourceKey> registry, T object) { - var key = RegistryManager.ACTIVE.getRegistry(registry).getKey(object); - if (key == null) throw new IllegalArgumentException(object + " was not registered in " + registry); - return key; - } - - @Override - public T getRegistryObject(ResourceKey> registry, ResourceLocation id) { - var value = RegistryManager.ACTIVE.getRegistry(registry).getValue(id); - if (value == null) throw new IllegalArgumentException(id + " was not registered in " + registry); - return value; - } - - @Override - public RegistryWrappers.RegistryWrapper wrap(ResourceKey> key) { - return new RegistryWrapperImpl<>(key.location(), RegistryManager.ACTIVE.getRegistry(key)); - } - - @Override - public RegistrationHelper createRegistrationHelper(ResourceKey> registry) { - return new RegistrationHelperImpl<>(DeferredRegister.create(registry, ComputerCraftAPI.MOD_ID)); - } - - @Nullable - @Override - public K tryGetRegistryObject(ResourceKey> registry, ResourceLocation id) { - return RegistryManager.ACTIVE.getRegistry(registry).getValue(id); - } - - @Override - public boolean shouldLoadResource(JsonObject object) { - return ICondition.shouldRegisterEntry(object); - } - - @Override - public BlockEntityType createBlockEntityType(BiFunction factory, Block block) { - return new BlockEntityType<>(factory::apply, Set.of(block), null); - } - - @Override - public , T extends ArgumentTypeInfo.Template, I extends ArgumentTypeInfo> I registerArgumentTypeInfo(Class klass, I info) { - return ArgumentTypeInfos.registerByClass(klass, info); - } - - @Override - public MenuType createMenuType(Function reader, ContainerData.Factory factory) { - return IForgeMenuType.create((id, player, data) -> factory.create(id, player, reader.apply(data))); - } - - @Override - public void openMenu(Player player, MenuProvider owner, ContainerData menu) { - NetworkHooks.openScreen((ServerPlayer) player, owner, menu::toBytes); - } - - @Override - public void sendToPlayer(NetworkMessage message, ServerPlayer player) { - NetworkHandler.sendToPlayer(message, player); - } - - @Override - public void sendToPlayers(NetworkMessage message, Collection players) { - NetworkHandler.sendToPlayers(message, players); - } - - @Override - public void sendToAllPlayers(NetworkMessage message, MinecraftServer server) { - NetworkHandler.sendToAllPlayers(message); - } - - @Override - public void sendToAllAround(NetworkMessage message, ServerLevel level, Vec3 pos, float distance) { - NetworkHandler.sendToAllAround(message, level, pos, distance); - } - - @Override - public void sendToAllTracking(NetworkMessage message, LevelChunk chunk) { - NetworkHandler.sendToAllTracking(message, chunk); - } - - @Override - public ComponentAccess createPeripheralAccess(Consumer invalidate) { - return new PeripheralAccess(invalidate); - } - - @Override - public ComponentAccess createWiredElementAccess(Consumer invalidate) { - return new CapabilityAccess<>(Capabilities.CAPABILITY_WIRED_ELEMENT, invalidate); - } - - @Override - public boolean hasWiredElementIn(Level level, BlockPos pos, Direction direction) { - if (!level.isLoaded(pos)) return false; - - var blockEntity = level.getBlockEntity(pos.relative(direction)); - return blockEntity != null && blockEntity.getCapability(Capabilities.CAPABILITY_WIRED_ELEMENT, direction.getOpposite()).isPresent(); - } - - @Override - public ContainerTransfer.Slotted wrapContainer(Container container) { - return new ForgeContainerTransfer(new InvWrapper(container)); - } - - @Nullable - @Override - public ContainerTransfer getContainer(ServerLevel level, BlockPos pos, Direction side) { - var block = level.getBlockState(pos); - if (block.getBlock() instanceof WorldlyContainerHolder holder) { - var container = holder.getContainer(block, level, pos); - return new ForgeContainerTransfer(new SidedInvWrapper(container, side)); - } - - var blockEntity = level.getBlockEntity(pos); - if (blockEntity != null) { - var inventory = blockEntity.getCapability(ForgeCapabilities.ITEM_HANDLER, side); - if (inventory.isPresent()) { - return new ForgeContainerTransfer(inventory.orElseThrow(NullPointerException::new)); - } - } - - var entity = InventoryUtil.getEntityContainer(level, pos, side); - return entity == null ? null : new ForgeContainerTransfer(new InvWrapper(entity)); - } - - @Nullable - @Override - public CompoundTag getShareTag(ItemStack item) { - return item.getShareTag(); - } - - @Override - public RecipeIngredients getRecipeIngredients() { - return new RecipeIngredients( - Ingredient.of(Tags.Items.DUSTS_REDSTONE), - Ingredient.of(Tags.Items.STRING), - Ingredient.of(Tags.Items.LEATHER), - Ingredient.of(Tags.Items.STONE), - Ingredient.of(Tags.Items.GLASS_PANES), - Ingredient.of(Tags.Items.INGOTS_GOLD), - Ingredient.of(Tags.Items.STORAGE_BLOCKS_GOLD), - Ingredient.of(Tags.Items.INGOTS_IRON), - Ingredient.of(Tags.Items.HEADS), - Ingredient.of(Tags.Items.DYES), - Ingredient.of(Tags.Items.ENDER_PEARLS), - Ingredient.of(Tags.Items.CHESTS_WOODEN) - ); - } - - @Override - public List> getDyeTags() { - return List.of( - Tags.Items.DYES_WHITE, - Tags.Items.DYES_ORANGE, - Tags.Items.DYES_MAGENTA, - Tags.Items.DYES_LIGHT_BLUE, - Tags.Items.DYES_YELLOW, - Tags.Items.DYES_LIME, - Tags.Items.DYES_PINK, - Tags.Items.DYES_GRAY, - Tags.Items.DYES_LIGHT_GRAY, - Tags.Items.DYES_CYAN, - Tags.Items.DYES_PURPLE, - Tags.Items.DYES_BLUE, - Tags.Items.DYES_BROWN, - Tags.Items.DYES_GREEN, - Tags.Items.DYES_RED, - Tags.Items.DYES_BLACK - ); - } - - @Override - public int getBurnTime(ItemStack stack) { - return ForgeHooks.getBurnTime(stack, null); - } - - @Nullable - @Override - public ResourceLocation getCreativeTabId(CreativeModeTab tab) { - return CreativeModeTabRegistry.getName(tab); - } - - @Override - public ItemStack getCraftingRemainingItem(ItemStack stack) { - return stack.getCraftingRemainingItem(); - } - - @Override - public List getRecipeRemainingItems(ServerPlayer player, Recipe recipe, CraftingContainer container) { - ForgeHooks.setCraftingPlayer(player); - var result = recipe.getRemainingItems(container); - ForgeHooks.setCraftingPlayer(null); - return result; - } - - @Override - public void onItemCrafted(ServerPlayer player, CraftingContainer container, ItemStack stack) { - ForgeEventFactory.firePlayerCraftingEvent(player, stack, container); - } - - @Override - public boolean onNotifyNeighbour(Level level, BlockPos pos, BlockState block, Direction direction) { - return !ForgeEventFactory.onNeighborNotify(level, pos, block, EnumSet.of(direction), false).isCanceled(); - } - - @Override - public ServerPlayer createFakePlayer(ServerLevel world, GameProfile profile) { - return new FakePlayerExt(world, profile); - } - - @Override - public double getReachDistance(Player player) { - return player.getReachDistance(); - } - - @Override - public boolean hasToolUsage(ItemStack stack) { - return stack.canPerformAction(ToolActions.SHOVEL_FLATTEN) || stack.canPerformAction(ToolActions.HOE_TILL); - } - - @Override - public InteractionResult canAttackEntity(ServerPlayer player, Entity entity) { - return ForgeHooks.onPlayerAttackTarget(player, entity) ? InteractionResult.PASS : InteractionResult.SUCCESS; - } - - @Override - public boolean interactWithEntity(ServerPlayer player, Entity entity, Vec3 hitPos) { - // Our behaviour is slightly different here - we call onInteractEntityAt before the interact methods, while - // Forge does the call afterwards (on the server, not on the client). - var interactAt = ForgeHooks.onInteractEntityAt(player, entity, hitPos, InteractionHand.MAIN_HAND); - if (interactAt == null) { - interactAt = entity.interactAt(player, hitPos.subtract(entity.position()), InteractionHand.MAIN_HAND); - } - - return interactAt.consumesAction() || player.interactOn(entity, InteractionHand.MAIN_HAND).consumesAction(); - } - - @Override - public InteractionResult useOn(ServerPlayer player, ItemStack stack, BlockHitResult hit, Predicate canUseBlock) { - var level = player.level; - var pos = hit.getBlockPos(); - var event = ForgeHooks.onRightClickBlock(player, InteractionHand.MAIN_HAND, pos, hit); - if (event.isCanceled()) return event.getCancellationResult(); - - var context = new UseOnContext(player, InteractionHand.MAIN_HAND, hit); - if (event.getUseItem() != Event.Result.DENY) { - var result = stack.onItemUseFirst(context); - if (result != InteractionResult.PASS) return result; - } - - var block = level.getBlockState(hit.getBlockPos()); - if (event.getUseBlock() != Event.Result.DENY && !block.isAir() && canUseBlock.test(block)) { - var useResult = block.use(level, player, InteractionHand.MAIN_HAND, hit); - if (useResult.consumesAction()) return useResult; - } - - return event.getUseItem() == Event.Result.DENY ? InteractionResult.PASS : stack.useOn(context); - } - - private record RegistryWrapperImpl( - ResourceLocation name, ForgeRegistry registry - ) implements RegistryWrappers.RegistryWrapper { - @Override - public int getId(T object) { - var id = registry.getID(object); - if (id == -1) throw new IllegalStateException(object + " was not registered in " + name); - return id; - } - - @Override - public ResourceLocation getKey(T object) { - var key = registry.getKey(object); - if (key == null) throw new IllegalStateException(object + " was not registered in " + name); - return key; - } - - @Override - public T get(ResourceLocation location) { - var object = registry.getValue(location); - if (object == null) throw new IllegalStateException(location + " was not registered in " + name); - return object; - } - - @Nullable - @Override - public T tryGet(ResourceLocation location) { - return registry.getValue(location); - } - - @Override - public T get(int id) { - var object = registry.getValue(id); - if (object == null) throw new IllegalStateException(id + " was not registered in " + name); - return object; - } - - @Override - public Iterator iterator() { - return registry.iterator(); - } - } - - private record RegistrationHelperImpl(DeferredRegister registry) implements RegistrationHelper { - @Override - public RegistryEntry register(String name, Supplier create) { - return new RegistryEntryImpl<>(registry().register(name, create)); - } - - @Override - public void register() { - registry().register(FMLJavaModLoadingContext.get().getModEventBus()); - } - } - - private record RegistryEntryImpl(RegistryObject object) implements RegistryEntry { - @Override - public ResourceLocation id() { - return object().getId(); - } - - @Override - public T get() { - return object().get(); - } - } - - private abstract static class ComponentAccessImpl implements ComponentAccess { - private final NonNullConsumer[] invalidators; - private @Nullable Level level; - private @Nullable BlockPos pos; - - ComponentAccessImpl(Consumer invalidate) { - // Generate a cache of invalidation functions so we can guarantee we only ever have one registered per - // capability - there's no way to remove these callbacks! - @SuppressWarnings({ "unchecked", "rawtypes" }) - var invalidators = this.invalidators = new NonNullConsumer[6]; - for (var dir : Direction.values()) invalidators[dir.ordinal()] = x -> invalidate.accept(dir); - } - - @Nullable - protected abstract T get(ServerLevel world, BlockPos pos, Direction side, NonNullConsumer invalidate); - - @Nullable - @Override - public T get(ServerLevel level, BlockPos pos, Direction direction) { - if (this.level != null && this.level != level) throw new IllegalStateException("Level has changed"); - if (this.pos != null && this.pos != pos) throw new IllegalStateException("Position has changed"); - - this.level = level; - this.pos = pos; - return get(level, pos.relative(direction), direction.getOpposite(), invalidators[direction.ordinal()]); - } - } - - private static class PeripheralAccess extends ComponentAccessImpl { - PeripheralAccess(Consumer invalidate) { - super(invalidate); - } - - @Nullable - @Override - protected IPeripheral get(ServerLevel world, BlockPos pos, Direction side, NonNullConsumer invalidate) { - return Peripherals.getPeripheral(world, pos, side, invalidate); - } - } - - private static class CapabilityAccess extends ComponentAccessImpl { - private final Capability capability; - - CapabilityAccess(Capability capability, Consumer invalidate) { - super(invalidate); - this.capability = capability; - } - - @Nullable - @Override - protected T get(ServerLevel world, BlockPos pos, Direction side, NonNullConsumer invalidate) { - if (!world.isLoaded(pos)) return null; - - var blockEntity = world.getBlockEntity(pos); - return blockEntity != null ? CapabilityUtil.unwrap(blockEntity.getCapability(capability, side), invalidate) : null; - } - } -} diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/util/CapabilityProvider.java b/projects/forge/src/main/java/dan200/computercraft/shared/util/CapabilityProvider.java index 7d1b42397..4c5b2ca14 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/util/CapabilityProvider.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/util/CapabilityProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import net.minecraft.core.Direction; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/util/CapabilityUtil.java b/projects/forge/src/main/java/dan200/computercraft/shared/util/CapabilityUtil.java index 04cb51d4c..9c36a74e8 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/util/CapabilityUtil.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/util/CapabilityUtil.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import net.minecraft.core.Direction; diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/util/SidedCapabilityProvider.java b/projects/forge/src/main/java/dan200/computercraft/shared/util/SidedCapabilityProvider.java index a7fe636c5..eb50ef21a 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/util/SidedCapabilityProvider.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/util/SidedCapabilityProvider.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.util; import net.minecraft.core.Direction; diff --git a/projects/forge/src/main/resources/META-INF/accesstransformer.cfg b/projects/forge/src/main/resources/META-INF/accesstransformer.cfg index f4269f583..f8796ee38 100644 --- a/projects/forge/src/main/resources/META-INF/accesstransformer.cfg +++ b/projects/forge/src/main/resources/META-INF/accesstransformer.cfg @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +# +# SPDX-License-Identifier: LicenseRef-CCPL + # DirectVertexBuffer protected com.mojang.blaze3d.vertex.VertexBuffer f_231217_ # vertexBufferId protected com.mojang.blaze3d.vertex.VertexBuffer f_166861_ # indexType diff --git a/projects/forge/src/main/resources/META-INF/mods.toml b/projects/forge/src/main/resources/META-INF/mods.toml index 0c8eeb895..ecb5abc3d 100644 --- a/projects/forge/src/main/resources/META-INF/mods.toml +++ b/projects/forge/src/main/resources/META-INF/mods.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers +# +# SPDX-License-Identifier: MPL-2.0 + modLoader="javafml" loaderVersion="[45,46)" diff --git a/projects/forge/src/test/java/dan200/computercraft/shared/platform/ForgeContainerTransferTest.java b/projects/forge/src/test/java/dan200/computercraft/shared/platform/ForgeContainerTransferTest.java index 3b4aa0cdf..c2465f00e 100644 --- a/projects/forge/src/test/java/dan200/computercraft/shared/platform/ForgeContainerTransferTest.java +++ b/projects/forge/src/test/java/dan200/computercraft/shared/platform/ForgeContainerTransferTest.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.shared.platform; import dan200.computercraft.test.shared.WithMinecraft; diff --git a/projects/forge/src/test/resources/junit-platform.properties b/projects/forge/src/test/resources/junit-platform.properties index 1d27b78fb..ee4487e53 100644 --- a/projects/forge/src/test/resources/junit-platform.properties +++ b/projects/forge/src/test/resources/junit-platform.properties @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +# +# SPDX-License-Identifier: CC0-1.0 junit.jupiter.execution.parallel.enabled=true diff --git a/projects/forge/src/testMod/java/dan200/computercraft/gametest/core/TestMod.java b/projects/forge/src/testMod/java/dan200/computercraft/gametest/core/TestMod.java index d92615057..ad295ffd1 100644 --- a/projects/forge/src/testMod/java/dan200/computercraft/gametest/core/TestMod.java +++ b/projects/forge/src/testMod/java/dan200/computercraft/gametest/core/TestMod.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package dan200.computercraft.gametest.core; import dan200.computercraft.export.Exporter; diff --git a/projects/forge/src/testMod/resources/META-INF/mods.toml b/projects/forge/src/testMod/resources/META-INF/mods.toml index b81cdfa64..a994a60a3 100644 --- a/projects/forge/src/testMod/resources/META-INF/mods.toml +++ b/projects/forge/src/testMod/resources/META-INF/mods.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +# +# SPDX-License-Identifier: MPL-2.0 + modLoader="javafml" loaderVersion="[30,)" diff --git a/projects/lints/build.gradle.kts b/projects/lints/build.gradle.kts index a4d86919d..210b44d7f 100644 --- a/projects/lints/build.gradle.kts +++ b/projects/lints/build.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + plugins { id("cc-tweaked.kotlin-convention") id("cc-tweaked.java-convention") diff --git a/projects/lints/src/main/kotlin/cc/tweaked/linter/Extensions.kt b/projects/lints/src/main/kotlin/cc/tweaked/linter/Extensions.kt index b76e68401..f3f630407 100644 --- a/projects/lints/src/main/kotlin/cc/tweaked/linter/Extensions.kt +++ b/projects/lints/src/main/kotlin/cc/tweaked/linter/Extensions.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + @file:Suppress("JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE") package cc.tweaked.linter diff --git a/projects/lints/src/main/kotlin/cc/tweaked/linter/LoaderOverride.kt b/projects/lints/src/main/kotlin/cc/tweaked/linter/LoaderOverride.kt index 93c693321..587e6a815 100644 --- a/projects/lints/src/main/kotlin/cc/tweaked/linter/LoaderOverride.kt +++ b/projects/lints/src/main/kotlin/cc/tweaked/linter/LoaderOverride.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + @file:Suppress("JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE") package cc.tweaked.linter diff --git a/projects/lints/src/main/kotlin/cc/tweaked/linter/MinecraftLibraryModel.kt b/projects/lints/src/main/kotlin/cc/tweaked/linter/MinecraftLibraryModel.kt index 35840ad62..d38c2b100 100644 --- a/projects/lints/src/main/kotlin/cc/tweaked/linter/MinecraftLibraryModel.kt +++ b/projects/lints/src/main/kotlin/cc/tweaked/linter/MinecraftLibraryModel.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.linter import com.google.common.collect.ImmutableSet diff --git a/projects/lints/src/main/kotlin/cc/tweaked/linter/SideChecker.kt b/projects/lints/src/main/kotlin/cc/tweaked/linter/SideChecker.kt index cedf4a683..93a9ee21e 100644 --- a/projects/lints/src/main/kotlin/cc/tweaked/linter/SideChecker.kt +++ b/projects/lints/src/main/kotlin/cc/tweaked/linter/SideChecker.kt @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + @file:Suppress("JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE") package cc.tweaked.linter diff --git a/projects/lints/src/main/resources/META-INF/services/com.google.errorprone.bugpatterns.BugChecker b/projects/lints/src/main/resources/META-INF/services/com.google.errorprone.bugpatterns.BugChecker index 29e7f1cce..db10e66d9 100644 --- a/projects/lints/src/main/resources/META-INF/services/com.google.errorprone.bugpatterns.BugChecker +++ b/projects/lints/src/main/resources/META-INF/services/com.google.errorprone.bugpatterns.BugChecker @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +# +# SPDX-License-Identifier: MPL-2.0 cc.tweaked.linter.LoaderOverride cc.tweaked.linter.MissingLoaderOverride cc.tweaked.linter.SideChecker diff --git a/projects/lints/src/main/resources/META-INF/services/com.uber.nullaway.LibraryModels b/projects/lints/src/main/resources/META-INF/services/com.uber.nullaway.LibraryModels index 8dbf2ccd4..4891a5351 100644 --- a/projects/lints/src/main/resources/META-INF/services/com.uber.nullaway.LibraryModels +++ b/projects/lints/src/main/resources/META-INF/services/com.uber.nullaway.LibraryModels @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +# +# SPDX-License-Identifier: MPL-2.0 cc.tweaked.linter.MinecraftLibraryModel diff --git a/projects/lints/src/test/java/cc/tweaked/linter/AnnotatedClientClass.java b/projects/lints/src/test/java/cc/tweaked/linter/AnnotatedClientClass.java index 3a0bb7eaf..4f8171a46 100644 --- a/projects/lints/src/test/java/cc/tweaked/linter/AnnotatedClientClass.java +++ b/projects/lints/src/test/java/cc/tweaked/linter/AnnotatedClientClass.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.linter; import net.minecraftforge.api.distmarker.Dist; diff --git a/projects/lints/src/test/java/cc/tweaked/linter/TestSideChecker.java b/projects/lints/src/test/java/cc/tweaked/linter/TestSideChecker.java index c8b56ce88..8ce5cb7cb 100644 --- a/projects/lints/src/test/java/cc/tweaked/linter/TestSideChecker.java +++ b/projects/lints/src/test/java/cc/tweaked/linter/TestSideChecker.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.linter; import com.google.common.base.Predicates; diff --git a/projects/lints/src/test/java/cc/tweaked/linter/client/PackageClientClass.java b/projects/lints/src/test/java/cc/tweaked/linter/client/PackageClientClass.java index b4222681b..3f71bcd54 100644 --- a/projects/lints/src/test/java/cc/tweaked/linter/client/PackageClientClass.java +++ b/projects/lints/src/test/java/cc/tweaked/linter/client/PackageClientClass.java @@ -1,8 +1,7 @@ -/* - * This file is part of ComputerCraft - http://www.computercraft.info - * Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. - * Send enquiries to dratcliffe@gmail.com - */ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + package cc.tweaked.linter.client; public class PackageClientClass { diff --git a/projects/web/build.gradle.kts b/projects/web/build.gradle.kts index e7bac6ebf..6b77e50e2 100644 --- a/projects/web/build.gradle.kts +++ b/projects/web/build.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + plugins { `lifecycle-base` id("cc-tweaked.node") diff --git a/projects/web/rollup.config.js b/projects/web/rollup.config.js index e2422f587..958c37ccc 100644 --- a/projects/web/rollup.config.js +++ b/projects/web/rollup.config.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + import { readFileSync } from "fs"; import path from "path"; diff --git a/projects/web/src/components/Recipe.tsx b/projects/web/src/components/Recipe.tsx index 40d402156..1cb3e87e6 100644 --- a/projects/web/src/components/Recipe.tsx +++ b/projects/web/src/components/Recipe.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + import type { FunctionComponent } from "react"; import { createElement as h } from "react"; import useExport from "./WithExport.js"; diff --git a/projects/web/src/components/WithExport.tsx b/projects/web/src/components/WithExport.tsx index 10cfcfb37..57a2661ff 100644 --- a/projects/web/src/components/WithExport.tsx +++ b/projects/web/src/components/WithExport.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + import { createElement as h, useContext, createContext, FunctionComponent, ReactNode } from "react"; export type DataExport = { diff --git a/projects/web/src/components/support.tsx b/projects/web/src/components/support.tsx index 9cea4b321..63a576b37 100644 --- a/projects/web/src/components/support.tsx +++ b/projects/web/src/components/support.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + import type { FunctionComponent } from "react"; /** diff --git a/projects/web/src/index.tsx b/projects/web/src/index.tsx index 858d3658e..49dec617b 100644 --- a/projects/web/src/index.tsx +++ b/projects/web/src/index.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + import { render, h, Component, Computer, PeripheralKind } from "copycat/embed"; import type { ComponentChild } from "preact"; @@ -6,7 +10,7 @@ import startupFile from "./mount/startup.lua"; import exprTemplate from "./mount/expr_template.lua"; import exampleNfp from "./mount/example.nfp"; import exampleNft from "./mount/example.nft"; -import exampleAudioLicense from "./mount/example.dfpwm.LICENSE"; +import exampleAudioLicense from "./mount/example.dfpwm.license"; import exampleAudioUrl from "./mount/example.dfpwm"; const defaultFiles: { [filename: string]: string } = { @@ -123,7 +127,7 @@ class Window extends Component { } if (example.includes("data/example.dfpwm")) { - files["data/example.dfpwm.LICENSE"] = exampleAudioLicense; + files["data/example.dfpwm.license"] = exampleAudioLicense; try { if (dfpwmAudio === null) dfpwmAudio = download(exampleAudioUrl); diff --git a/projects/web/src/mount/example.dfpwm.LICENSE b/projects/web/src/mount/example.dfpwm.license similarity index 57% rename from projects/web/src/mount/example.dfpwm.LICENSE rename to projects/web/src/mount/example.dfpwm.license index e08ffeee2..f885184f4 100644 --- a/projects/web/src/mount/example.dfpwm.LICENSE +++ b/projects/web/src/mount/example.dfpwm.license @@ -1,3 +1,4 @@ Playing Soliloquy [Remake] by Alcakight Source: https://soundcloud.com/alcaknight/soliloquy-remake -License: under CC BY 3.0 +SPDX-License-Identifier: CC-BY-3.0 +SPDX-FileCopyrightText: 2017 Alcakight diff --git a/projects/web/src/mount/startup.lua b/projects/web/src/mount/startup.lua index e02782f4c..e05075b6d 100644 --- a/projects/web/src/mount/startup.lua +++ b/projects/web/src/mount/startup.lua @@ -1,6 +1,10 @@ +-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +-- +-- SPDX-License-Identifier: MPL-2.0 + -- Print out license information if needed if fs.exists("data/example.dfpwm") then - local h = io.open("data/example.dfpwm.LICENSE") + local h = io.open("data/example.dfpwm.license") local contents = h:read("*a") h:close() diff --git a/projects/web/src/styles.css b/projects/web/src/styles.css index f0901b31c..9abc74dae 100644 --- a/projects/web/src/styles.css +++ b/projects/web/src/styles.css @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +// +// SPDX-License-Identifier: LicenseRef-CCPL + :root { --nav-width: 250px; } diff --git a/projects/web/src/transform.tsx b/projects/web/src/transform.tsx index 4e0a7f652..54d56e784 100644 --- a/projects/web/src/transform.tsx +++ b/projects/web/src/transform.tsx @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + /** * Find all HTML files generated by illuaminate and pipe them through a remark. * diff --git a/projects/web/src/typings.ts b/projects/web/src/typings.ts index c3e46e780..067e53211 100644 --- a/projects/web/src/typings.ts +++ b/projects/web/src/typings.ts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + declare module "*.lua" { const contents: string; export default contents; @@ -19,7 +23,7 @@ declare module "*.settings" { export default contents; } -declare module "*.LICENSE" { +declare module "*.license" { const contents: string; export default contents; } diff --git a/settings.gradle.kts b/settings.gradle.kts index 4128e2835..6a0ca2dd9 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +// +// SPDX-License-Identifier: MPL-2.0 + pluginManagement { // Duplicated in buildSrc/build.gradle.kts repositories { diff --git a/tools/language.py b/tools/language.py index a23ceba82..277aa25c4 100755 --- a/tools/language.py +++ b/tools/language.py @@ -1,4 +1,9 @@ #!/usr/bin/env python3 + +# SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers +# +# SPDX-License-Identifier: MPL-2.0 + """ Rewrites language files in order to be consistent with en_us. diff --git a/tools/parse-reports.py b/tools/parse-reports.py index b733c8ccb..44907d7b7 100755 --- a/tools/parse-reports.py +++ b/tools/parse-reports.py @@ -1,4 +1,9 @@ #!/usr/bin/env python3 + +# SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers +# +# SPDX-License-Identifier: MPL-2.0 + """ Parse reports generated by Gradle and convert them into GitHub annotations. diff --git a/tools/screenshots.py b/tools/screenshots.py index 948f6d705..d2871500c 100755 --- a/tools/screenshots.py +++ b/tools/screenshots.py @@ -1,4 +1,9 @@ #!/usr/bin/env python3 + +# SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers +# +# SPDX-License-Identifier: MPL-2.0 + """ Combines screenshots from the Forge and Fabric tests into a single HTML page. """