Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
hashalite authored May 18, 2021
0 parents commit e34c8bb
Show file tree
Hide file tree
Showing 37 changed files with 1,632 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# gradle

.gradle/
build/
out/
classes/

# eclipse

*.launch

# idea

.idea/
*.iml
*.ipr
*.iws

# vscode

.settings/
.vscode/
bin/
.classpath
.project

# macos

*.DS_Store

# fabric

run/
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Meteor Addon Template

A template to allow easy usage of the Meteor Addon API.

### How to use:
- Clone this project
- Use the template and API to create new modules/commands
- Run the mod with Meteor.

### Documentation
Check the [wiki](https://github.com/MeteorDevelopment/meteor-addon-template/wiki).
65 changes: 65 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
plugins {
id 'fabric-loom' version '0.6-SNAPSHOT'
id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group

repositories {
maven { url "https://jitpack.io" }
}

dependencies {
//Minecraft
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

//Meteor
modImplementation "com.github.MeteorDevelopment:meteor-client:master-SNAPSHOT"
}

processResources {
inputs.property "version", project.version

filesMatching("fabric.mod.json") {
expand "version": project.version
}
}

tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"

def targetVersion = 8
if (JavaVersion.current().isJava9Compatible()) {
it.options.release = targetVersion
}
}

java {
withSourcesJar()
}

jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}"}
}
}

publishing {
publications {
mavenJava(MavenPublication) {
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions build/classes/java/main/packetfly-refmap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"mappings": {
"net/xolt/addons/packetfly/mixins/ClientPlayerEntityMixin": {
"pushOutOfBlocks": "Lnet/minecraft/class_746;method_30673(DD)V"
},
"net/xolt/addons/packetfly/mixins/EntityMixin": {
"pushAwayFrom": "Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)V"
}
},
"data": {
"named:intermediary": {
"net/xolt/addons/packetfly/mixins/ClientPlayerEntityMixin": {
"pushOutOfBlocks": "Lnet/minecraft/class_746;method_30673(DD)V"
},
"net/xolt/addons/packetfly/mixins/EntityMixin": {
"pushAwayFrom": "Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)V"
}
}
}
}
Binary file added build/libs/packetfly-1.0-dev.jar
Binary file not shown.
Binary file added build/libs/packetfly-1.0-sources-dev.jar
Binary file not shown.
Binary file added build/libs/packetfly-1.0-sources.jar
Binary file not shown.
Binary file added build/libs/packetfly-1.0.jar
Binary file not shown.
1 change: 1 addition & 0 deletions build/loom-cache/mixin-map-1.16.5-1.16.5+build.8-v2.0.tiny
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1 named intermediary
Binary file added build/resources/main/assets/packetfly/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions build/resources/main/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"schemaVersion": 1,
"id": "packetfly-addon",
"version": "1.0",

"name": "Meteor Packet Fly Addon",
"description": "A Packet Fly module for Meteor Client",
"authors": [
"xolt"
],
"contact": {
},

"license": "GPL-3.0",
"icon": "assets/packetfly/icon.png",

"environment": "client",
"entrypoints": {
"meteor": [
"net.xolt.addons.packetfly.PacketFlyAddon"
]
},
"mixins": [
"packetfly.mixins.json"
],
"depends": {
"fabricloader": ">=0.7.4",
"fabric": "*",
"minecraft": "1.16.x",
"meteor-client": "*"
}
}
12 changes: 12 additions & 0 deletions build/resources/main/packetfly.mixins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"required": true,
"package": "net.xolt.addons.packetfly.mixins",
"compatibilityLevel": "JAVA_8",
"client": [
"ClientPlayerEntityMixin",
"EntityMixin"
],
"injectors": {
"defaultRequire": 1
}
}
11 changes: 11 additions & 0 deletions build/tmp/compileJava/source-classes-mapping.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
net/xolt/addons/packetfly/modules/PacketFly.java
net.xolt.addons.packetfly.modules.PacketFly
net.xolt.addons.packetfly.modules.PacketFly$IDtime
net/xolt/addons/packetfly/utils/world/Timer.java
net.xolt.addons.packetfly.utils.world.Timer
net/xolt/addons/packetfly/PacketFlyAddon.java
net.xolt.addons.packetfly.PacketFlyAddon
net/xolt/addons/packetfly/mixins/ClientPlayerEntityMixin.java
net.xolt.addons.packetfly.mixins.ClientPlayerEntityMixin
net/xolt/addons/packetfly/mixins/EntityMixin.java
net.xolt.addons.packetfly.mixins.EntityMixin
2 changes: 2 additions & 0 deletions build/tmp/jar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

2 changes: 2 additions & 0 deletions build/tmp/remapJar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

2 changes: 2 additions & 0 deletions build/tmp/sourcesJar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

17 changes: 17 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx2G

# Minecraft
minecraft_version=1.16.5

# Fabric Properties
fabric_version=0.34.0+1.16
yarn_mappings=1.16.5+build.8
loader_version=0.11.3

# Mod Properties
mod_version = 1.0
maven_group = net.xolt.addons
archives_base_name = packetfly


Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit e34c8bb

Please sign in to comment.