Skip to content

Commit

Permalink
Port to 1.19.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed May 18, 2023
1 parent 183eb36 commit fb374d8
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 30 deletions.
24 changes: 12 additions & 12 deletions README.md
Expand Up @@ -3,8 +3,8 @@

                   
[![GitHub issues](https://img.shields.io/github/issues/jaredlll08/searchables?style=flat-square)](https://github.com/jaredlll08/searchables/issues)
[![GitHub license](https://img.shields.io/github/license/jaredlll08/searchables?color=0690ff&style=flat-square)](https://github.com/jaredlll08/searchables/blob/1.19.4/LICENSE)
[![Jenkins](https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fci.blamejared.com%2Fjob%2FJared%2Fjob%2FMinecraft%2520Mods%2Fjob%2FSearchables%2Fjob%2F1.19.4%2F&style=flat-square)](https://ci.blamejared.com/job/Jared/job/Minecraft%20Mods/job/Searchables/job/1.19.4/)
[![GitHub license](https://img.shields.io/github/license/jaredlll08/searchables?color=0690ff&style=flat-square)](https://github.com/jaredlll08/searchables/blob/1.19.3/LICENSE)
[![Jenkins](https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fci.blamejared.com%2Fjob%2FJared%2Fjob%2FMinecraft%2520Mods%2Fjob%2FSearchables%2Fjob%2F1.19.3%2F&style=flat-square)](https://ci.blamejared.com/job/Jared/job/Minecraft%20Mods/job/Searchables/job/1.19.3/)
[![Discord](https://img.shields.io/badge/Discord-%237289DA?style=flat-square&logo=Discord&logoColor=white)](https://discord.blamejared.com/)
[![](http://cf.way2muchnoise.eu/searchables.svg?badge_style=flat)](https://minecraft.curseforge.com/projects/searchables)

Expand Down Expand Up @@ -108,7 +108,7 @@ If you're running into a bug or have a feature request, please don't be afraid t

## License

Distributed under the MIT License. See the [LICENSE](https://github.com/jaredlll08/searchables/blob/1.19.4/LICENSE) file for more information.
Distributed under the MIT License. See the [LICENSE](https://github.com/jaredlll08/searchables/blob/1.19.3/LICENSE) file for more information.

## Setup

Expand Down Expand Up @@ -144,35 +144,35 @@ repositories {

Then, depending on what modloader you are using, you can use the following snippets, just replace `[VERSION]` with the latest version for each artifact.

### Fabric [![Maven](https://img.shields.io/maven-metadata/v?color=C71A36&label=Latest%20version&logo=Latest%20version&metadataUrl=https%3A%2F%2Fmaven.blamejared.com%2Fcom%2Fblamejared%2Fsearchables%2FSearchables-fabric-1.19.4%2Fmaven-metadata.xml&style=flat-square)](https://maven.blamejared.com/com/blamejared/searchables/Searchables-fabric-1.19.4/)
### Fabric [![Maven](https://img.shields.io/maven-metadata/v?color=C71A36&label=Latest%20version&logo=Latest%20version&metadataUrl=https%3A%2F%2Fmaven.blamejared.com%2Fcom%2Fblamejared%2Fsearchables%2FSearchables-fabric-1.19.3%2Fmaven-metadata.xml&style=flat-square)](https://maven.blamejared.com/com/blamejared/searchables/Searchables-fabric-1.19.3/)

```kotlin
dependencies {
modImplementation("com.blamejared.searchables:Searchables-fabric-1.19.4:[VERSION]")
modImplementation("com.blamejared.searchables:Searchables-fabric-1.19.3:[VERSION]")
// Example:
// modImplementation("com.blamejared.searchables:Searchables-fabric-1.19.4:1.0.0")
// modImplementation("com.blamejared.searchables:Searchables-fabric-1.19.3:1.0.0")
}
```

### Forge [![Maven](https://img.shields.io/maven-metadata/v?color=C71A36&label=Latest%20version&logo=Latest%20version&metadataUrl=https%3A%2F%2Fmaven.blamejared.com%2Fcom%2Fblamejared%2Fsearchables%2FSearchables-forge-1.19.4%2Fmaven-metadata.xml&style=flat-square)](https://maven.blamejared.com/com/blamejared/searchables/Searchables-forge-1.19.4/)
### Forge [![Maven](https://img.shields.io/maven-metadata/v?color=C71A36&label=Latest%20version&logo=Latest%20version&metadataUrl=https%3A%2F%2Fmaven.blamejared.com%2Fcom%2Fblamejared%2Fsearchables%2FSearchables-forge-1.19.3%2Fmaven-metadata.xml&style=flat-square)](https://maven.blamejared.com/com/blamejared/searchables/Searchables-forge-1.19.3/)


```kotlin
dependencies {
compileOnly(fg.deobf("com.blamejared.searchables:Searchables-forge-1.19.4:[VERSION]"))
compileOnly(fg.deobf("com.blamejared.searchables:Searchables-forge-1.19.3:[VERSION]"))
// Example:
// implementation(fg.deobf("com.blamejared.searchables:Searchables-forge-1.19.4:1.0.0"))
// implementation(fg.deobf("com.blamejared.searchables:Searchables-forge-1.19.3:1.0.0"))
}
```

### Common [![Maven](https://img.shields.io/maven-metadata/v?color=C71A36&label=Latest%20version&logo=Latest%20version&metadataUrl=https%3A%2F%2Fmaven.blamejared.com%2Fcom%2Fblamejared%2Fsearchables%2FSearchables-common-1.19.4%2Fmaven-metadata.xml&style=flat-square)](https://maven.blamejared.com/com/blamejared/searchables/Searchables-common-1.19.4/)
### Common [![Maven](https://img.shields.io/maven-metadata/v?color=C71A36&label=Latest%20version&logo=Latest%20version&metadataUrl=https%3A%2F%2Fmaven.blamejared.com%2Fcom%2Fblamejared%2Fsearchables%2FSearchables-common-1.19.3%2Fmaven-metadata.xml&style=flat-square)](https://maven.blamejared.com/com/blamejared/searchables/Searchables-common-1.19.3/)

If you are in a multi-modloader environment (Such as [MultiLoader](https://github.com/jaredlll08/MultiLoader-Template)), you can bring the Common artifact (code that does not depend on any specific mod loader but rather just the vanilla game) into your Common project like so:

```kotlin
dependencies {
compileOnly("com.blamejared.searchables:Searchables-common-1.19.4:[VERSION]")
compileOnly("com.blamejared.searchables:Searchables-common-1.19.3:[VERSION]")
// Example:
// compileOnly("com.blamejared.searchables:Searchables-common-1.19.4:1.0.0")
// compileOnly("com.blamejared.searchables:Searchables-common-1.19.3:1.0.0")
}
```
Expand Up @@ -129,7 +129,6 @@ class DefaultPlugin : Plugin<Project> {

private fun applyDependencies(project: Project) {
val implementation = project.configurations.getByName("implementation")
val compileOnly = project.configurations.getByName("compileOnly")
val annotationProcessor = project.configurations.getByName("annotationProcessor")

implementation.dependencies.add(project.dependencies.create("com.google.code.findbugs:jsr305:3.0.2"))
Expand Down
Expand Up @@ -19,7 +19,6 @@ class LoaderPlugin : Plugin<Project> {
override fun apply(project: Project): Unit = project.run {

applyJavaPlugin(project)
applyDependencies(project)
applyModTemplate(project)
}

Expand Down Expand Up @@ -52,9 +51,6 @@ class LoaderPlugin : Plugin<Project> {
}
}

private fun applyDependencies(project: Project) {
}

private fun applyModTemplate(project: Project) {

project.plugins.apply(ModTemplatePlugin::class.java)
Expand Down
Expand Up @@ -3,8 +3,8 @@ package com.blamejared.searchables.gradle
object Versions {
const val MOD = "1.0"
const val JAVA = "17"
const val MINECRAFT = "1.19.4"
const val FORGE = "45.0.4"
const val FABRIC = "0.76.0+1.19.4"
const val FABRIC_LOADER = "0.14.17"
const val MINECRAFT = "1.19.3"
const val FORGE = "44.1.23"
const val FABRIC = "0.76.1+1.19.3"
const val FABRIC_LOADER = "0.14.19"
}
Expand Up @@ -146,7 +146,7 @@ public void insertSuggestion() {
}

@Override
public void renderWidget(PoseStack pose, int mx, int my, float partial) {
public void renderButton(PoseStack pose, int mx, int my, float partial) {

if(!editBox.isFocused()) {
return;
Expand Down
2 changes: 1 addition & 1 deletion forge/src/main/resources/META-INF/mods.toml
Expand Up @@ -5,7 +5,7 @@ license = "MIT"

[[mods]]
modId = "searchables"
updateJSONURL = "https://updates.blamejared.com/get?n=searchables&gv=1.19.4"
updateJSONURL = "https://updates.blamejared.com/get?n=searchables&gv=1.19.3"
version = "${file.jarVersion}"
displayName = "Searchables"
displayURL = "https://minecraft.curseforge.com/projects/searchables"
Expand Down
7 changes: 0 additions & 7 deletions settings.gradle.kts
Expand Up @@ -9,13 +9,6 @@ pluginManagement {
name = "Sponge Snapshots"
}
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "org.spongepowered.mixin") {
useModule("org.spongepowered:mixingradle:${requested.version}")
}
}
}
}
rootProject.name = "searchables"
include("common")
Expand Down

0 comments on commit fb374d8

Please sign in to comment.