Skip to content

Commit

Permalink
Moving to toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
MaXFeeD committed Nov 8, 2024
1 parent d1edf5e commit a941faa
Show file tree
Hide file tree
Showing 16 changed files with 89 additions and 37 deletions.
9 changes: 9 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/1.8" />
<classpathentry kind="lib" path="../toolchain/classpath/android.jar" />
<classpathentry kind="lib" path="../toolchain/classpath/horizon-1.2.jar" />
<classpathentry kind="lib" path="../toolchain/classpath/innercore-test.jar" />
<classpathentry kind="lib" path="classpath/kernelex-2.1.jar" />
<classpathentry kind="src" path="java/signedit/src" />
</classpath>
3 changes: 0 additions & 3 deletions .dex/sources.json

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
output
tsconfig.json
*.log
*.icmod
23 changes: 23 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>SignEdit</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<filteredResources>
<filter>
<id>1727145722801</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# SignEdit — Inner Core

![Version](https://img.shields.io/badge/dynamic/json?label=version&query=version&url=https://raw.githubusercontent.com/nernar/signedit/master/mod.info&color=D19121&logoColor=white&logo=clockify&style=flat-square)
![Lines of code](https://img.shields.io/tokei/lines/github/nernar/signedit?color=2727E3&logoColor=white&logo=sourcegraph&style=flat-square)
![Version](https://img.shields.io/badge/dynamic/json?label=version&query=version&url=https%3A%2F%2Fraw.githubusercontent.com%2Fnernar%2Fsignedit%2Fmaster%2Fmod.info&color=D19121&logoColor=white&logo=gitlfs&style=flat-square)
[![Downloads](https://img.shields.io/badge/dynamic/json?label=downloads&query=downloads&url=https%3A%2F%2Ficmods.mineprogramming.org%2Fapi%2Fdescription%3Fid%3D857&color=2727E3&logoColor=white&logo=opsgenie&style=flat-square)](https://icmods.mineprogramming.org/mod?id=857)
![License](https://img.shields.io/github/license/nernar/signedit?color=D22128&logoColor=white&logo=apache&style=flat-square)
[![Telegram](https://img.shields.io/badge/channel-gray?logo=telegram&style=flat-square)](https://t.me/ntInsideChat)

This project maintained from [CurseForge](https://www.curseforge.com/minecraft/mc-mods/signedit). All rights belong to mod developers on Forge and are based solely on ideas presented in this mod.

## Introduction
This lightweight Inner Core mod allows players to edit placed signs simply by right clicking or tapping them while holding a sign in their hand.
File renamed without changes.
File renamed without changes.
20 changes: 0 additions & 20 deletions build.config

This file was deleted.

File renamed without changes.
Binary file removed java/classes.dex
Binary file not shown.
1 change: 0 additions & 1 deletion java/manifest

This file was deleted.

3 changes: 3 additions & 0 deletions java/signedit/manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"source-dirs": ["src"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@
import vsdum.kex.natives.GlobalContext;
import vsdum.kex.natives.LocalPlayer;

/**
* Copyright 2022-2024 Nernar (github.com/nernar)
*
* 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.
*/
public class SignEdit {
public static final int SIGN_TILE_ENTITY_TYPE = 4;
public static final String[] VANILLA_SIGN_IDS = new String[] { "oak_sign", "birch_sign", "spruce_sign",
Expand Down Expand Up @@ -151,4 +166,4 @@ public static void registerSign(String namedId) {
public static void setConfig(Config config) {
signRequiredToEdit = config.getBool("sign_required_to_edit");
}
}
}
3 changes: 2 additions & 1 deletion launcher.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
ConfigureMultiplayer({
isClientOnly: true
});
Launch();

Callback.addCallback("API:KernelExtension", function() {
Packages.io.nernar.innercore.signedit.SignEdit.setConfig(__config__);
}, 0);
});
30 changes: 30 additions & 0 deletions make.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://raw.githubusercontent.com/zheka2304/innercore-mod-toolchain/develop/toolchain/schemas/make.schema.json",
"info": {
"name": "SignEdit",
"version": "1.1.1",
"author": "Nernar",
"description": "Click on sign to edit."
},
"api": "Preloader",
"resources": [],
"sources": [
{
"type": "launcher",
"language": "javascript",
"source": "launcher.js"
}
],
"compile": [
{
"source": "java/signedit",
"type": "java"
}
],
"additional": [
{
"source": "assets/*",
"targetDir": "."
}
]
}
6 changes: 0 additions & 6 deletions mod.info

This file was deleted.

0 comments on commit a941faa

Please sign in to comment.