mirror of
https://github.com/LegacyModdingMC/ChunkAPI.git
synced 2026-11-17 19:05:17 +00:00
Initial Commit
This commit is contained in:
24 files changed
+2437
No files matched your search
@@ -0,0 +1,11 @@
|
||||
package com.falsepattern.chunk;
|
||||
|
||||
import cpw.mods.fml.common.Mod;
|
||||
|
||||
@Mod(modid = Tags.MODID,
|
||||
version = Tags.VERSION,
|
||||
name = Tags.MODNAME,
|
||||
acceptedMinecraftVersions = "[1.7.10]",
|
||||
dependencies = "required-after:falsepatternlib@[0.10.15,);")
|
||||
public class ChunkAPI {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.falsepattern.chunk;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
/**
|
||||
* Non-minecraft stuff to avoid accidental classloading in spaghetti code
|
||||
*/
|
||||
public class Common {
|
||||
public static final Logger LOG = LogManager.getLogger(Tags.MODID);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.falsepattern.chunk;
|
||||
|
||||
public class Tags {
|
||||
public static final String MODID = "GRADLETOKEN_MODID";
|
||||
public static final String MODNAME = "GRADLETOKEN_MODNAME";
|
||||
public static final String VERSION = "GRADLETOKEN_VERSION";
|
||||
public static final String GROUPNAME = "GRADLETOKEN_GROUPNAME";
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* FalseTweaks
|
||||
*
|
||||
* Copyright (C) 2022 FalsePattern
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "SNEED"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.chunk.mixin.plugin;
|
||||
|
||||
import com.falsepattern.lib.mixin.IMixin;
|
||||
import com.falsepattern.lib.mixin.ITargetedMod;
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public enum Mixin implements IMixin {
|
||||
// @formatter:off
|
||||
;
|
||||
// @formatter:on
|
||||
|
||||
@Getter
|
||||
private final Side side;
|
||||
@Getter
|
||||
private final Predicate<List<ITargetedMod>> filter;
|
||||
@Getter
|
||||
private final String mixin;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* FalseTweaks
|
||||
*
|
||||
* Copyright (C) 2022 FalsePattern
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "SNEED"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.chunk.mixin.plugin;
|
||||
|
||||
import com.falsepattern.chunk.Tags;
|
||||
import com.falsepattern.lib.mixin.IMixin;
|
||||
import com.falsepattern.lib.mixin.IMixinPlugin;
|
||||
import com.falsepattern.lib.mixin.ITargetedMod;
|
||||
import lombok.Getter;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
public class MixinPlugin implements IMixinPlugin {
|
||||
@Getter
|
||||
private final Logger logger = IMixinPlugin.createLogger(Tags.MODNAME);
|
||||
|
||||
@Override
|
||||
public ITargetedMod[] getTargetedModEnumValues() {
|
||||
return TargetedMod.values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public IMixin[] getMixinEnumValues() {
|
||||
return Mixin.values();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* FalseTweaks
|
||||
*
|
||||
* Copyright (C) 2022 FalsePattern
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "SNEED"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.chunk.mixin.plugin;
|
||||
|
||||
import com.falsepattern.lib.mixin.ITargetedMod;
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import java.util.function.Predicate;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public enum TargetedMod implements ITargetedMod {
|
||||
;
|
||||
|
||||
@Getter
|
||||
private final String modName;
|
||||
@Getter
|
||||
private final boolean loadInDevelopment;
|
||||
@Getter
|
||||
private final Predicate<String> condition;
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
#-------------------------------------------------------------------------------
|
||||
# @author FalsePattern
|
||||
#
|
||||
# Copyright 2023
|
||||
#
|
||||
# All rights reserved.
|
||||
# Distribution of the software in any form is only allowed with
|
||||
# explicit, prior permission from the owner.
|
||||
#-------------------------------------------------------------------------------
|
||||
@author FalsePattern
|
||||
|
||||
|
||||
This code is the property of and owned and copyrighted by FalsePattern.
|
||||
This code is provided under a modified visible-source license
|
||||
that is as follows:
|
||||
|
||||
|
||||
API Code:
|
||||
==============================
|
||||
API code is identifiable as being in an "API" package in the respective
|
||||
repository or mod, and is intended to allow some level of inter-mod
|
||||
interactions without creating hard dependencies on the mod proper. This code
|
||||
is exempt from the below restrictions for "Mod Code", as it by nature will
|
||||
require some level of copying and redistribution.
|
||||
|
||||
The only restrictions imposed on API code are that it remain clearly marked
|
||||
with its original authorship and source, that it be used for the purpose
|
||||
described previously, and that it not be modified from the original without
|
||||
first contacting FalsePattern.
|
||||
|
||||
|
||||
Mod Code:
|
||||
==============================
|
||||
Any and all users are permitted to use the source for educational purposes,
|
||||
or to create derivative works for private use only. GitHub forks and direct
|
||||
downloads are considered derivative works.
|
||||
|
||||
Unless given explicit written permission - verifiable electronic writing is
|
||||
acceptable - no user may redistribute this source code nor any derivative
|
||||
works. These pre-approved works must prominently contain this copyright notice.
|
||||
|
||||
Derivative mods using any or all of the source code or assets are
|
||||
EXPRESSLY FORBIDDEN.
|
||||
|
||||
Additionally, no attempt may be made to achieve monetary gain from this code
|
||||
by anyone except the original author. In the case of pre-approved derivative
|
||||
works, any monetary gains made will be shared between the original author and
|
||||
the other developer(s), proportional to the ratio of derived to original code.
|
||||
|
||||
Finally, any and all displays, duplicates or derivatives of this code must be
|
||||
prominently marked as such, and must contain attribution to the original
|
||||
author, including a link to the original source. Any attempts to claim credit
|
||||
for this code will be treated as intentional theft.
|
||||
|
||||
Due to the Mojang and Minecraft Mod Terms of Service and Licensing
|
||||
Restrictions, compiled versions of this code must be provided for free.
|
||||
However, with the exception of pre-approved derivative works, only the original
|
||||
author's modpacks may distribute compiled binary versions of this code.
|
||||
|
||||
==============================
|
||||
|
||||
Failure to comply with these restrictions is a violation of copyright law and
|
||||
will be dealt with accordingly.
|
||||
@@ -0,0 +1,16 @@
|
||||
[
|
||||
{
|
||||
"modid": "${modId}",
|
||||
"name": "${modName}",
|
||||
"description": "A chunk data hooking library.",
|
||||
"version": "${modVersion}",
|
||||
"mcversion": "${minecraftVersion}",
|
||||
"url": "https://github.com/FalsePattern/ChunkAPI",
|
||||
"updateUrl": "",
|
||||
"authorList": ["FalsePattern"],
|
||||
"credits": "",
|
||||
"logoFile": "",
|
||||
"screenshots": [],
|
||||
"dependencies": []
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"required": true,
|
||||
"minVersion": "0.8.5",
|
||||
"package": "com.falsepattern.chunk.mixin.mixins",
|
||||
"plugin": "com.falsepattern.chunk.mixin.plugin.MixinPlugin",
|
||||
"refmap": "mixins.fplib_chunkapi.refmap.json",
|
||||
"target": "@env(DEFAULT)",
|
||||
"compatibilityLevel": "JAVA_8"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user