From 72e27968eb1fb5a30dad3091cce6e42be75494f1 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Thu, 17 Sep 2015 16:21:56 +0100 Subject: [PATCH] Add license --- LICENSE | 202 +++++++++++++++++++++++++++++++++++++++ log.log | 210 ----------------------------------------- src/bit/map.rs | 13 +++ src/bit/mod.rs | 14 +++ src/bit/set.rs | 13 +++ src/format.rs | 13 +++ src/gl/mod.rs | 14 +++ src/item.rs | 13 +++ src/main.rs | 14 +++ src/nbt/mod.rs | 13 +++ src/protocol/mod.rs | 14 +++ src/protocol/mojang.rs | 14 ++- src/protocol/packet.rs | 14 +++ src/render/atlas.rs | 13 +++ src/render/glsl.rs | 13 +++ src/render/mod.rs | 14 ++- src/render/shaders.rs | 13 +++ src/render/ui.rs | 13 +++ src/resources.rs | 14 +++ src/type/mod.rs | 6 -- src/types/blockpos.rs | 14 +++ src/types/metadata.rs | 13 +++ src/types/mod.rs | 13 +++ src/ui/mod.rs | 13 +++ 24 files changed, 482 insertions(+), 218 deletions(-) create mode 100644 LICENSE delete mode 100644 log.log delete mode 100644 src/type/mod.rs create mode 100644 src/ui/mod.rs diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7a4a3ea --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + 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. \ No newline at end of file diff --git a/log.log b/log.log deleted file mode 100644 index 407d775..0000000 --- a/log.log +++ /dev/null @@ -1,210 +0,0 @@ -Compression: 256 -Login: Think b1184d43-1684-41cf-a212-8b9a3df3b6ab -JoinGame(JoinGame { entity_id: 47, gamemode: 1, dimension: 0, difficulty: 1, max_players: 20, level_type: "default", reduced_debug_info: false }) -PluginMessageClientbound(PluginMessageClientbound { channel: "REGISTER", data: [87, 69, 67, 85, 73, 0] }) -PluginMessageClientbound(PluginMessageClientbound { channel: "MC|Brand", data: [11, 67, 114, 97, 102, 116, 66, 117, 107, 107, 105, 116] }) -ServerDifficulty(ServerDifficulty { difficulty: 1 }) -SpawnPosition(SpawnPosition { location: <202,64,-93> }) -PlayerAbilities(PlayerAbilities { flags: 13, flying_speed: 0.05, walking_speed: 0.1 }) -SetCurrentHotbarSlot(SetCurrentHotbarSlot { slot: 5 }) -EntityAction(EntityAction { entity_id: 47, action_id: 28 }) -Statistics(Statistics { statistices: [] }) -MSG: Think joined the game -PlayerInfo(PlayerInfo { inner: PlayerInfoData { action: 0, players: [Add { uuid: UUID(5000938010188400878, 10192164627100470560), name: "Thinkofdeath", properties: [PlayerProperty { name: "textures", value: "eyJ0aW1lc3RhbXAiOjE0NDIwODM5NDgxMjMsInByb2ZpbGVJZCI6IjQ1NjZlNjlmYzkwNzQ4ZWU4ZDcxZDdiYTVhYTAwZDIwIiwicHJvZmlsZU5hbWUiOiJUaGlua29mZGVhdGgiLCJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTNlODFiOWUxOWFiMWVmMTdhOTBjMGFhNGUxMDg1ZmMxM2NkNDdjZWQ1YTdhMWE0OTI4MDNiMzU2MWU0YTE1YiJ9LCJDQVBFIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYTc4OTMyNzBmN2RmNjdhMjBlYTljOGFiNTJkN2FmZjIzMjcwZmM0M2ExMWZiM2RhZTYyMjkxNjM0YWY0MjQifX19", signature: Some("FUTqRMhKeZkCsFVBXlK5qJfB+7lxHBpHT0mHx1sZO32ml3TObw6ZLSqkOJvgj8lSstV3Zg248Ld08z+mEsVPR9qFjibQeFU2S1YKgEglfZOIlIWLrFmlpi2QEEAiUg43a/KpZh8ydNPiNrrhgz7LoHoKHg+lQFeuwqc/Q+pgIMCXsKTqVMOR36LMkMYDuoyhyJs2kop7JxYLE2puibwhki6RwLjU93I+UenVEtBygcu0Eo5FXM0s4kshwS97o6NsvkVq0n4QDLDm9pCVNQ//krLtrrdaq4ZmINBVroOy6XBiMy5Yct8H2EK7KXua1QTeihQwWYg2eWi6Wrjs11gzb9t0OaTv0deB9nljdjIl1ee2bpY320/OcOfFCtmPjb6baDUb34Gl0ZZEK4jQC1JXPpNGXoFPD7iYHYfIR2uqyWCvFqJufNx6XHYjFWFnk4nFJmalDliz3vRPzWC/X1m+1k25HNom+xY88NPGZPSsybBwa/DgunToQxSfy3W1cYti0RVCsAThW25OTZ32ZmRuRswcA9RAifAKa9B0uzrmh5jBJiYVLMM7uP2D6vMB6G4PEczwM56VsEs9eppiPYR9EQ+AKqR7wWPDeQck0n4SVOAYy0gLCgJqayg5xwMQikh8RdhVaNW1nfNRxiAaCs6WZoYmot/YRsTxB3aEw088YmI=") }], gamemode: 1, ping: 0, display: None }] } }) -PlayerInfo(PlayerInfo { inner: PlayerInfoData { action: 0, players: [Add { uuid: UUID(12761034494690214351, 11678550278305724075), name: "Think", properties: [PlayerProperty { name: "textures", value: "eyJ0aW1lc3RhbXAiOjE0NDIwODM5NTk4NTMsInByb2ZpbGVJZCI6ImIxMTg0ZDQzMTY4NDQxY2ZhMjEyOGI5YTNkZjNiNmFiIiwicHJvZmlsZU5hbWUiOiJUaGluayIsInRleHR1cmVzIjp7fX0=", signature: Some("c8KfMdq65VLdsBVrW1dtnIJM+OtCFXk5uCKvUZ7aTeBeQVQh2gSRNe303hbLkYNGtbY64nHcB1Pm2NF0P85Sl3S7MZDxWJmrGIQbnsS4Ptd+Y90Ub51eQxUy5EG78xYPvmTC6UBqVkQfhLfCQBkKLaYFb6ec8pMdmGubfttp0FTOIyQ6HU9x+kfx7K53McumV8P1LCzsjNGfm9tB1zg698LoPJHn5srSvUCAA1OLGsXpw/Zo8j8BwPpdHwq4KhSe0OYQD0xdw7EF3ih7eSPnBgfWADzCYsUC6AReAvbKo5uBtEtI+DGT33YGmJFhXCEo7B9EyXGZHQ+Yn+RXmXF4+l+e2A7I0GhvdjOi+REZvCksH5U9Ac8jqVr8BgtlJCPJD1xa3WteCngmovCyGb8ldeb0Ni27l0UqW0v6RbB9TQGfktwxJE7zZjU5pV2wV8XQq2VCwFzRy7KGyF4TFGoQtq2o9Spw6VWsT1rDQuJXJ8/XaSq624Sj8UkRm2RpJ6LesM6j+N8Q/ISetXHwreiR0SYHgoWCQuznAsELsSWcV7Af/7XfNEu5YmkWqzquEjx/LAlLWfLo5KwvlXjj9FOhcQXMqdNLJeoEsvlndtVUtY6yTfwZbLF7mG3UO06iRxP2GsO3rIFDmAqgD4iztcXW8wZASFsllPh9BN4+KhhkKDQ=") }], gamemode: 1, ping: 0, display: None }] } }) -PlayerInfo(PlayerInfo { inner: PlayerInfoData { action: 0, players: [Add { uuid: UUID(12761034494690214351, 11678550278305724075), name: "Think", properties: [PlayerProperty { name: "textures", value: "eyJ0aW1lc3RhbXAiOjE0NDIwODM5NTk4NTMsInByb2ZpbGVJZCI6ImIxMTg0ZDQzMTY4NDQxY2ZhMjEyOGI5YTNkZjNiNmFiIiwicHJvZmlsZU5hbWUiOiJUaGluayIsInRleHR1cmVzIjp7fX0=", signature: Some("c8KfMdq65VLdsBVrW1dtnIJM+OtCFXk5uCKvUZ7aTeBeQVQh2gSRNe303hbLkYNGtbY64nHcB1Pm2NF0P85Sl3S7MZDxWJmrGIQbnsS4Ptd+Y90Ub51eQxUy5EG78xYPvmTC6UBqVkQfhLfCQBkKLaYFb6ec8pMdmGubfttp0FTOIyQ6HU9x+kfx7K53McumV8P1LCzsjNGfm9tB1zg698LoPJHn5srSvUCAA1OLGsXpw/Zo8j8BwPpdHwq4KhSe0OYQD0xdw7EF3ih7eSPnBgfWADzCYsUC6AReAvbKo5uBtEtI+DGT33YGmJFhXCEo7B9EyXGZHQ+Yn+RXmXF4+l+e2A7I0GhvdjOi+REZvCksH5U9Ac8jqVr8BgtlJCPJD1xa3WteCngmovCyGb8ldeb0Ni27l0UqW0v6RbB9TQGfktwxJE7zZjU5pV2wV8XQq2VCwFzRy7KGyF4TFGoQtq2o9Spw6VWsT1rDQuJXJ8/XaSq624Sj8UkRm2RpJ6LesM6j+N8Q/ISetXHwreiR0SYHgoWCQuznAsELsSWcV7Af/7XfNEu5YmkWqzquEjx/LAlLWfLo5KwvlXjj9FOhcQXMqdNLJeoEsvlndtVUtY6yTfwZbLF7mG3UO06iRxP2GsO3rIFDmAqgD4iztcXW8wZASFsllPh9BN4+KhhkKDQ=") }], gamemode: 1, ping: 0, display: None }] } }) -UpdateBlockEntity(UpdateBlockEntity { location: <31,95,-116>, action: 5, nbt: Some(NamedTag("", Compound({"y": Int(95), "x": Int(31), "z": Int(-116), "Item": Int(38), "Data": Int(1), "id": String("FlowerPot")}))) }) -UpdateBlockEntity(UpdateBlockEntity { location: <31,95,-117>, action: 5, nbt: Some(NamedTag("", Compound({"z": Int(-117), "id": String("FlowerPot"), "y": Int(95), "Item": Int(38), "x": Int(31), "Data": Int(0)}))) }) -UpdateBlockEntity(UpdateBlockEntity { location: <30,95,-116>, action: 5, nbt: Some(NamedTag("", Compound({"Data": Int(2), "id": String("FlowerPot"), "Item": Int(38), "z": Int(-116), "y": Int(95), "x": Int(30)}))) }) -UpdateBlockEntity(UpdateBlockEntity { location: <28,92,-119>, action: 3, nbt: Some(NamedTag("", Compound({"Lock": String(""), "x": Int(28), "z": Int(-119), "Secondary": Int(0), "Primary": Int(0), "id": String("Beacon"), "y": Int(92), "Levels": Int(0)}))) }) -UpdateBlockEntity(UpdateBlockEntity { location: <28,95,-116>, action: 3, nbt: Some(NamedTag("", Compound({"Primary": Int(1), "Levels": Int(1), "y": Int(95), "id": String("Beacon"), "Lock": String(""), "z": Int(-116), "Secondary": Int(0), "x": Int(28)}))) }) -SpawnMob(SpawnMob { entity_id: 0, uuid: UUID(8318773244061304819, 12224757210753227758), ty: 90, x: 782, y: 3008, z: -3601, yaw: -126, pitch: -28, head_pitch: 125, velocity_x: 0, velocity_y: -627, velocity_z: 0, metadata: Metadata[ 3=Bool(false), 6=Float(10), 10=Byte(0), 1=Int(300), 11=Bool(false), 5=Byte(0), 9=Int(0), 8=Bool(false), 0=Byte(0), 12=Bool(false), 7=Int(0), 4=Bool(false), 2=String(""), ] }) -EntityMetadata(EntityMetadata { entity_id: 0, metadata: Metadata[ 2=String(""), 10=Byte(0), 4=Bool(false), 5=Byte(0), 8=Bool(false), 9=Int(0), 6=Float(10), 3=Bool(false), 11=Bool(false), 12=Bool(false), 1=Int(300), 7=Int(0), 0=Byte(0), ] }) -StatusRequest(StatusRequest { empty: () }) -EntityHeadLook(EntityHeadLook { entity_id: 0, head_yaw: 125 }) -SpawnMob(SpawnMob { entity_id: 1, uuid: UUID(15638293629224504267, 10167566484811300374), ty: 91, x: 817, y: 3008, z: -3634, yaw: 61, pitch: -28, head_pitch: 101, velocity_x: 0, velocity_y: -627, velocity_z: 0, metadata: Metadata[ 6=Float(8), 7=Int(0), 0=Byte(0), 1=Int(300), 9=Int(0), 3=Bool(false), 8=Bool(false), 4=Bool(false), 10=Byte(0), 11=Bool(false), 2=String("Steven The Sheep"), 12=Byte(0), 5=Byte(0), ] }) -EntityMetadata(EntityMetadata { entity_id: 1, metadata: Metadata[ 8=Bool(false), 9=Int(0), 10=Byte(0), 0=Byte(0), 11=Bool(false), 2=String("Steven The Sheep"), 12=Byte(0), 4=Bool(false), 3=Bool(false), 5=Byte(0), 1=Int(300), 7=Int(0), 6=Float(8), ] }) -StatusRequest(StatusRequest { empty: () }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 101 }) -SpawnPlayer(SpawnPlayer { entity_id: 46, uuid: UUID(5000938010188400878, 10192164627100470560), x: 777, y: 3072, z: -3686, yaw: -26, pitch: 25, metadata: Metadata[ 5=Byte(0), 3=Bool(false), 4=Bool(false), 0=Byte(0), 1=Int(300), 8=Bool(true), 10=Float(0), 7=Int(8171462), 9=Int(0), 13=Byte(1), 6=Float(20), 11=Int(0), 2=String(""), 12=Byte(127), ] }) -EntityMetadata(EntityMetadata { entity_id: 46, metadata: Metadata[ 6=Float(20), 3=Bool(false), 12=Byte(127), 1=Int(300), 0=Byte(0), 5=Byte(0), 7=Int(8171462), 13=Byte(1), 10=Float(0), 11=Int(0), 8=Bool(true), 2=String(""), 9=Int(0), 4=Bool(false), ] }) -StatusRequest(StatusRequest { empty: () }) -EntityEquipment(EntityEquipment { entity_id: 46, slot: 0, item: Some(Stack { id: 165, count: 64, damage: 0, tag: None }) }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -27 }) -StatusRequest(StatusRequest { empty: () }) -MSG: Hello world -TeleportPlayer(TeleportPlayer { x: 28.4464725021921, y: 95, z: -116.30000001192093, yaw: -178.90189, pitch: 37.049976, flags: 0 }) -WorldBorder(WorldBorder { action: 3, old_radius: Some(0), new_radius: Some(0), speed: Some(65), x: Some(-0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063061072628375414), z: Some(-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000630610726283749), portal_boundary: Some(29999984), warning_time: Some(5), warning_blocks: Some(15) }) -TimeUpdate(TimeUpdate { world_age: 7683709, time_of_day: 7872174 }) -StatusRequest(StatusRequest { empty: () }) -WindowItems(WindowItems { id: 0, items: [None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, Some(Stack { id: 50, count: 64, damage: 0, tag: None }), Some(Stack { id: 1, count: 64, damage: 0, tag: None }), Some(Stack { id: 1, count: 64, damage: 0, tag: None }), Some(Stack { id: 12, count: 64, damage: 0, tag: None }), Some(Stack { id: 2, count: 64, damage: 0, tag: None }), Some(Stack { id: 276, count: 64, damage: 0, tag: None }), None, None, None, None] }) -WindowSetSlot(WindowSetSlot { id: 255, property: -1, item: None }) -WindowSetSlot(WindowSetSlot { id: 0, property: 36, item: Some(Stack { id: 50, count: 64, damage: 0, tag: None }) }) -WindowSetSlot(WindowSetSlot { id: 0, property: 37, item: Some(Stack { id: 1, count: 64, damage: 0, tag: None }) }) -WindowSetSlot(WindowSetSlot { id: 0, property: 38, item: Some(Stack { id: 1, count: 64, damage: 0, tag: None }) }) -WindowSetSlot(WindowSetSlot { id: 0, property: 39, item: Some(Stack { id: 12, count: 64, damage: 0, tag: None }) }) -WindowSetSlot(WindowSetSlot { id: 0, property: 40, item: Some(Stack { id: 2, count: 64, damage: 0, tag: None }) }) -WindowSetSlot(WindowSetSlot { id: 0, property: 41, item: Some(Stack { id: 276, count: 64, damage: 0, tag: None }) }) -EntityMetadata(EntityMetadata { entity_id: 47, metadata: Metadata[ 1=Int(300), 8=Bool(false), 9=Int(0), 7=Int(0), 10=Float(0), 3=Bool(false), 5=Byte(0), 12=Byte(0), 0=Byte(0), 11=Int(0), 13=Byte(1), 4=Bool(false), 6=Float(20), 2=String(""), ] }) -StatusRequest(StatusRequest { empty: () }) -MSG: Welcome, Think! -MSG: Type /help for a list of commands. -MSG: Type /list to see who else is online. -MSG: Players online: 2 - World time: 6:10 AM -MSG: You have no new mail. -TimeUpdate(TimeUpdate { world_age: 7683712, time_of_day: 7872177 }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -EntityLook(EntityLook { entity_id: 0, yaw: -126, pitch: 0, on_ground: true }) -EntityMove(EntityMove { entity_id: 46, delta_x: 0, delta_y: 0, delta_z: 0, on_ground: true }) -EntityLook(EntityLook { entity_id: 1, yaw: 61, pitch: 0, on_ground: true }) -TimeUpdate(TimeUpdate { world_age: 7683732, time_of_day: 7872197 }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -EntityMove(EntityMove { entity_id: 0, delta_x: 0, delta_y: 0, delta_z: 0, on_ground: true }) -EntityMove(EntityMove { entity_id: 1, delta_x: 0, delta_y: 0, delta_z: 0, on_ground: true }) -KeepAliveClientbound(KeepAliveClientbound { id: 37196518 }) -TimeUpdate(TimeUpdate { world_age: 7683752, time_of_day: 7872217 }) -BlockChange(BlockChange { location: <-9,85,-235>, block_id: 624 }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -EntityLook(EntityLook { entity_id: 0, yaw: -126, pitch: -29, on_ground: true }) -StatusRequest(StatusRequest { empty: () }) -StatusRequest(StatusRequest { empty: () }) -StatusRequest(StatusRequest { empty: () }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 79 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 58 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 37 }) -TimeUpdate(TimeUpdate { world_age: 7683772, time_of_day: 7872237 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 23 }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -EntityMove(EntityMove { entity_id: 46, delta_x: 0, delta_y: 0, delta_z: 0, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 39 }) -KeepAliveClientbound(KeepAliveClientbound { id: 37198568 }) -TimeUpdate(TimeUpdate { world_age: 7683792, time_of_day: 7872257 }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -EntityMove(EntityMove { entity_id: 0, delta_x: 0, delta_y: 0, delta_z: 0, on_ground: true }) -EntityMove(EntityMove { entity_id: 1, delta_x: 0, delta_y: 0, delta_z: 0, on_ground: true }) -SoundEffect(SoundEffect { name: "mob.sheep.say", x: 204, y: 752, z: -908, volume: 1, pitch: 58 }) -TimeUpdate(TimeUpdate { world_age: 7683812, time_of_day: 7872277 }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -EntityLook(EntityLook { entity_id: 0, yaw: -126, pitch: 0, on_ground: true }) -KeepAliveClientbound(KeepAliveClientbound { id: 37200618 }) -TimeUpdate(TimeUpdate { world_age: 7683832, time_of_day: 7872297 }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -EntityMove(EntityMove { entity_id: 46, delta_x: 0, delta_y: 0, delta_z: 0, on_ground: true }) -StatusRequest(StatusRequest { empty: () }) -StatusRequest(StatusRequest { empty: () }) -StatusRequest(StatusRequest { empty: () }) -EntityLook(EntityLook { entity_id: 0, yaw: -126, pitch: -29, on_ground: true }) -TimeUpdate(TimeUpdate { world_age: 7683852, time_of_day: 7872317 }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -EntityMove(EntityMove { entity_id: 0, delta_x: 0, delta_y: 0, delta_z: 0, on_ground: true }) -EntityMove(EntityMove { entity_id: 1, delta_x: 0, delta_y: 0, delta_z: 0, on_ground: true }) -EntityLook(EntityLook { entity_id: 46, yaw: -46, pitch: 17, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -35 }) -EntityLook(EntityLook { entity_id: 46, yaw: -58, pitch: 9, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -53 }) -EntityLook(EntityLook { entity_id: 46, yaw: -71, pitch: 5, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -67 }) -EntityLook(EntityLook { entity_id: 46, yaw: -90, pitch: 5, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -77 }) -EntityLookAndMove(EntityLookAndMove { entity_id: 46, delta_x: 0, delta_y: 0, delta_z: -10, yaw: -95, pitch: 4, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -95 }) -SoundEffect(SoundEffect { name: "mob.pig.say", x: 195, y: 752, z: -900, volume: 1, pitch: 57 }) -EntityMove(EntityMove { entity_id: 46, delta_x: 7, delta_y: 0, delta_z: -9, on_ground: true }) -SoundEffect(SoundEffect { name: "step.grass", x: 197, y: 768, z: -927, volume: 0.15, pitch: 63 }) -TimeUpdate(TimeUpdate { world_age: 7683872, time_of_day: 7872337 }) -KeepAliveClientbound(KeepAliveClientbound { id: 37202669 }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -EntityLookAndMove(EntityLookAndMove { entity_id: 46, delta_x: 12, delta_y: 0, delta_z: -8, yaw: -85, pitch: 8, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -89 }) -EntityHeadLook(EntityHeadLook { entity_id: 0, head_yaw: -122 }) -EntityLookAndMove(EntityLookAndMove { entity_id: 46, delta_x: 5, delta_y: 0, delta_z: -4, yaw: -78, pitch: 11, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -83 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 60 }) -EntityLook(EntityLook { entity_id: 46, yaw: -52, pitch: 18, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -66 }) -EntityLookAndMove(EntityLookAndMove { entity_id: 46, delta_x: -4, delta_y: 0, delta_z: 14, yaw: -46, pitch: 19, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -47 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 82 }) -EntityMove(EntityMove { entity_id: 46, delta_x: -2, delta_y: 0, delta_z: 6, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 103 }) -EntityLook(EntityLook { entity_id: 46, yaw: -39, pitch: 22, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -42 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 124 }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -37 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: -115 }) -EntityLook(EntityLook { entity_id: 46, yaw: -32, pitch: 23, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -32 }) -TimeUpdate(TimeUpdate { world_age: 7683892, time_of_day: 7872357 }) -EntityLook(EntityLook { entity_id: 0, yaw: -126, pitch: 0, on_ground: true }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -EntityMove(EntityMove { entity_id: 46, delta_x: -1, delta_y: 0, delta_z: 2, on_ground: true }) -EntityLook(EntityLook { entity_id: 46, yaw: 13, pitch: 18, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: -20 }) -EntityLook(EntityLook { entity_id: 46, yaw: 29, pitch: 19, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: 29 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 120 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 109 }) -TimeUpdate(TimeUpdate { world_age: 7683912, time_of_day: 7872377 }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -EntityMove(EntityMove { entity_id: 0, delta_x: 0, delta_y: 0, delta_z: 0, on_ground: true }) -EntityMove(EntityMove { entity_id: 1, delta_x: 0, delta_y: 0, delta_z: 0, on_ground: true }) -KeepAliveClientbound(KeepAliveClientbound { id: 37204718 }) -StatusRequest(StatusRequest { empty: () }) -StatusRequest(StatusRequest { empty: () }) -StatusRequest(StatusRequest { empty: () }) -TimeUpdate(TimeUpdate { world_age: 7683932, time_of_day: 7872397 }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 88 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 67 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 59 }) -TimeUpdate(TimeUpdate { world_age: 7683952, time_of_day: 7872417 }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -KeepAliveClientbound(KeepAliveClientbound { id: 37206768 }) -SoundEffect(SoundEffect { name: "mob.sheep.say", x: 204, y: 752, z: -908, volume: 1, pitch: 66 }) -EntityMove(EntityMove { entity_id: 46, delta_x: 0, delta_y: 0, delta_z: 0, on_ground: true }) -EntityVelocity(EntityVelocity { entity_id: 0, velocity_x: -653, velocity_y: -627, velocity_z: 502 }) -EntityLook(EntityLook { entity_id: 0, yaw: -105, pitch: 0, on_ground: true }) -EntityVelocity(EntityVelocity { entity_id: 1, velocity_x: 399, velocity_y: -627, velocity_z: -363 }) -EntityVelocity(EntityVelocity { entity_id: 0, velocity_x: -597, velocity_y: -627, velocity_z: 879 }) -EntityLook(EntityLook { entity_id: 0, yaw: -63, pitch: 0, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 0, head_yaw: -109 }) -BlockChange(BlockChange { location: <-72,10,-189>, block_id: 624 }) -EntityVelocity(EntityVelocity { entity_id: 0, velocity_x: -647, velocity_y: -627, velocity_z: 607 }) -EntityLook(EntityLook { entity_id: 0, yaw: -97, pitch: 0, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 0, head_yaw: -95 }) -EntityVelocity(EntityVelocity { entity_id: 0, velocity_x: -166, velocity_y: -627, velocity_z: 140 }) -EntityVelocity(EntityVelocity { entity_id: 1, velocity_x: 0, velocity_y: -627, velocity_z: 0 }) -EntityVelocity(EntityVelocity { entity_id: 0, velocity_x: -695, velocity_y: -627, velocity_z: 686 }) -EntityVelocity(EntityVelocity { entity_id: 1, velocity_x: 396, velocity_y: -627, velocity_z: -399 }) -EntityVelocity(EntityVelocity { entity_id: 0, velocity_x: -141, velocity_y: -627, velocity_z: 0 }) -EntityVelocity(EntityVelocity { entity_id: 1, velocity_x: 0, velocity_y: -627, velocity_z: 0 }) -EntityVelocity(EntityVelocity { entity_id: 0, velocity_x: -689, velocity_y: -627, velocity_z: 604 }) -EntityVelocity(EntityVelocity { entity_id: 1, velocity_x: 400, velocity_y: -627, velocity_z: -397 }) -TimeUpdate(TimeUpdate { world_age: 7683972, time_of_day: 7872437 }) -BlockAction(BlockAction { location: <26,95,-117>, byte1: 1, byte2: 0, block_type: 130 }) -EntityVelocity(EntityVelocity { entity_id: 0, velocity_x: 0, velocity_y: -627, velocity_z: 141 }) -EntityMove(EntityMove { entity_id: 0, delta_x: 0, delta_y: 0, delta_z: 2, on_ground: true }) -EntityVelocity(EntityVelocity { entity_id: 1, velocity_x: 0, velocity_y: -627, velocity_z: 0 }) -EntityMove(EntityMove { entity_id: 1, delta_x: 0, delta_y: 0, delta_z: 0, on_ground: true }) -EntityVelocity(EntityVelocity { entity_id: 0, velocity_x: -604, velocity_y: -627, velocity_z: 689 }) -EntityVelocity(EntityVelocity { entity_id: 1, velocity_x: 397, velocity_y: -627, velocity_z: -400 }) -SoundEffect(SoundEffect { name: "mob.pig.step", x: 195, y: 752, z: -899, volume: 0.15, pitch: 63 }) -EntityVelocity(EntityVelocity { entity_id: 0, velocity_x: -141, velocity_y: -627, velocity_z: 0 }) -EntityVelocity(EntityVelocity { entity_id: 1, velocity_x: 0, velocity_y: -627, velocity_z: 0 }) -EntityLook(EntityLook { entity_id: 46, yaw: 26, pitch: 27, on_ground: true }) -EntityVelocity(EntityVelocity { entity_id: 0, velocity_x: -689, velocity_y: -627, velocity_z: 604 }) -EntityVelocity(EntityVelocity { entity_id: 1, velocity_x: 399, velocity_y: -627, velocity_z: -397 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 51 }) -EntityLook(EntityLook { entity_id: 46, yaw: 21, pitch: 31, on_ground: true }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: 24 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 37 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 23 }) -EntityVelocity(EntityVelocity { entity_id: 0, velocity_x: 0, velocity_y: -627, velocity_z: 141 }) -EntityVelocity(EntityVelocity { entity_id: 1, velocity_x: 0, velocity_y: -627, velocity_z: 0 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 16 }) -EntityHeadLook(EntityHeadLook { entity_id: 46, head_yaw: 20 }) -EntityVelocity(EntityVelocity { entity_id: 0, velocity_x: -604, velocity_y: -627, velocity_z: 689 }) -EntityVelocity(EntityVelocity { entity_id: 1, velocity_x: 397, velocity_y: -627, velocity_z: -400 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: 9 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: -5 }) -EntityHeadLook(EntityHeadLook { entity_id: 1, head_yaw: -20 }) diff --git a/src/bit/map.rs b/src/bit/map.rs index 3fe501c..8d289c0 100644 --- a/src/bit/map.rs +++ b/src/bit/map.rs @@ -1,3 +1,16 @@ +// Copyright 2015 Matthew Collins +// +// 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. pub struct Map { bits: Vec, diff --git a/src/bit/mod.rs b/src/bit/mod.rs index 7ce0357..bc345c6 100644 --- a/src/bit/mod.rs +++ b/src/bit/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2015 Matthew Collins +// +// 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. + pub mod set; pub mod map; diff --git a/src/bit/set.rs b/src/bit/set.rs index 3ed6f72..995ce69 100644 --- a/src/bit/set.rs +++ b/src/bit/set.rs @@ -1,3 +1,16 @@ +// Copyright 2015 Matthew Collins +// +// 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. pub struct Set { data : Vec diff --git a/src/format.rs b/src/format.rs index 8cef4af..d68d7a6 100644 --- a/src/format.rs +++ b/src/format.rs @@ -1,3 +1,16 @@ +// Copyright 2015 Matthew Collins +// +// 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. use serde_json; use std::fmt; diff --git a/src/gl/mod.rs b/src/gl/mod.rs index e5e9964..e8c5161 100644 --- a/src/gl/mod.rs +++ b/src/gl/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2015 Matthew Collins +// +// 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. + extern crate steven_gl as gl; extern crate glfw; diff --git a/src/item.rs b/src/item.rs index 2cdd046..5f143ad 100644 --- a/src/item.rs +++ b/src/item.rs @@ -1,3 +1,16 @@ +// Copyright 2015 Matthew Collins +// +// 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. use nbt; use protocol::{Serializable}; diff --git a/src/main.rs b/src/main.rs index 6ee8355..8bee55a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,17 @@ +// Copyright 2015 Matthew Collins +// +// 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. + pub mod bit; pub mod protocol; pub mod format; diff --git a/src/nbt/mod.rs b/src/nbt/mod.rs index 9bfd5f7..4100448 100644 --- a/src/nbt/mod.rs +++ b/src/nbt/mod.rs @@ -1,3 +1,16 @@ +// Copyright 2015 Matthew Collins +// +// 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. use std::collections::HashMap; use std::io; diff --git a/src/protocol/mod.rs b/src/protocol/mod.rs index 45d74ef..1aacef2 100644 --- a/src/protocol/mod.rs +++ b/src/protocol/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2015 Matthew Collins +// +// 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. + #![allow(dead_code)] use openssl; diff --git a/src/protocol/mojang.rs b/src/protocol/mojang.rs index c692e30..8798f85 100644 --- a/src/protocol/mojang.rs +++ b/src/protocol/mojang.rs @@ -1,4 +1,16 @@ - +// Copyright 2015 Matthew Collins +// +// 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. use openssl; use serde_json; diff --git a/src/protocol/packet.rs b/src/protocol/packet.rs index f201ba6..fad09f5 100644 --- a/src/protocol/packet.rs +++ b/src/protocol/packet.rs @@ -1,3 +1,17 @@ +// Copyright 2015 Matthew Collins +// +// 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. + use format; state_packets!( diff --git a/src/render/atlas.rs b/src/render/atlas.rs index de2b461..aed8096 100644 --- a/src/render/atlas.rs +++ b/src/render/atlas.rs @@ -1,3 +1,16 @@ +// Copyright 2015 Matthew Collins +// +// 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. pub struct Atlas { width: usize, diff --git a/src/render/glsl.rs b/src/render/glsl.rs index 1323e41..c7d6e90 100644 --- a/src/render/glsl.rs +++ b/src/render/glsl.rs @@ -1,3 +1,16 @@ +// Copyright 2015 Matthew Collins +// +// 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. use std::collections::HashMap; diff --git a/src/render/mod.rs b/src/render/mod.rs index 6b06b2f..337e3d3 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -1,4 +1,16 @@ - +// Copyright 2015 Matthew Collins +// +// 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. mod atlas; pub mod glsl; diff --git a/src/render/shaders.rs b/src/render/shaders.rs index de6d754..3576aae 100644 --- a/src/render/shaders.rs +++ b/src/render/shaders.rs @@ -1,3 +1,16 @@ +// Copyright 2015 Matthew Collins +// +// 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. use render::glsl; diff --git a/src/render/ui.rs b/src/render/ui.rs index a02e9d4..7de95f1 100644 --- a/src/render/ui.rs +++ b/src/render/ui.rs @@ -1,3 +1,16 @@ +// Copyright 2015 Matthew Collins +// +// 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. use std::sync::{Arc, RwLock}; use std::io::Write; diff --git a/src/resources.rs b/src/resources.rs index cc6cd4f..d7a9887 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -1,3 +1,17 @@ +// Copyright 2015 Matthew Collins +// +// 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. + extern crate hyper; extern crate zip; diff --git a/src/type/mod.rs b/src/type/mod.rs deleted file mode 100644 index 082cb1a..0000000 --- a/src/type/mod.rs +++ /dev/null @@ -1,6 +0,0 @@ - -mod blockpos; -pub use self::blockpos::*; - -mod metadata; -pub use self::metadata::*; diff --git a/src/types/blockpos.rs b/src/types/blockpos.rs index 5f71af0..7e36c55 100644 --- a/src/types/blockpos.rs +++ b/src/types/blockpos.rs @@ -1,3 +1,17 @@ +// Copyright 2015 Matthew Collins +// +// 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. + extern crate byteorder; use std::fmt; diff --git a/src/types/metadata.rs b/src/types/metadata.rs index 7ad261e..f4281b6 100644 --- a/src/types/metadata.rs +++ b/src/types/metadata.rs @@ -1,3 +1,16 @@ +// Copyright 2015 Matthew Collins +// +// 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. use std::collections::HashMap; use std::marker::PhantomData; diff --git a/src/types/mod.rs b/src/types/mod.rs index 082cb1a..681b872 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -1,3 +1,16 @@ +// Copyright 2015 Matthew Collins +// +// 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. mod blockpos; pub use self::blockpos::*; diff --git a/src/ui/mod.rs b/src/ui/mod.rs new file mode 100644 index 0000000..241c8f9 --- /dev/null +++ b/src/ui/mod.rs @@ -0,0 +1,13 @@ +// Copyright 2015 Matthew Collins +// +// 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. \ No newline at end of file