mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-25 06:34:35 +00:00
Compare commits
22
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32d5e538fd | ||
|
|
3a6d40b550 | ||
|
|
dfe8f5e56d | ||
|
|
e8d9d77299 | ||
|
|
91a5d63a24 | ||
|
|
ddd7f5ec2e | ||
|
|
423f72ab21 | ||
|
|
3c0729591f | ||
|
|
b809eb9d0b | ||
|
|
9db6baf768 | ||
|
|
52915ac97f | ||
|
|
00cf0d5229 | ||
|
|
1ce8c85dce | ||
|
|
e903c37913 | ||
|
|
1a9e366204 | ||
|
|
0dfa701ae3 | ||
|
|
802295bb6a | ||
|
|
5d6b5c945d | ||
|
|
764885d239 | ||
|
|
baf3c712bd | ||
|
|
bd2fe1d272 | ||
|
|
f2447d415b |
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# This is the universal Text Editor Configuration
|
||||
# for all GTNewHorizons projects
|
||||
# See: https://editorconfig.org/
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.{bat,ini}]
|
||||
end_of_line = crlf
|
||||
|
||||
[*.{dtd,json,info,mcmeta,md,sh,svg,xml,xsd,xsl,yaml,yml}]
|
||||
indent_size = 2
|
||||
@@ -1,9 +0,0 @@
|
||||
directory="run/crash-reports"
|
||||
if [ -d $directory ]; then
|
||||
echo "Crash reports detected:"
|
||||
cat $directory/*
|
||||
exit 1
|
||||
else
|
||||
echo "No crash reports detected"
|
||||
exit 0
|
||||
fi
|
||||
Executable
+51
@@ -0,0 +1,51 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# bashsupport disable=BP5006 # Global environment variables
|
||||
RUNDIR="run" \
|
||||
CRASH="crash-reports" \
|
||||
SERVERLOG="server.log"
|
||||
|
||||
# enable nullglob to get 0 results when no match rather than the pattern
|
||||
shopt -s nullglob
|
||||
|
||||
# store matches in array
|
||||
crash_reports=("$RUNDIR/$CRASH/crash"*.txt)
|
||||
|
||||
# if array not empty there are crash_reports
|
||||
if [ "${#crash_reports[@]}" -gt 0 ]; then
|
||||
# get the latest crash_report from array
|
||||
latest_crash_report="${crash_reports[-1]}"
|
||||
{
|
||||
printf 'Latest crash report detected %s:\n' "${latest_crash_report##*/}"
|
||||
cat "$latest_crash_report"
|
||||
} >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if grep --quiet --fixed-strings 'Fatal errors were detected' "$SERVERLOG"; then
|
||||
{
|
||||
printf 'Fatal errors detected:\n'
|
||||
cat server.log
|
||||
} >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if grep --quiet --fixed-strings 'The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED' \
|
||||
"$SERVERLOG"; then
|
||||
{
|
||||
printf 'Server force stopped:'
|
||||
cat server.log
|
||||
} >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! grep --quiet --perl-regexp --only-matching '.+Done \(.+\)\! For help, type "help" or "\?"' "$SERVERLOG"; then
|
||||
{
|
||||
printf 'Server did not finish startup:'
|
||||
cat server.log
|
||||
} >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf 'No crash reports detected'
|
||||
exit 0
|
||||
@@ -14,32 +14,32 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
||||
- name: Set up JDK 8
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '8'
|
||||
distribution: 'adopt'
|
||||
cache: gradle
|
||||
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
- name: Setup the workspace
|
||||
run: ./gradlew setupCIWorkspace
|
||||
|
||||
|
||||
- name: Build the mod
|
||||
run: ./gradlew build
|
||||
|
||||
- name: Run server for 1 minute
|
||||
- name: Run server for 1.5 minutes
|
||||
run: |
|
||||
mkdir run
|
||||
echo "eula=true" > run/eula.txt
|
||||
timeout 60 ./gradlew runServer || true
|
||||
echo "eula=true" > run/eula.txt
|
||||
timeout 90 ./gradlew runServer 2>&1 | tee -a server.log || true
|
||||
|
||||
- name: Test no crashes happend
|
||||
- name: Test no errors reported during server run
|
||||
run: |
|
||||
chmod +x .github/scripts/test-no-crash-reports.sh
|
||||
.github/scripts/test-no-crash-reports.sh
|
||||
chmod +x .github/scripts/test_no_error_reports
|
||||
.github/scripts/test_no_error_reports
|
||||
@@ -43,3 +43,9 @@ jobs:
|
||||
prerelease: false
|
||||
title: "${{ env.RELEASE_VERSION }}"
|
||||
files: build/libs/*.jar
|
||||
|
||||
- name: Publish to Maven
|
||||
run: ./gradlew publish
|
||||
env:
|
||||
MAVEN_USER: ${{ secrets.MAVEN_USER }}
|
||||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
||||
@@ -0,0 +1,3 @@
|
||||
# Any Github changes require admin approval
|
||||
/.github/** @GTNewHorizons/admin
|
||||
|
||||
+329
-110
@@ -1,49 +1,65 @@
|
||||
//version: 928ecf7feb33a1149538b0e2cd17e3bc5f281428
|
||||
//version: 1652851397
|
||||
/*
|
||||
DO NOT CHANGE THIS FILE!
|
||||
|
||||
Also, you may replace this file at any time if there is an update available.
|
||||
Please check https://github.com/SinTh0r4s/ExampleMod1.7.10/blob/main/build.gradle for updates.
|
||||
*/
|
||||
Please check https://github.com/GTNewHorizons/ExampleMod1.7.10/blob/main/build.gradle for updates.
|
||||
*/
|
||||
|
||||
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
import org.gradle.internal.logging.text.StyledTextOutput.Style
|
||||
import org.gradle.internal.logging.text.StyledTextOutputFactory
|
||||
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
name = "forge"
|
||||
url = "https://maven.minecraftforge.net"
|
||||
name 'forge'
|
||||
url 'https://maven.minecraftforge.net'
|
||||
}
|
||||
maven {
|
||||
name = "sonatype"
|
||||
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
||||
name 'sonatype'
|
||||
url 'https://oss.sonatype.org/content/repositories/snapshots/'
|
||||
}
|
||||
maven {
|
||||
name = "Scala CI dependencies"
|
||||
url = "https://repo1.maven.org/maven2/"
|
||||
name 'Scala CI dependencies'
|
||||
url 'https://repo1.maven.org/maven2/'
|
||||
}
|
||||
maven {
|
||||
name = "jitpack"
|
||||
url = "https://jitpack.io"
|
||||
name 'jitpack'
|
||||
url 'https://jitpack.io'
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.github.GTNewHorizons:ForgeGradle:1.2.4'
|
||||
classpath 'com.github.GTNewHorizons:ForgeGradle:1.2.7'
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'java-library'
|
||||
id 'idea'
|
||||
id 'eclipse'
|
||||
id 'scala'
|
||||
id("org.ajoberstar.grgit") version("3.1.1")
|
||||
id("com.github.johnrengelman.shadow") version("4.0.4")
|
||||
id("com.palantir.git-version") version("0.12.3")
|
||||
id 'maven-publish'
|
||||
id 'org.jetbrains.kotlin.jvm' version '1.5.30' apply false
|
||||
id 'org.jetbrains.kotlin.kapt' version '1.5.30' apply false
|
||||
id 'com.google.devtools.ksp' version '1.5.30-1.0.0' apply false
|
||||
id 'org.ajoberstar.grgit' version '4.1.1'
|
||||
id 'com.github.johnrengelman.shadow' version '4.0.4'
|
||||
id 'com.palantir.git-version' version '0.13.0' apply false
|
||||
id 'de.undercouch.download' version '5.0.1'
|
||||
id 'com.github.gmazzo.buildconfig' version '3.0.3' apply false
|
||||
}
|
||||
|
||||
if (project.file('.git/HEAD').isFile()) {
|
||||
apply plugin: 'com.palantir.git-version'
|
||||
}
|
||||
|
||||
def out = services.get(StyledTextOutputFactory).create('an-output')
|
||||
|
||||
apply plugin: 'forge'
|
||||
|
||||
def projectJavaVersion = JavaLanguageVersion.of(8)
|
||||
@@ -87,27 +103,32 @@ checkPropertyExists("containsMixinsAndOrCoreModOnly")
|
||||
checkPropertyExists("usesShadowedDependencies")
|
||||
checkPropertyExists("developmentEnvironmentUserName")
|
||||
|
||||
boolean noPublishedSources = project.findProperty("noPublishedSources") ? project.noPublishedSources.toBoolean() : false
|
||||
boolean usesMixinDebug = project.findProperty('usesMixinDebug') ?: project.usesMixins.toBoolean()
|
||||
|
||||
String javaSourceDir = "src/main/java/"
|
||||
String scalaSourceDir = "src/main/scala/"
|
||||
String kotlinSourceDir = "src/main/kotlin/"
|
||||
|
||||
String targetPackageJava = javaSourceDir + modGroup.toString().replaceAll("\\.", "/")
|
||||
String targetPackageScala = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/")
|
||||
if((getFile(targetPackageJava).exists() || getFile(targetPackageScala).exists()) == false) {
|
||||
throw new GradleException("Could not resolve \"modGroup\"! Could not find " + targetPackageJava + " or " + targetPackageScala)
|
||||
String targetPackageKotlin = kotlinSourceDir + modGroup.toString().replaceAll("\\.", "/")
|
||||
if(!(getFile(targetPackageJava).exists() || getFile(targetPackageScala).exists() || getFile(targetPackageKotlin).exists())) {
|
||||
throw new GradleException("Could not resolve \"modGroup\"! Could not find " + targetPackageJava + " or " + targetPackageScala + " or " + targetPackageKotlin)
|
||||
}
|
||||
|
||||
if(apiPackage) {
|
||||
targetPackageJava = javaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString().replaceAll("\\.", "/")
|
||||
targetPackageScala = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString().replaceAll("\\.", "/")
|
||||
if((getFile(targetPackageJava).exists() || getFile(targetPackageScala).exists()) == false) {
|
||||
throw new GradleException("Could not resolve \"apiPackage\"! Could not find " + targetPackageJava + " or " + targetPackageScala)
|
||||
targetPackageKotlin = kotlinSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString().replaceAll("\\.", "/")
|
||||
if(!(getFile(targetPackageJava).exists() || getFile(targetPackageScala).exists() || getFile(targetPackageKotlin).exists())) {
|
||||
throw new GradleException("Could not resolve \"apiPackage\"! Could not find " + targetPackageJava + " or " + targetPackageScala + " or " + targetPackageKotlin)
|
||||
}
|
||||
}
|
||||
|
||||
if(accessTransformersFile) {
|
||||
String targetFile = "src/main/resources/META-INF/" + accessTransformersFile
|
||||
if(getFile(targetFile).exists() == false) {
|
||||
if(!getFile(targetFile).exists()) {
|
||||
throw new GradleException("Could not resolve \"accessTransformersFile\"! Could not find " + targetFile)
|
||||
}
|
||||
}
|
||||
@@ -119,15 +140,17 @@ if(usesMixins.toBoolean()) {
|
||||
|
||||
targetPackageJava = javaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinsPackage.toString().replaceAll("\\.", "/")
|
||||
targetPackageScala = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinsPackage.toString().replaceAll("\\.", "/")
|
||||
if((getFile(targetPackageJava).exists() || getFile(targetPackageScala).exists()) == false) {
|
||||
throw new GradleException("Could not resolve \"mixinsPackage\"! Could not find " + targetPackageJava + " or " + targetPackageScala)
|
||||
targetPackageKotlin = kotlinSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinsPackage.toString().replaceAll("\\.", "/")
|
||||
if(!(getFile(targetPackageJava).exists() || getFile(targetPackageScala).exists() || getFile(targetPackageKotlin).exists())) {
|
||||
throw new GradleException("Could not resolve \"mixinsPackage\"! Could not find " + targetPackageJava + " or " + targetPackageScala + " or " + targetPackageKotlin)
|
||||
}
|
||||
|
||||
String targetFileJava = javaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinPlugin.toString().replaceAll("\\.", "/") + ".java"
|
||||
String targetFileScala = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinPlugin.toString().replaceAll("\\.", "/") + ".scala"
|
||||
String targetFileScalaJava = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinPlugin.toString().replaceAll("\\.", "/") + ".java"
|
||||
if((getFile(targetFileJava).exists() || getFile(targetFileScala).exists() || getFile(targetFileScalaJava).exists()) == false) {
|
||||
throw new GradleException("Could not resolve \"mixinPlugin\"! Could not find " + targetFileJava + " or " + targetFileScala + " or " + targetFileScalaJava)
|
||||
String targetFileKotlin = kotlinSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + mixinPlugin.toString().replaceAll("\\.", "/") + ".kt"
|
||||
if(!(getFile(targetFileJava).exists() || getFile(targetFileScala).exists() || getFile(targetFileScalaJava).exists() || getFile(targetFileKotlin).exists())) {
|
||||
throw new GradleException("Could not resolve \"mixinPlugin\"! Could not find " + targetFileJava + " or " + targetFileScala + " or " + targetFileScalaJava + " or " + targetFileKotlin)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,8 +158,9 @@ if(coreModClass) {
|
||||
String targetFileJava = javaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + coreModClass.toString().replaceAll("\\.", "/") + ".java"
|
||||
String targetFileScala = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + coreModClass.toString().replaceAll("\\.", "/") + ".scala"
|
||||
String targetFileScalaJava = scalaSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + coreModClass.toString().replaceAll("\\.", "/") + ".java"
|
||||
if((getFile(targetFileJava).exists() || getFile(targetFileScala).exists() || getFile(targetFileScalaJava).exists()) == false) {
|
||||
throw new GradleException("Could not resolve \"coreModClass\"! Could not find " + targetFileJava + " or " + targetFileScala + " or " + targetFileScalaJava)
|
||||
String targetFileKotlin = kotlinSourceDir + modGroup.toString().replaceAll("\\.", "/") + "/" + coreModClass.toString().replaceAll("\\.", "/") + ".kt"
|
||||
if(!(getFile(targetFileJava).exists() || getFile(targetFileScala).exists() || getFile(targetFileScalaJava).exists() || getFile(targetFileKotlin).exists())) {
|
||||
throw new GradleException("Could not resolve \"coreModClass\"! Could not find " + targetFileJava + " or " + targetFileScala + " or " + targetFileScalaJava + " or " + targetFileKotlin)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,13 +173,35 @@ configurations.all {
|
||||
}
|
||||
|
||||
// Fix Jenkins' Git: chmod a file should not be detected as a change and append a '.dirty' to the version
|
||||
'git config core.fileMode false'.execute()
|
||||
// Pulls version from git tag
|
||||
try {
|
||||
version = minecraftVersion + "-" + gitVersion()
|
||||
'git config core.fileMode false'.execute()
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new IllegalStateException("This mod must be version controlled by Git AND the repository must provide at least one tag!");
|
||||
catch (Exception ignored) {
|
||||
out.style(Style.Failure).println("git isn't installed at all")
|
||||
}
|
||||
|
||||
// Pulls version first from the VERSION env and then git tag
|
||||
String identifiedVersion
|
||||
String versionOverride = System.getenv("VERSION") ?: null
|
||||
try {
|
||||
identifiedVersion = versionOverride == null ? gitVersion() : versionOverride
|
||||
}
|
||||
catch (Exception ignored) {
|
||||
out.style(Style.Failure).text(
|
||||
'This mod must be version controlled by Git AND the repository must provide at least one tag,\n' +
|
||||
'or the VERSION override must be set! ').style(Style.SuccessHeader).text('(Do NOT download from GitHub using the ZIP option, instead\n' +
|
||||
'clone the repository, see ').style(Style.Info).text('https://gtnh.miraheze.org/wiki/Development').style(Style.SuccessHeader).println(' for details.)'
|
||||
)
|
||||
versionOverride = 'NO-GIT-TAG-SET'
|
||||
identifiedVersion = versionOverride
|
||||
}
|
||||
version = minecraftVersion + '-' + identifiedVersion
|
||||
ext {
|
||||
modVersion = identifiedVersion
|
||||
}
|
||||
|
||||
if(identifiedVersion == versionOverride) {
|
||||
out.style(Style.Failure).text('Override version to ').style(Style.Identifier).text(modVersion).style(Style.Failure).println('!\7')
|
||||
}
|
||||
|
||||
group = modGroup
|
||||
@@ -166,9 +212,25 @@ else {
|
||||
archivesBaseName = modId
|
||||
}
|
||||
|
||||
def arguments = []
|
||||
def jvmArguments = []
|
||||
|
||||
if (usesMixins.toBoolean()) {
|
||||
arguments += [
|
||||
"--tweakClass org.spongepowered.asm.launch.MixinTweaker"
|
||||
]
|
||||
if (usesMixinDebug.toBoolean()) {
|
||||
jvmArguments += [
|
||||
"-Dmixin.debug.countInjections=true",
|
||||
"-Dmixin.debug.verbose=true",
|
||||
"-Dmixin.debug.export=true"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
minecraft {
|
||||
version = minecraftVersion + "-" + forgeVersion + "-" + minecraftVersion
|
||||
runDir = "run"
|
||||
version = minecraftVersion + '-' + forgeVersion + '-' + minecraftVersion
|
||||
runDir = 'run'
|
||||
|
||||
if (replaceGradleTokenInFile) {
|
||||
replaceIn replaceGradleTokenInFile
|
||||
@@ -179,78 +241,99 @@ minecraft {
|
||||
replace gradleTokenModName, modName
|
||||
}
|
||||
if(gradleTokenVersion) {
|
||||
replace gradleTokenVersion, versionDetails().lastTag
|
||||
replace gradleTokenVersion, modVersion
|
||||
}
|
||||
if(gradleTokenGroupName) {
|
||||
replace gradleTokenGroupName, modGroup
|
||||
}
|
||||
}
|
||||
|
||||
clientIntellijRun {
|
||||
args(arguments)
|
||||
jvmArgs(jvmArguments)
|
||||
|
||||
if(developmentEnvironmentUserName) {
|
||||
args("--username", developmentEnvironmentUserName)
|
||||
}
|
||||
}
|
||||
|
||||
serverIntellijRun {
|
||||
args(arguments)
|
||||
jvmArgs(jvmArguments)
|
||||
}
|
||||
}
|
||||
|
||||
if(file("addon.gradle").exists()) {
|
||||
apply from: "addon.gradle"
|
||||
if(file('addon.gradle').exists()) {
|
||||
apply from: 'addon.gradle'
|
||||
}
|
||||
|
||||
apply from: 'repositories.gradle'
|
||||
|
||||
configurations {
|
||||
implementation.extendsFrom(shadowImplementation)
|
||||
implementation.extendsFrom(shadowImplementation) // TODO: remove after all uses are refactored
|
||||
implementation.extendsFrom(shadowCompile)
|
||||
implementation.extendsFrom(shadeCompile)
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = "Overmind forge repo mirror"
|
||||
url = "https://gregtech.overminddl1.com/"
|
||||
name 'Overmind forge repo mirror'
|
||||
url 'https://gregtech.overminddl1.com/'
|
||||
}
|
||||
if(usesMixins.toBoolean()) {
|
||||
maven {
|
||||
name = "sponge"
|
||||
url = "https://repo.spongepowered.org/repository/maven-public"
|
||||
name 'sponge'
|
||||
url 'https://repo.spongepowered.org/repository/maven-public'
|
||||
}
|
||||
maven {
|
||||
url = "https://jitpack.io"
|
||||
url 'https://jitpack.io'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
if(usesMixins.toBoolean()) {
|
||||
annotationProcessor("org.ow2.asm:asm-debug-all:5.0.3")
|
||||
annotationProcessor("com.google.guava:guava:24.1.1-jre")
|
||||
annotationProcessor("com.google.code.gson:gson:2.8.6")
|
||||
annotationProcessor("org.spongepowered:mixin:0.8-SNAPSHOT")
|
||||
annotationProcessor('org.ow2.asm:asm-debug-all:5.0.3')
|
||||
annotationProcessor('com.google.guava:guava:24.1.1-jre')
|
||||
annotationProcessor('com.google.code.gson:gson:2.8.6')
|
||||
annotationProcessor('org.spongepowered:mixin:0.8-SNAPSHOT')
|
||||
// using 0.8 to workaround a issue in 0.7 which fails mixin application
|
||||
compile("org.spongepowered:mixin:0.7.11-SNAPSHOT") {
|
||||
compile('com.github.GTNewHorizons:SpongePoweredMixin:0.7.12-GTNH') {
|
||||
// Mixin includes a lot of dependencies that are too up-to-date
|
||||
exclude module: "launchwrapper"
|
||||
exclude module: "guava"
|
||||
exclude module: "gson"
|
||||
exclude module: "commons-io"
|
||||
exclude module: "log4j-core"
|
||||
exclude module: 'launchwrapper'
|
||||
exclude module: 'guava'
|
||||
exclude module: 'gson'
|
||||
exclude module: 'commons-io'
|
||||
exclude module: 'log4j-core'
|
||||
}
|
||||
compile("com.github.GTNewHorizons:SpongeMixins:1.3.3:dev")
|
||||
compile('com.github.GTNewHorizons:SpongeMixins:1.5.0')
|
||||
}
|
||||
}
|
||||
|
||||
apply from: 'dependencies.gradle'
|
||||
|
||||
def mixingConfigRefMap = "mixins." + modId + ".refmap.json"
|
||||
def mixingConfigRefMap = 'mixins.' + modId + '.refmap.json'
|
||||
def refMap = "${tasks.compileJava.temporaryDir}" + File.separator + mixingConfigRefMap
|
||||
def mixinSrg = "${tasks.reobf.temporaryDir}" + File.separator + "mixins.srg"
|
||||
|
||||
task generateAssets {
|
||||
if(usesMixins.toBoolean()) {
|
||||
getFile("/src/main/resources/mixins." + modId + ".json").text = """{
|
||||
if (usesMixins.toBoolean()) {
|
||||
def mixinConfigFile = getFile("/src/main/resources/mixins." + modId + ".json");
|
||||
if (!mixinConfigFile.exists()) {
|
||||
mixinConfigFile.text = """{
|
||||
"required": true,
|
||||
"minVersion": "0.7.11",
|
||||
"package": "${modGroup}.${mixinsPackage}",
|
||||
"plugin": "${modGroup}.${mixinPlugin}",
|
||||
"refmap": "${mixingConfigRefMap}",
|
||||
"target": "@env(DEFAULT)",
|
||||
"compatibilityLevel": "JAVA_8"
|
||||
"compatibilityLevel": "JAVA_8",
|
||||
"mixins": [],
|
||||
"client": [],
|
||||
"server": []
|
||||
}
|
||||
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -260,16 +343,28 @@ task relocateShadowJar(type: ConfigureShadowRelocation) {
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
project.configurations.shadeCompile.each { dep ->
|
||||
from(project.zipTree(dep)) {
|
||||
exclude 'META-INF', 'META-INF/**'
|
||||
}
|
||||
}
|
||||
|
||||
manifest {
|
||||
attributes(getManifestAttributes())
|
||||
}
|
||||
|
||||
minimize() // This will only allow shading for actually used classes
|
||||
configurations = [project.configurations.shadowImplementation]
|
||||
configurations = [project.configurations.shadowImplementation, project.configurations.shadowCompile]
|
||||
dependsOn(relocateShadowJar)
|
||||
}
|
||||
|
||||
jar {
|
||||
project.configurations.shadeCompile.each { dep ->
|
||||
from(project.zipTree(dep)) {
|
||||
exclude 'META-INF', 'META-INF/**'
|
||||
}
|
||||
}
|
||||
|
||||
manifest {
|
||||
attributes(getManifestAttributes())
|
||||
}
|
||||
@@ -302,15 +397,6 @@ afterEvaluate {
|
||||
}
|
||||
|
||||
runClient {
|
||||
def arguments = []
|
||||
|
||||
if(usesMixins.toBoolean()) {
|
||||
arguments += [
|
||||
"--mods=../build/libs/$modId-${version}.jar",
|
||||
"--tweakClass org.spongepowered.asm.launch.MixinTweaker"
|
||||
]
|
||||
}
|
||||
|
||||
if(developmentEnvironmentUserName) {
|
||||
arguments += [
|
||||
"--username",
|
||||
@@ -319,19 +405,12 @@ runClient {
|
||||
}
|
||||
|
||||
args(arguments)
|
||||
jvmArgs(jvmArguments)
|
||||
}
|
||||
|
||||
runServer {
|
||||
def arguments = []
|
||||
|
||||
if (usesMixins.toBoolean()) {
|
||||
arguments += [
|
||||
"--mods=../build/libs/$modId-${version}.jar",
|
||||
"--tweakClass org.spongepowered.asm.launch.MixinTweaker"
|
||||
]
|
||||
}
|
||||
|
||||
args(arguments)
|
||||
jvmArgs(jvmArguments)
|
||||
}
|
||||
|
||||
tasks.withType(JavaExec).configureEach {
|
||||
@@ -342,36 +421,35 @@ tasks.withType(JavaExec).configureEach {
|
||||
)
|
||||
}
|
||||
|
||||
processResources
|
||||
{
|
||||
// this will ensure that this task is redone when the versions change.
|
||||
inputs.property "version", project.version
|
||||
inputs.property "mcversion", project.minecraft.version
|
||||
processResources {
|
||||
// this will ensure that this task is redone when the versions change.
|
||||
inputs.property "version", project.version
|
||||
inputs.property "mcversion", project.minecraft.version
|
||||
|
||||
// replace stuff in mcmod.info, nothing else
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
include 'mcmod.info'
|
||||
// replace stuff in mcmod.info, nothing else
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
include 'mcmod.info'
|
||||
|
||||
// replace version and mcversion
|
||||
expand "minecraftVersion": project.minecraft.version,
|
||||
"modVersion": versionDetails().lastTag,
|
||||
"modId": modId,
|
||||
"modName": modName
|
||||
}
|
||||
// replace modVersion and minecraftVersion
|
||||
expand "minecraftVersion": project.minecraft.version,
|
||||
"modVersion": modVersion,
|
||||
"modId": modId,
|
||||
"modName": modName
|
||||
}
|
||||
|
||||
if(usesMixins.toBoolean()) {
|
||||
from refMap
|
||||
}
|
||||
if(usesMixins.toBoolean()) {
|
||||
from refMap
|
||||
}
|
||||
|
||||
// copy everything else, thats not the mcmod.info
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
exclude 'mcmod.info'
|
||||
}
|
||||
}
|
||||
// copy everything else that's not the mcmod.info
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
exclude 'mcmod.info'
|
||||
}
|
||||
}
|
||||
|
||||
def getManifestAttributes() {
|
||||
def manifestAttributes = [:]
|
||||
if(containsMixinsAndOrCoreModOnly.toBoolean() == false && (usesMixins.toBoolean() || coreModClass)) {
|
||||
if(!containsMixinsAndOrCoreModOnly.toBoolean() && (usesMixins.toBoolean() || coreModClass)) {
|
||||
manifestAttributes += ["FMLCorePluginContainsFMLMod": true]
|
||||
}
|
||||
|
||||
@@ -387,19 +465,25 @@ def getManifestAttributes() {
|
||||
manifestAttributes += [
|
||||
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
|
||||
"MixinConfigs" : "mixins." + modId + ".json",
|
||||
"ForceLoadAsMod" : containsMixinsAndOrCoreModOnly.toBoolean() == false
|
||||
"ForceLoadAsMod" : !containsMixinsAndOrCoreModOnly.toBoolean()
|
||||
]
|
||||
}
|
||||
return manifestAttributes
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar) {
|
||||
from (sourceSets.main.allJava)
|
||||
from (sourceSets.main.allSource)
|
||||
from (file("$projectDir/LICENSE"))
|
||||
getArchiveClassifier().set('sources')
|
||||
}
|
||||
|
||||
task shadowDevJar(type: ShadowJar) {
|
||||
project.configurations.shadeCompile.each { dep ->
|
||||
from(project.zipTree(dep)) {
|
||||
exclude 'META-INF', 'META-INF/**'
|
||||
}
|
||||
}
|
||||
|
||||
from sourceSets.main.output
|
||||
getArchiveClassifier().set("dev")
|
||||
|
||||
@@ -408,7 +492,7 @@ task shadowDevJar(type: ShadowJar) {
|
||||
}
|
||||
|
||||
minimize() // This will only allow shading for actually used classes
|
||||
configurations = [project.configurations.shadowImplementation]
|
||||
configurations = [project.configurations.shadowImplementation, project.configurations.shadowCompile]
|
||||
}
|
||||
|
||||
task relocateShadowDevJar(type: ConfigureShadowRelocation) {
|
||||
@@ -423,6 +507,12 @@ task circularResolverJar(type: Jar) {
|
||||
}
|
||||
|
||||
task devJar(type: Jar) {
|
||||
project.configurations.shadeCompile.each { dep ->
|
||||
from(project.zipTree(dep)) {
|
||||
exclude 'META-INF', 'META-INF/**'
|
||||
}
|
||||
}
|
||||
|
||||
from sourceSets.main.output
|
||||
getArchiveClassifier().set("dev")
|
||||
|
||||
@@ -437,7 +527,7 @@ task devJar(type: Jar) {
|
||||
}
|
||||
|
||||
task apiJar(type: Jar) {
|
||||
from (sourceSets.main.allJava) {
|
||||
from (sourceSets.main.allSource) {
|
||||
include modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString().replaceAll("\\.", "/") + '/**'
|
||||
}
|
||||
|
||||
@@ -453,13 +543,76 @@ task apiJar(type: Jar) {
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
if(!noPublishedSources) {
|
||||
archives sourcesJar
|
||||
}
|
||||
archives devJar
|
||||
if(apiPackage) {
|
||||
archives apiJar
|
||||
}
|
||||
}
|
||||
|
||||
// The gradle metadata includes all of the additional deps that we disabled from POM generation (including forgeBin with no groupID),
|
||||
// and isn't strictly needed with the POM so just disable it.
|
||||
tasks.withType(GenerateModuleMetadata) {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
// workaround variable hiding in pom processing
|
||||
def projectConfigs = project.configurations
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
from components.java
|
||||
if(usesShadowedDependencies.toBoolean()) {
|
||||
artifact source: shadowJar, classifier: ""
|
||||
}
|
||||
if(!noPublishedSources) {
|
||||
artifact source: sourcesJar, classifier: "sources"
|
||||
}
|
||||
artifact source: usesShadowedDependencies.toBoolean() ? shadowDevJar : devJar, classifier: "dev"
|
||||
if (apiPackage) {
|
||||
artifact source: apiJar, classifier: "api"
|
||||
}
|
||||
|
||||
groupId = System.getenv("ARTIFACT_GROUP_ID") ?: "com.github.GTNewHorizons"
|
||||
artifactId = System.getenv("ARTIFACT_ID") ?: project.name
|
||||
// Using the identified version, not project.version as it has the prepended 1.7.10
|
||||
version = System.getenv("RELEASE_VERSION") ?: identifiedVersion
|
||||
|
||||
// remove extra garbage from minecraft and minecraftDeps configuration
|
||||
pom.withXml {
|
||||
def badArtifacts = [:].withDefault {[] as Set<String>}
|
||||
for (configuration in [projectConfigs.minecraft, projectConfigs.minecraftDeps]) {
|
||||
for (dependency in configuration.allDependencies) {
|
||||
badArtifacts[dependency.group == null ? "" : dependency.group] += dependency.name
|
||||
}
|
||||
}
|
||||
// example for specifying extra stuff to ignore
|
||||
// badArtifacts["org.example.group"] += "artifactName"
|
||||
|
||||
Node pomNode = asNode()
|
||||
pomNode.dependencies.'*'.findAll() {
|
||||
badArtifacts[it.groupId.text()].contains(it.artifactId.text())
|
||||
}.each() {
|
||||
it.parent().remove(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url = "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases"
|
||||
credentials {
|
||||
username = System.getenv("MAVEN_USER") ?: "NONE"
|
||||
password = System.getenv("MAVEN_PASSWORD") ?: "NONE"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Updating
|
||||
task updateBuildScript {
|
||||
doLast {
|
||||
@@ -473,19 +626,19 @@ if (isNewBuildScriptVersionAvailable(projectDir.toString())) {
|
||||
if (autoUpdateBuildScript.toBoolean()) {
|
||||
performBuildScriptUpdate(projectDir.toString())
|
||||
} else {
|
||||
println("Build script update available! Run 'gradle updateBuildScript'")
|
||||
out.style(Style.SuccessHeader).println("Build script update available! Run 'gradle updateBuildScript'")
|
||||
}
|
||||
}
|
||||
|
||||
static URL availableBuildScriptUrl() {
|
||||
new URL("https://raw.githubusercontent.com/SinTh0r4s/ExampleMod1.7.10/main/build.gradle")
|
||||
new URL("https://raw.githubusercontent.com/GTNewHorizons/ExampleMod1.7.10/main/build.gradle")
|
||||
}
|
||||
|
||||
boolean performBuildScriptUpdate(String projectDir) {
|
||||
if (isNewBuildScriptVersionAvailable(projectDir)) {
|
||||
def buildscriptFile = getFile("build.gradle")
|
||||
availableBuildScriptUrl().withInputStream { i -> buildscriptFile.withOutputStream { it << i } }
|
||||
print("Build script updated. Please REIMPORT the project or RESTART your IDE!")
|
||||
out.style(Style.Success).print("Build script updated. Please REIMPORT the project or RESTART your IDE!")
|
||||
return true
|
||||
}
|
||||
return false
|
||||
@@ -516,11 +669,77 @@ configure(updateBuildScript) {
|
||||
description = 'Updates the build script to the latest version'
|
||||
}
|
||||
|
||||
// Deobfuscation
|
||||
|
||||
def deobf(String sourceURL) {
|
||||
try {
|
||||
URL url = new URL(sourceURL)
|
||||
String fileName = url.getFile()
|
||||
|
||||
//get rid of directories:
|
||||
int lastSlash = fileName.lastIndexOf("/")
|
||||
if(lastSlash > 0) {
|
||||
fileName = fileName.substring(lastSlash + 1)
|
||||
}
|
||||
//get rid of extension:
|
||||
if(fileName.endsWith(".jar")) {
|
||||
fileName = fileName.substring(0, fileName.lastIndexOf("."))
|
||||
}
|
||||
|
||||
String hostName = url.getHost()
|
||||
if(hostName.startsWith("www.")) {
|
||||
hostName = hostName.substring(4)
|
||||
}
|
||||
List parts = Arrays.asList(hostName.split("\\."))
|
||||
Collections.reverse(parts)
|
||||
hostName = String.join(".", parts)
|
||||
|
||||
return deobf(sourceURL, hostName + "/" + fileName)
|
||||
} catch(Exception e) {
|
||||
return deobf(sourceURL, "deobf/" + String.valueOf(sourceURL.hashCode()))
|
||||
}
|
||||
}
|
||||
|
||||
// The method above is to be preferred. Use this method if the filename is not at the end of the URL.
|
||||
def deobf(String sourceURL, String fileName) {
|
||||
String cacheDir = System.getProperty("user.home") + "/.gradle/caches/"
|
||||
String bon2Dir = cacheDir + "forge_gradle/deobf"
|
||||
String bon2File = bon2Dir + "/BON2-2.5.0.jar"
|
||||
String obfFile = cacheDir + "modules-2/files-2.1/" + fileName + ".jar"
|
||||
String deobfFile = cacheDir + "modules-2/files-2.1/" + fileName + "-deobf.jar"
|
||||
|
||||
if(file(deobfFile).exists()) {
|
||||
return files(deobfFile)
|
||||
}
|
||||
|
||||
download.run {
|
||||
src 'https://github.com/GTNewHorizons/BON2/releases/download/2.5.0/BON2-2.5.0.CUSTOM-all.jar'
|
||||
dest bon2File
|
||||
quiet true
|
||||
overwrite false
|
||||
}
|
||||
|
||||
download.run {
|
||||
src sourceURL
|
||||
dest obfFile
|
||||
quiet true
|
||||
overwrite false
|
||||
}
|
||||
|
||||
exec {
|
||||
commandLine 'java', '-jar', bon2File, '--inputJar', obfFile, '--outputJar', deobfFile, '--mcVer', '1.7.10', '--mappingsVer', 'stable_12', '--notch'
|
||||
workingDir bon2Dir
|
||||
standardOutput = new ByteArrayOutputStream()
|
||||
}
|
||||
|
||||
return files(deobfFile)
|
||||
}
|
||||
|
||||
// Helper methods
|
||||
|
||||
def checkPropertyExists(String propertyName) {
|
||||
if (project.hasProperty(propertyName) == false) {
|
||||
throw new GradleException("This project requires a property \"" + propertyName + "\"! Please add it your \"gradle.properties\". You can find all properties and their description here: https://github.com/SinTh0r4s/ExampleMod1.7.10/blob/main/gradle.properties")
|
||||
if (!project.hasProperty(propertyName)) {
|
||||
throw new GradleException("This project requires a property \"" + propertyName + "\"! Please add it your \"gradle.properties\". You can find all properties and their description here: https://github.com/GTNewHorizons/ExampleMod1.7.10/blob/main/gradle.properties")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+8
-4
@@ -1,14 +1,18 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
compile("com.github.GTNewHorizons:NotEnoughItems:master-SNAPSHOT:dev")
|
||||
compile("com.github.GTNewHorizons:CodeChickenCore:1.1.5:dev")
|
||||
compile("com.github.GTNewHorizons:CodeChickenLib:1.1.5.3:dev")
|
||||
compile("com.github.GTNewHorizons:NotEnoughItems:2.2.8-GTNH:dev")
|
||||
compileOnly("org.projectlombok:lombok:1.18.24")
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.24")
|
||||
|
||||
compile("org.projectlombok:lombok:1.16.4")
|
||||
shadeCompile("com.github.GTNewHorizons:CTMLib:1.4.2:dev")
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:waila:master-SNAPSHOT:dev") {
|
||||
compileOnly("com.github.GTNewHorizons:waila:1.5.19:dev") {
|
||||
transitive = false
|
||||
}
|
||||
compileOnly("com.github.GTNewHorizons:ForgeMultipart:master-SNAPSHOT:dev") {
|
||||
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.2.7:dev") {
|
||||
transitive = false
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
// Add any additional repositories for your dependencies here
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = "GTNH"
|
||||
url = "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
|
||||
}
|
||||
maven {
|
||||
url "https://cursemaven.com"
|
||||
}
|
||||
|
||||
@@ -63,6 +63,7 @@ public class Chisel {
|
||||
public static final BlockCarvable.SoundType soundHolystoneFootstep = new BlockCarvable.SoundType("holystone", 1.0f, 1.0f);
|
||||
public static final BlockCarvable.SoundType soundMetalFootstep = new BlockCarvable.SoundType("metal", 1.0f, 1.0f);
|
||||
public static boolean multipartLoaded = false;
|
||||
public static boolean gtnhLoaded = false;
|
||||
public static int renderEldritchId;
|
||||
public static int renderAutoChiselId;
|
||||
public static int renderGlowId;
|
||||
@@ -123,13 +124,16 @@ public class Chisel {
|
||||
@EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
FMLCommonHandler.instance().registerCrashCallable(new ChiselCrashCallable());
|
||||
|
||||
|
||||
File configFile = event.getSuggestedConfigurationFile();
|
||||
Configurations.configExists = configFile.exists();
|
||||
Configurations.config = new Configuration(configFile);
|
||||
Configurations.config.load();
|
||||
Configurations.refreshConfig();
|
||||
|
||||
if (Loader.isModLoaded("dreamcraft")) {
|
||||
gtnhLoaded = true;
|
||||
}
|
||||
TabsInit.preInit();
|
||||
Features.preInit();
|
||||
Statistics.init();
|
||||
|
||||
@@ -2,7 +2,6 @@ package team.chisel;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.block.BlockFire;
|
||||
import team.chisel.block.*;
|
||||
import team.chisel.carving.Carving;
|
||||
import team.chisel.client.render.SubmapManagerAntiblock;
|
||||
|
||||
@@ -1,319 +0,0 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import gnu.trove.map.TIntObjectMap;
|
||||
import gnu.trove.map.hash.TIntObjectHashMap;
|
||||
|
||||
import java.util.EnumMap;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
import com.cricketcraft.chisel.api.IConnectable;
|
||||
import com.cricketcraft.chisel.api.IFacade;
|
||||
import com.google.common.base.Optional;
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
import static team.chisel.ctmlib.Dir.*;
|
||||
|
||||
//@formatter:off
|
||||
/**
|
||||
* The CTM renderer will draw the block's FACE using by assembling 4 quadrants from the 5 available block
|
||||
* textures. The normal Texture.png is the blocks "unconnected" texture, and is used when CTM is disabled or the block
|
||||
* has nothing to connect to. This texture has all of the outside corner quadrants The texture-ctm.png contains the
|
||||
* rest of the quadrants.
|
||||
* <pre><blockquote>
|
||||
* ┌─────────────────┐ ┌────────────────────────────────┐
|
||||
* │ texture.png │ │ texture-ctm.png │
|
||||
* │ ╔══════╤══════╗ │ │ ──────┼────── ║ ─────┼───── ║ │
|
||||
* │ ║ │ ║ │ │ │ │ │║ │ ║ │
|
||||
* │ ║ 16 │ 17 ║ │ │ │ 0 │ 1 │║ 2 │ 3 ║ │
|
||||
* │ ╟──────┼──────╢ │ │ ┼──────┼──────┼╟──────┼──────╢ │
|
||||
* │ ║ │ ║ │ │ │ │ │║ │ ║ │
|
||||
* │ ║ 18 │ 19 ║ │ │ │ 4 │ 5 │║ 6 │ 7 ║ │
|
||||
* │ ╚══════╧══════╝ │ │ ──────┼────── ║ ─────┼───── ║ │
|
||||
* └─────────────────┘ │ ═══════╤═══════╝ ─────┼───── ╚ │
|
||||
* │ │ │ ││ │ │ │
|
||||
* │ │ 8 │ 9 ││ 10 │ 11 │ │
|
||||
* │ ┼──────┼──────┼┼──────┼──────┼ │
|
||||
* │ │ │ ││ │ │ │
|
||||
* │ │ 12 │ 13 ││ 14 │ 15 │ │
|
||||
* │ ═══════╧═══════╗ ─────┼───── ╔ │
|
||||
* └────────────────────────────────┘
|
||||
* </blockquote></pre>
|
||||
* combining { 18, 13, 9, 16 }, we can generate a texture connected to the right!
|
||||
* <pre><blockquote>
|
||||
* ╔══════╤═══════
|
||||
* ║ │ │
|
||||
* ║ 16 │ 9 │
|
||||
* ╟──────┼──────┼
|
||||
* ║ │ │
|
||||
* ║ 18 │ 13 │
|
||||
* ╚══════╧═══════
|
||||
* </blockquote></pre>
|
||||
*
|
||||
* combining { 18, 13, 11, 2 }, we can generate a texture, in the shape of an L (connected to the right, and up
|
||||
* <pre><blockquote>
|
||||
* ║ ─────┼───── ╚
|
||||
* ║ │ │
|
||||
* ║ 2 │ 11 │
|
||||
* ╟──────┼──────┼
|
||||
* ║ │ │
|
||||
* ║ 18 │ 13 │
|
||||
* ╚══════╧═══════
|
||||
* </blockquote></pre>
|
||||
*
|
||||
* HAVE FUN!
|
||||
* -CptRageToaster-
|
||||
*/
|
||||
//@formatter:on
|
||||
public class CTM {
|
||||
|
||||
/** Some hardcoded offset values for the different corner indeces */
|
||||
protected static int[] submapOffsets = { 4, 5, 1, 0 };
|
||||
/** For use via the Chisel 2 config only, altering this could cause unintended behavior */
|
||||
public static boolean disableObscuredFaceCheckConfig = false;
|
||||
|
||||
public Optional<Boolean> disableObscuredFaceCheck = Optional.absent();
|
||||
|
||||
protected TIntObjectMap<Dir[]> submapMap = new TIntObjectHashMap<Dir[]>();
|
||||
protected EnumMap<Dir, Boolean> connectionMap = Maps.newEnumMap(Dir.class);
|
||||
|
||||
protected CTM() {
|
||||
for (Dir dir : Dir.VALUES) {
|
||||
connectionMap.put(dir, false);
|
||||
}
|
||||
|
||||
// Mapping the different corner indeces to their respective dirs
|
||||
submapMap.put(0, new Dir[] { BOTTOM, LEFT, BOTTOM_LEFT });
|
||||
submapMap.put(1, new Dir[] { BOTTOM, RIGHT, BOTTOM_RIGHT });
|
||||
submapMap.put(2, new Dir[] { TOP, RIGHT, TOP_RIGHT });
|
||||
submapMap.put(3, new Dir[] { TOP, LEFT, TOP_LEFT });
|
||||
}
|
||||
|
||||
public static CTM getInstance() {
|
||||
return new CTM();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The indeces of the typical 4x4 submap to use for the given face at the given location.
|
||||
*
|
||||
* Indeces are in counter-clockwise order starting at bottom left.
|
||||
*/
|
||||
public int[] getSubmapIndices(IBlockAccess world, int x, int y, int z, int side) {
|
||||
int[] ret = new int[] { 18, 19, 17, 16 };
|
||||
|
||||
if (world == null) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
Block block = world.getBlock(x, y, z);
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
|
||||
buildConnectionMap(world, x, y, z, side, block, meta);
|
||||
|
||||
// Map connections to submap indeces
|
||||
for (int i = 0; i < 4; i++) {
|
||||
fillSubmaps(ret, i);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds the connection map and stores it in this CTM instance. The {@link #connected(Dir)}, {@link #connectedAnd(Dir...)}, and {@link #connectedOr(Dir...)} methods can be used to access it.
|
||||
*/
|
||||
public void buildConnectionMap(IBlockAccess world, int x, int y, int z, int side, Block block, int meta) {
|
||||
for (Dir dir : Dir.VALUES) {
|
||||
connectionMap.put(dir, dir.isConnected(this, world, x, y, z, side, block, meta));
|
||||
}
|
||||
}
|
||||
|
||||
private void fillSubmaps(int[] ret, int idx) {
|
||||
Dir[] dirs = submapMap.get(idx);
|
||||
if (connectedOr(dirs[0], dirs[1])) {
|
||||
if (connectedAnd(dirs)) {
|
||||
// If all dirs are connected, we use the fully connected face,
|
||||
// the base offset value.
|
||||
ret[idx] = submapOffsets[idx];
|
||||
} else {
|
||||
// This is a bit magic-y, but basically the array is ordered so
|
||||
// the first dir requires an offset of 2, and the second dir
|
||||
// requires an offset of 8, plus the initial offset for the
|
||||
// corner.
|
||||
ret[idx] = submapOffsets[idx] + (connected(dirs[0]) ? 2 : 0) + (connected(dirs[1]) ? 8 : 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dir
|
||||
* The direction to check connection in.
|
||||
* @return True if the cached connectionMap holds a connection in this {@link Dir direction}.
|
||||
*/
|
||||
public boolean connected(Dir dir) {
|
||||
return connectionMap.get(dir);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dirs
|
||||
* The directions to check connection in.
|
||||
* @return True if the cached connectionMap holds a connection in <i><b>all</b></i> the given {@link Dir directions}.
|
||||
*/
|
||||
public boolean connectedAnd(Dir... dirs) {
|
||||
for (Dir dir : dirs) {
|
||||
if (!connected(dir)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dirs
|
||||
* The directions to check connection in.
|
||||
* @return True if the cached connectionMap holds a connection in <i><b>one of</b></i> the given {@link Dir directions}.
|
||||
*/
|
||||
private boolean connectedOr(Dir... dirs) {
|
||||
for (Dir dir : dirs) {
|
||||
if (connected(dir)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* A simple check for if the given block can connect to the given direction on the given side.
|
||||
*
|
||||
* @param world
|
||||
* @param x
|
||||
* The x coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
* @param y
|
||||
* The y coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
* @param z
|
||||
* The z coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
* @param side
|
||||
* The side of the block to check for connection status. This is <i>not</i> the direction to check in.
|
||||
* @param block
|
||||
* The block to check against for connection.
|
||||
* @param meta
|
||||
* The metadata to check against for connection.
|
||||
* @return True if the given block can connect to the given location on the given side.
|
||||
*/
|
||||
public boolean isConnected(IBlockAccess world, int x, int y, int z, int side, Block block, int meta) {
|
||||
ForgeDirection dir = ForgeDirection.VALID_DIRECTIONS[side];
|
||||
return isConnected(world, x, y, z, dir, block, meta);
|
||||
}
|
||||
|
||||
/**
|
||||
* A simple check for if the given block can connect to the given direction on the given side.
|
||||
*
|
||||
* @param world
|
||||
* @param x
|
||||
* The x coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
* @param y
|
||||
* The y coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
* @param z
|
||||
* The z coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
* @param dir
|
||||
* The {@link ForgeDirection side} of the block to check for connection status. This is <i>not</i> the direction to check in.
|
||||
* @param block
|
||||
* The block to check against for connection.
|
||||
* @param meta
|
||||
* The metadata to check against for connection.
|
||||
* @return True if the given block can connect to the given location on the given side.
|
||||
*/
|
||||
public boolean isConnected(IBlockAccess world, int x, int y, int z, ForgeDirection dir, Block block, int meta) {
|
||||
|
||||
if (CTMLib.chiselLoaded() && connectionBlocked(world, x, y, z, dir.ordinal())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
int x2 = x + dir.offsetX;
|
||||
int y2 = y + dir.offsetY;
|
||||
int z2 = z + dir.offsetZ;
|
||||
|
||||
boolean disableObscured = disableObscuredFaceCheck.or(disableObscuredFaceCheckConfig);
|
||||
|
||||
Block con = getBlockOrFacade(world, x, y, z, dir.ordinal());
|
||||
Block obscuring = disableObscured ? null : getBlockOrFacade(world, x2, y2, z2, dir.ordinal());
|
||||
|
||||
// no block or a bad API user
|
||||
if (con == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
boolean ret = con.equals(block) && getBlockOrFacadeMetadata(world, x, y, z, dir.ordinal()) == meta;
|
||||
|
||||
// no block obscuring this face
|
||||
if (obscuring == null) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
// check that we aren't already connected outwards from this side
|
||||
ret &= !(obscuring.equals(block) && getBlockOrFacadeMetadata(world, x2, y2, z2, dir.ordinal()) == meta);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
private boolean connectionBlocked(IBlockAccess world, int x, int y, int z, int side) {
|
||||
Block block = world.getBlock(x, y, z);
|
||||
if (block instanceof IConnectable) {
|
||||
return !((IConnectable) block).canConnectCTM(world, x, y, z, side);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* A utility method to access metadata from both the world and {@link IFacade} blocks in the world.
|
||||
*
|
||||
* @param world
|
||||
* @param x
|
||||
* @param y
|
||||
* @param z
|
||||
* @param side
|
||||
* The side to check for. -1 for unknown.
|
||||
* @return The metadata at this position in the world, or inside an {@link IFacade} block.
|
||||
*/
|
||||
public int getBlockOrFacadeMetadata(IBlockAccess world, int x, int y, int z, int side) {
|
||||
Block blk = world.getBlock(x, y, z);
|
||||
if (CTMLib.chiselLoaded()) {
|
||||
return getFacadeMeta(blk, world, x, y, z, side);
|
||||
}
|
||||
return world.getBlockMetadata(x, y, z);
|
||||
}
|
||||
|
||||
private int getFacadeMeta(Block blk, IBlockAccess world, int x, int y, int z, int side) {
|
||||
if (blk instanceof IFacade) {
|
||||
return ((IFacade) blk).getFacadeMetadata(world, x, y, z, side);
|
||||
}
|
||||
return world.getBlockMetadata(x, y, z);
|
||||
}
|
||||
|
||||
/**
|
||||
* A utility method to access a block from both the world and {@link IFacade} blocks in the world.
|
||||
*
|
||||
* @param world
|
||||
* @param x
|
||||
* @param y
|
||||
* @param z
|
||||
* @param side
|
||||
* The side to check for. -1 for unknown.
|
||||
* @return The block at this position in the world, or inside an {@link IFacade} block.
|
||||
*/
|
||||
public Block getBlockOrFacade(IBlockAccess world, int x, int y, int z, int side) {
|
||||
Block blk = world.getBlock(x, y, z);
|
||||
if (CTMLib.chiselLoaded()) {
|
||||
return getFacade(blk, world, x, y, z, side);
|
||||
}
|
||||
return blk;
|
||||
}
|
||||
|
||||
private Block getFacade(Block blk, IBlockAccess world, int x, int y, int z, int side) {
|
||||
if (blk instanceof IFacade) {
|
||||
blk = ((IFacade) blk).getFacade(world, x, y, z, side);
|
||||
}
|
||||
return blk;
|
||||
}
|
||||
}
|
||||
@@ -1,70 +0,0 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import lombok.Getter;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
/**
|
||||
* Convenience implementation of ICMBlock. This does everything you should need for basic CTM.
|
||||
* <p>
|
||||
* This class does <i>not</i> handle metadata-dependent textures.
|
||||
*/
|
||||
public class CTMBlock extends Block implements ICTMBlock<ISubmapManager> {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private SubmapManagerCTM manager;
|
||||
|
||||
@Getter
|
||||
private final String modid;
|
||||
@Getter
|
||||
private final String texturePath;
|
||||
|
||||
private final int renderId;
|
||||
|
||||
public CTMBlock(String modid, String texturePath, int renderId) {
|
||||
super(Material.rock);
|
||||
this.modid = modid;
|
||||
this.texturePath = texturePath;
|
||||
this.renderId = renderId;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister icon) {
|
||||
manager = new SubmapManagerCTM(texturePath);
|
||||
manager.registerIcons(modid, this, icon);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
|
||||
return manager.getIcon(world, x, y, z, side);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int meta) {
|
||||
return manager.getIcon(side, meta);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int getRenderType() {
|
||||
return renderId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ISubmapManager getManager(IBlockAccess world, int x, int y, int z, int meta) {
|
||||
return manager;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ISubmapManager getManager(int meta) {
|
||||
return manager;
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import cpw.mods.fml.common.ModAPIManager;
|
||||
|
||||
public class CTMLib {
|
||||
|
||||
public static final String VERSION = "1.4.1";
|
||||
|
||||
private static boolean chiselPresent, chiselInitialized;
|
||||
|
||||
public static boolean chiselLoaded() {
|
||||
if (!chiselInitialized) {
|
||||
chiselInitialized = true;
|
||||
chiselPresent = ModAPIManager.INSTANCE.hasAPI("ChiselAPI");
|
||||
}
|
||||
return chiselPresent;
|
||||
}
|
||||
}
|
||||
@@ -1,81 +0,0 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.crash.CrashReport;
|
||||
import net.minecraft.crash.CrashReportCategory;
|
||||
import net.minecraft.util.ReportedException;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
/**
|
||||
* A convenience base class for CTM blocks. Any block using this must implement {@link ICTMBlock}.
|
||||
*/
|
||||
public class CTMRenderer implements ISimpleBlockRenderingHandler {
|
||||
|
||||
private int renderId;
|
||||
|
||||
public CTMRenderer(int renderId) {
|
||||
this.renderId = renderId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
|
||||
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
|
||||
RenderBlocks rb = getContext(renderer, block, Minecraft.getMinecraft().theWorld, ((ICTMBlock<?>)block).getManager(metadata), metadata);
|
||||
Drawing.drawBlock(block, metadata, rb);
|
||||
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
|
||||
rb.unlockBlockBounds();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks rendererOld) {
|
||||
try {
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
RenderBlocks rb = getContext(rendererOld, block, world, ((ICTMBlock<?>) block).getManager(world, x, y, z, meta), meta);
|
||||
boolean ret = rb.renderStandardBlock(block, x, y, z);
|
||||
rb.unlockBlockBounds();
|
||||
return ret;
|
||||
} catch (Throwable t) {
|
||||
CrashReport crashreport = CrashReport.makeCrashReport(t, "Rendering CTM Block");
|
||||
CrashReportCategory crashreportcategory = crashreport.makeCategory("Block being rendered");
|
||||
crashreportcategory.addCrashSection("Block name", GameRegistry.findUniqueIdentifierFor(block));
|
||||
crashreportcategory.addCrashSection("Block metadata", world.getBlockMetadata(x, y, z));
|
||||
throw new ReportedException(crashreport);
|
||||
}
|
||||
}
|
||||
|
||||
protected RenderBlocks getContext(RenderBlocks rendererOld, Block block, IBlockAccess world, ISubmapManager manager, int meta) {
|
||||
if (!rendererOld.hasOverrideBlockTexture() && manager != null) {
|
||||
RenderBlocks rb = manager.createRenderContext(rendererOld, block, world);
|
||||
if (rb != null && rb != rendererOld) {
|
||||
rb.blockAccess = world;
|
||||
if (rendererOld.lockBlockBounds) {
|
||||
rb.overrideBlockBounds(rendererOld.renderMinX, rendererOld.renderMinY, rendererOld.renderMinZ, rendererOld.renderMaxX, rendererOld.renderMaxY, rendererOld.renderMaxZ);
|
||||
}
|
||||
if (rb instanceof RenderBlocksCTM) {
|
||||
RenderBlocksCTM rbctm = (RenderBlocksCTM) rb;
|
||||
rbctm.manager = rbctm.manager == null ? manager : rbctm.manager;
|
||||
rbctm.rendererOld = rbctm.rendererOld == null ? rendererOld : rbctm.rendererOld;
|
||||
}
|
||||
return rb;
|
||||
}
|
||||
}
|
||||
return rendererOld;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldRender3DInInventory(int renderId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderId() {
|
||||
return renderId;
|
||||
}
|
||||
}
|
||||
@@ -1,105 +0,0 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
import static net.minecraftforge.common.util.ForgeDirection.*;
|
||||
|
||||
/**
|
||||
* Think of this class as a "Two dimensional ForgeDirection, with diagonals".
|
||||
* <p>
|
||||
* It represents the eight different directions a face of a block can connect with CTM, and contains the logic for determining if a block is indeed connected in that direction.
|
||||
* <p>
|
||||
* Note that, for example, {@link #TOP_RIGHT} does not mean connected to the {@link #TOP} and {@link #RIGHT}, but connected in the diagonal direction represented by {@link #TOP_RIGHT}. This is used
|
||||
* for inner corner rendering.
|
||||
*/
|
||||
public enum Dir {
|
||||
// @formatter:off
|
||||
TOP(UP),
|
||||
TOP_RIGHT(UP, EAST),
|
||||
RIGHT(EAST),
|
||||
BOTTOM_RIGHT(DOWN, EAST),
|
||||
BOTTOM(DOWN),
|
||||
BOTTOM_LEFT(DOWN, WEST),
|
||||
LEFT(WEST),
|
||||
TOP_LEFT(UP, WEST);
|
||||
// @formatter:on
|
||||
|
||||
/**
|
||||
* All values of this enum, used to prevent unnecessary allocation via {@link #values()}.
|
||||
*/
|
||||
public static final Dir[] VALUES = values();
|
||||
private static final ForgeDirection NORMAL = SOUTH;
|
||||
|
||||
private ForgeDirection[] dirs;
|
||||
|
||||
private Dir(ForgeDirection... dirs) {
|
||||
this.dirs = dirs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds if this block is connected for the given side in this Dir.
|
||||
*
|
||||
* @param inst
|
||||
* The CTM instance to use for logic.
|
||||
* @param world
|
||||
* The world the block is in.
|
||||
* @param x
|
||||
* The x coordinate of your block.
|
||||
* @param y
|
||||
* The y coordinate of your block.
|
||||
* @param z
|
||||
* The z coordinate of your block.
|
||||
* @param sideIdx
|
||||
* The side index of the current face. This equivalent to {@link ForgeDirection#ordinal()}
|
||||
* @param block
|
||||
* The block being rendered.
|
||||
* @param meta
|
||||
* The metadata of the block.
|
||||
* @return True if the block is connected in the given Dir, false otherwise.
|
||||
*/
|
||||
public boolean isConnected(CTM inst, IBlockAccess world, int x, int y, int z, int sideIdx, Block block, int meta) {
|
||||
ForgeDirection side = getOrientation(sideIdx);
|
||||
ForgeDirection[] dirs = getNormalizedDirs(side);
|
||||
for (ForgeDirection dir : dirs) {
|
||||
x += dir.offsetX;
|
||||
y += dir.offsetY;
|
||||
z += dir.offsetZ;
|
||||
}
|
||||
return inst.isConnected(world, x, y, z, side, block, meta);
|
||||
}
|
||||
|
||||
private ForgeDirection[] getNormalizedDirs(ForgeDirection normal) {
|
||||
if (normal == NORMAL) {
|
||||
return dirs;
|
||||
} else if (normal == NORMAL.getOpposite()) {
|
||||
// If this is the opposite direction of the default normal, we
|
||||
// need to mirror the dirs
|
||||
// A mirror version does not affect y+ and y- so we ignore those
|
||||
ForgeDirection[] ret = new ForgeDirection[dirs.length];
|
||||
for (int i = 0; i < ret.length; i++) {
|
||||
ret[i] = dirs[i].offsetY != 0 ? dirs[i] : dirs[i].getOpposite();
|
||||
}
|
||||
return ret;
|
||||
} else {
|
||||
ForgeDirection axis = null;
|
||||
// Next, we need different a different rotation axis depending
|
||||
// on if this is up/down or not
|
||||
if (normal.offsetY == 0) {
|
||||
// If it is not up/down, pick either the left or right-hand
|
||||
// rotation
|
||||
axis = normal == NORMAL.getRotation(UP) ? UP : DOWN;
|
||||
} else {
|
||||
// If it is up/down, pick either the up or down rotation.
|
||||
axis = normal == UP ? NORMAL.getRotation(DOWN) : NORMAL.getRotation(UP);
|
||||
}
|
||||
ForgeDirection[] ret = new ForgeDirection[dirs.length];
|
||||
// Finally apply all the rotations
|
||||
for (int i = 0; i < ret.length; i++) {
|
||||
ret[i] = dirs[i].getRotation(axis);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,76 +0,0 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
public class Drawing {
|
||||
|
||||
public static void drawBlock(Block block, IIcon icon, RenderBlocks renderer) {
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, -1.0F, 0.0F);
|
||||
renderer.renderFaceYNeg(block, 0.0D, 0.0D, 0.0D, icon);
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 1.0F, 0.0F);
|
||||
renderer.renderFaceYPos(block, 0.0D, 0.0D, 0.0D, icon);
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, -1.0F);
|
||||
renderer.renderFaceZNeg(block, 0.0D, 0.0D, 0.0D, icon);
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, 1.0F);
|
||||
renderer.renderFaceZPos(block, 0.0D, 0.0D, 0.0D, icon);
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(-1.0F, 0.0F, 0.0F);
|
||||
renderer.renderFaceXNeg(block, 0.0D, 0.0D, 0.0D, icon);
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(1.0F, 0.0F, 0.0F);
|
||||
renderer.renderFaceXPos(block, 0.0D, 0.0D, 0.0D, icon);
|
||||
tessellator.draw();
|
||||
}
|
||||
|
||||
public static void drawBlock(Block block, int meta, RenderBlocks renderer) {
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, -1.0F, 0.0F);
|
||||
renderer.renderFaceYNeg(block, 0.0D, 0.0D, 0.0D, block.getIcon(0, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 1.0F, 0.0F);
|
||||
renderer.renderFaceYPos(block, 0.0D, 0.0D, 0.0D, block.getIcon(1, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, -1.0F);
|
||||
renderer.renderFaceZNeg(block, 0.0D, 0.0D, 0.0D, block.getIcon(2, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(0.0F, 0.0F, 1.0F);
|
||||
renderer.renderFaceZPos(block, 0.0D, 0.0D, 0.0D, block.getIcon(3, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(-1.0F, 0.0F, 0.0F);
|
||||
renderer.renderFaceXNeg(block, 0.0D, 0.0D, 0.0D, block.getIcon(4, meta));
|
||||
tessellator.draw();
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setNormal(1.0F, 0.0F, 0.0F);
|
||||
renderer.renderFaceXPos(block, 0.0D, 0.0D, 0.0D, block.getIcon(5, meta));
|
||||
tessellator.draw();
|
||||
}
|
||||
|
||||
public static void renderAllFaces(RenderBlocks renderer, Block block, int x, int y, int z, IIcon icon) {
|
||||
renderer.renderFaceYNeg(block, x, y, z, icon);
|
||||
renderer.renderFaceYPos(block, x, y, z, icon);
|
||||
renderer.renderFaceZNeg(block, x, y, z, icon);
|
||||
renderer.renderFaceZPos(block, x, y, z, icon);
|
||||
renderer.renderFaceXNeg(block, x, y, z, icon);
|
||||
renderer.renderFaceXPos(block, x, y, z, icon);
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
||||
public interface ICTMBlock<T extends ISubmapManager> {
|
||||
|
||||
/**
|
||||
* Gets the {@link ISubmapManager} for this block in the world.
|
||||
*/
|
||||
T getManager(IBlockAccess world, int x, int y, int z, int meta);
|
||||
|
||||
/**
|
||||
* Gets the {@link ISubmapManager} for this block in item form.
|
||||
*
|
||||
* @param meta
|
||||
* The meta (damage) of the stack.
|
||||
*/
|
||||
T getManager(int meta);
|
||||
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
public interface ISubmap {
|
||||
|
||||
/**
|
||||
* The width, in icons, of the submap.
|
||||
*/
|
||||
int getWidth();
|
||||
|
||||
/**
|
||||
* The height, in icons, of the submap.
|
||||
*/
|
||||
int getHeight();
|
||||
|
||||
IIcon getSubIcon(int x, int y);
|
||||
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public interface ISubmapManager {
|
||||
|
||||
/**
|
||||
* Gets the icon for item rendering, based on side and item metadata.
|
||||
*
|
||||
* @param side
|
||||
* Side of the ItemBlock.
|
||||
* @param meta
|
||||
* Metadata of the ItemBlock.
|
||||
* @return The IIcon for rendering.
|
||||
*/
|
||||
IIcon getIcon(int side, int meta);
|
||||
|
||||
/**
|
||||
* Gets the icon for world rendering, based on world position and side.
|
||||
*/
|
||||
IIcon getIcon(IBlockAccess world, int x, int y, int z, int side);
|
||||
|
||||
/**
|
||||
* Hook for registering any custom icons you might need in this class. Will be called during the normal block method.
|
||||
*
|
||||
* @param modName
|
||||
* The mod ID this submap was registered to.
|
||||
* @param block
|
||||
* The block being registered for.
|
||||
* @param register
|
||||
* The IIconRegister instance.
|
||||
*/
|
||||
@SideOnly(Side.CLIENT)
|
||||
void registerIcons(String modName, Block block, IIconRegister register);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void preRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void postRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side);
|
||||
}
|
||||
@@ -1,500 +0,0 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import static team.chisel.ctmlib.RenderBlocksCTM.SubSide.*;
|
||||
import static team.chisel.ctmlib.RenderBlocksCTM.Vert.*;
|
||||
|
||||
import lombok.Getter;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public class RenderBlocksCTM extends RenderBlocks {
|
||||
|
||||
/**
|
||||
* An enum for all possible 26 sub-side vertices.
|
||||
*
|
||||
* The naming scheme is as follows:
|
||||
*
|
||||
* ZERO is a special case, it is the absolute min point of the block. X, Y, Z, or any combination means that the axes listed in the name are at 1. X, Y, Z, or any combination followed by HALF
|
||||
* means that those axes are at 0.5. X, Y, Z, or any combination after a HALF means those axes are at 1.
|
||||
*/
|
||||
protected enum Vert {
|
||||
// @formatter:off
|
||||
ZERO(0, 0, 0),
|
||||
XYZ(1, 1, 1),
|
||||
X(1, 0, 0),
|
||||
Y(0, 1, 0),
|
||||
Z(0, 0, 1),
|
||||
XY(1, 1, 0),
|
||||
YZ(0, 1, 1),
|
||||
XZ(1, 0, 1),
|
||||
X_HALF(0.5, 0, 0),
|
||||
Y_HALF(0, 0.5, 0),
|
||||
Z_HALF(0, 0, 0.5),
|
||||
XY_HALF(0.5, 0.5, 0),
|
||||
YZ_HALF(0, 0.5, 0.5),
|
||||
XZ_HALF(0.5, 0, 0.5),
|
||||
X_HALF_Y(0.5, 1, 0),
|
||||
X_HALF_Z(0.5, 0, 1),
|
||||
Y_HALF_X(1, 0.5, 0),
|
||||
Y_HALF_Z(0, 0.5, 1),
|
||||
Z_HALF_X(1, 0, 0.5),
|
||||
Z_HALF_Y(0, 1, 0.5),
|
||||
X_HALF_YZ(0.5, 1, 1),
|
||||
Y_HALF_XZ(1, 0.5, 1),
|
||||
Z_HALF_XY(1, 1, 0.5),
|
||||
XY_HALF_Z(0.5, 0.5, 1),
|
||||
YZ_HALF_X(1, 0.5, 0.5),
|
||||
XZ_HALF_Y(0.5, 1, 0.5);
|
||||
// @formatter:on
|
||||
|
||||
private double x, y, z;
|
||||
|
||||
private Vert(double x, double y, double z) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
}
|
||||
|
||||
private static double u, v, xDiff, yDiff, zDiff, uDiff, vDiff;
|
||||
|
||||
void render(RenderBlocksCTM inst, ForgeDirection normal, int cacheID) {
|
||||
if (inst.enableAO) {
|
||||
inst.tessellator.setColorOpaque_F(inst.redCache[cacheID], inst.grnCache[cacheID], inst.bluCache[cacheID]);
|
||||
inst.tessellator.setBrightness(inst.lightingCache[cacheID]);
|
||||
}
|
||||
|
||||
u = cacheID == 1 || cacheID == 2 ? inst.maxU : inst.minU;
|
||||
v = cacheID < 2 ? inst.maxV : inst.minV;
|
||||
|
||||
uDiff = inst.maxU - inst.minU;
|
||||
vDiff = inst.maxV - inst.minV;
|
||||
|
||||
if (inst.renderMinX + inst.renderMinY + inst.renderMinZ != 0 || inst.renderMaxX + inst.renderMaxY + inst.renderMaxZ != 3) {
|
||||
boolean uMin = u == inst.minU;
|
||||
boolean vMin = v == inst.minV;
|
||||
|
||||
xDiff = inst.renderMaxX - inst.renderMinX;
|
||||
yDiff = inst.renderMaxY - inst.renderMinY;
|
||||
zDiff = inst.renderMaxZ - inst.renderMinZ;
|
||||
|
||||
if (normal.offsetY != 0) {
|
||||
uDiff *= uMin ? inst.renderMinX : 1 - inst.renderMaxX;
|
||||
vDiff *= vMin ? inst.renderMinZ : 1 - inst.renderMaxZ;
|
||||
} else if (normal.offsetX != 0) {
|
||||
uDiff *= uMin ? inst.renderMinZ : 1 - inst.renderMaxZ;
|
||||
vDiff *= vMin ? inst.renderMinY : 1 - inst.renderMaxY;
|
||||
} else if (normal.offsetZ != 0) {
|
||||
uDiff *= uMin ? inst.renderMinX : 1 - inst.renderMaxX;
|
||||
vDiff *= vMin ? inst.renderMinY : 1 - inst.renderMaxY;
|
||||
}
|
||||
u = u == inst.minU ? inst.minU + uDiff : inst.maxU - uDiff;
|
||||
|
||||
v = v == inst.minV ? inst.minV + vDiff : inst.maxV - vDiff;
|
||||
} else {
|
||||
xDiff = yDiff = zDiff = 1;
|
||||
}
|
||||
|
||||
inst.tessellator.addVertexWithUV(inst.renderMinX + (x * xDiff), inst.renderMinY + (y * yDiff), inst.renderMinZ + (z * zDiff), u, v);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Each side is divided into 4 sub-sides. LB(left bottom), RB(right bottom), LT(right top), and RT(right top).
|
||||
*
|
||||
* Each sub-side contains 4 {@link Vert} objects representing its position on the block.
|
||||
*/
|
||||
protected enum SubSide {
|
||||
// @formatter:off
|
||||
XNEG_LB(ZERO, Z_HALF, YZ_HALF, Y_HALF), XNEG_RB(Z_HALF, Z, Y_HALF_Z, YZ_HALF), XNEG_RT(YZ_HALF, Y_HALF_Z, YZ, Z_HALF_Y), XNEG_LT(Y_HALF, YZ_HALF, Z_HALF_Y, Y),
|
||||
XPOS_LB(XZ, Z_HALF_X, YZ_HALF_X, Y_HALF_XZ), XPOS_RB(Z_HALF_X, X, Y_HALF_X, YZ_HALF_X), XPOS_RT(YZ_HALF_X, Y_HALF_X, XY, Z_HALF_XY), XPOS_LT(Y_HALF_XZ, YZ_HALF_X, Z_HALF_XY, XYZ),
|
||||
|
||||
ZNEG_LB(X, X_HALF, XY_HALF, Y_HALF_X), ZNEG_RB(X_HALF, ZERO, Y_HALF, XY_HALF), ZNEG_RT(XY_HALF, Y_HALF, Y, X_HALF_Y), ZNEG_LT(Y_HALF_X, XY_HALF, X_HALF_Y, XY),
|
||||
ZPOS_LB(Z, X_HALF_Z, XY_HALF_Z, Y_HALF_Z), ZPOS_RB(X_HALF_Z, XZ, Y_HALF_XZ, XY_HALF_Z), ZPOS_RT(XY_HALF_Z, Y_HALF_XZ, XYZ, X_HALF_YZ), ZPOS_LT(Y_HALF_Z, XY_HALF_Z, X_HALF_YZ, YZ),
|
||||
|
||||
YNEG_LB(ZERO, X_HALF, XZ_HALF, Z_HALF), YNEG_RB(X_HALF, X, Z_HALF_X, XZ_HALF), YNEG_RT(XZ_HALF, Z_HALF_X, XZ, X_HALF_Z), YNEG_LT(Z_HALF, XZ_HALF, X_HALF_Z, Z),
|
||||
YPOS_LB(YZ, X_HALF_YZ, XZ_HALF_Y, Z_HALF_Y), YPOS_RB(X_HALF_YZ, XYZ, Z_HALF_XY, XZ_HALF_Y), YPOS_RT(XZ_HALF_Y, Z_HALF_XY, XY, X_HALF_Y), YPOS_LT(Z_HALF_Y, XZ_HALF_Y, X_HALF_Y, Y);
|
||||
// @formatter:on
|
||||
private Vert xmin, xmax, ymin, ymax;
|
||||
private ForgeDirection normal;
|
||||
|
||||
SubSide(Vert xmin, Vert ymin, Vert ymax, Vert xmax) {
|
||||
this.xmin = xmin;
|
||||
this.ymin = ymin;
|
||||
this.ymax = ymax;
|
||||
this.xmax = xmax;
|
||||
this.normal = calcNormal();
|
||||
}
|
||||
|
||||
private ForgeDirection calcNormal() {
|
||||
double xTot = xmin.x + xmax.x + ymin.x + ymax.x;
|
||||
double yTot = xmin.y + xmax.y + ymin.y + ymax.y;
|
||||
double zTot = xmin.z + xmax.z + ymin.z + ymax.z;
|
||||
if (xTot % 4 == 0) {
|
||||
return xTot > 0 ? ForgeDirection.EAST : ForgeDirection.WEST;
|
||||
} else if (yTot % 4 == 0) {
|
||||
return yTot > 0 ? ForgeDirection.UP : ForgeDirection.DOWN;
|
||||
} else if (zTot % 4 == 0) {
|
||||
return zTot > 0 ? ForgeDirection.SOUTH : ForgeDirection.NORTH;
|
||||
}
|
||||
return ForgeDirection.UNKNOWN;
|
||||
}
|
||||
|
||||
void render(RenderBlocksCTM inst) {
|
||||
xmin.render(inst, normal, 0);
|
||||
ymin.render(inst, normal, 1);
|
||||
ymax.render(inst, normal, 2);
|
||||
xmax.render(inst, normal, 3);
|
||||
}
|
||||
}
|
||||
|
||||
public CTM ctm = CTM.getInstance();
|
||||
|
||||
// globals added to save the JVM some trouble. No need to constantly create
|
||||
// and destroy ints if we don't have to
|
||||
protected int blockLightBitChannel = 0;
|
||||
protected int redBitChannel = 0;
|
||||
protected int greenBitChannel = 0;
|
||||
protected int blueBitChannel = 0;
|
||||
protected int sunlightBitChannel = 0;
|
||||
|
||||
public RenderBlocksCTM() {
|
||||
super();
|
||||
renderMaxX = renderMaxY = renderMaxZ = 1;
|
||||
}
|
||||
|
||||
protected Tessellator tessellator = Tessellator.instance;
|
||||
protected double minU, maxU;
|
||||
protected double minV, maxV;
|
||||
protected int[] lightingCache = new int[4];
|
||||
protected float[] redCache = new float[4];
|
||||
protected float[] grnCache = new float[4];
|
||||
protected float[] bluCache = new float[4];
|
||||
public TextureSubmap submap;
|
||||
public TextureSubmap submapSmall;
|
||||
public RenderBlocks rendererOld;
|
||||
public ISubmapManager manager;
|
||||
|
||||
protected int[][] lightmap = new int[3][3];
|
||||
protected float[][] redmap = new float[3][3];
|
||||
protected float[][] grnmap = new float[3][3];
|
||||
protected float[][] blumap = new float[3][3];
|
||||
|
||||
protected int bx, by, bz, meta;
|
||||
|
||||
@Getter
|
||||
protected boolean inWorld = false;
|
||||
|
||||
@Override
|
||||
public boolean renderStandardBlock(Block block, int x, int y, int z) {
|
||||
bx = x;
|
||||
by = y;
|
||||
bz = z;
|
||||
meta = Minecraft.getMinecraft().theWorld.getBlockMetadata(x, y, z);
|
||||
|
||||
tessellator.setColorOpaque_F(1.0F, 1.0F, 1.0F);
|
||||
tessellator.addTranslation(x, y, z);
|
||||
if (rendererOld != null && rendererOld.hasOverrideBlockTexture()) {
|
||||
setOverrideBlockTexture(rendererOld.overrideBlockTexture);
|
||||
}
|
||||
inWorld = true;
|
||||
boolean res = super.renderStandardBlock(block, x, y, z);
|
||||
inWorld = false;
|
||||
tessellator.addTranslation(-x, -y, -z);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
/* @formatter:off
|
||||
* This method fills a 3x3 grid of light values based on the four corners, by averaging them together.
|
||||
*
|
||||
* 2 TL x TR
|
||||
*
|
||||
* 1 x x x
|
||||
*
|
||||
* 0 BL x BR
|
||||
* 0 1 2
|
||||
*
|
||||
* Note: Variable names mean nothing... don't touch
|
||||
*
|
||||
* ._.
|
||||
*
|
||||
* shakes fist in anger
|
||||
*/
|
||||
// @formatter:on
|
||||
protected void fillLightmap(int bottomLeft, int bottomRight, int topRight, int topLeft) {
|
||||
lightmap[0][0] = bottomLeft;
|
||||
lightmap[2][0] = bottomRight;
|
||||
lightmap[2][2] = topRight;
|
||||
lightmap[0][2] = topLeft;
|
||||
|
||||
lightmap[1][0] = avg(bottomLeft, bottomRight);
|
||||
lightmap[2][1] = avg(bottomRight, topRight);
|
||||
lightmap[1][2] = avg(topRight, topLeft);
|
||||
lightmap[0][1] = avg(topLeft, bottomLeft);
|
||||
|
||||
lightmap[1][1] = avg(bottomLeft, bottomRight, topRight, topLeft);
|
||||
}
|
||||
|
||||
protected void fillColormap(float bottomLeft, float bottomRight, float topRight, float topLeft, float[][] map) {
|
||||
map[0][0] = bottomLeft;
|
||||
map[2][0] = bottomRight;
|
||||
map[2][2] = topRight;
|
||||
map[0][2] = topLeft;
|
||||
|
||||
map[1][0] = (bottomLeft + bottomRight) / 2.0F;
|
||||
map[2][1] = (bottomRight + topRight) / 2.0F;
|
||||
map[1][2] = (topRight + topLeft) / 2.0F;
|
||||
map[0][1] = (topLeft + bottomLeft) / 2.0F;
|
||||
|
||||
map[1][1] = (bottomLeft + bottomRight + topRight + topLeft) / 4.0F;
|
||||
}
|
||||
|
||||
protected void getLight(int x, int y) {
|
||||
lightingCache[0] = lightmap[0 + x][0 + y];
|
||||
lightingCache[1] = lightmap[1 + x][0 + y];
|
||||
lightingCache[2] = lightmap[1 + x][1 + y];
|
||||
lightingCache[3] = lightmap[0 + x][1 + y];
|
||||
|
||||
redCache[0] = redmap[0 + x][0 + y];
|
||||
redCache[1] = redmap[1 + x][0 + y];
|
||||
redCache[2] = redmap[1 + x][1 + y];
|
||||
redCache[3] = redmap[0 + x][1 + y];
|
||||
|
||||
grnCache[0] = grnmap[0 + x][0 + y];
|
||||
grnCache[1] = grnmap[1 + x][0 + y];
|
||||
grnCache[2] = grnmap[1 + x][1 + y];
|
||||
grnCache[3] = grnmap[0 + x][1 + y];
|
||||
|
||||
bluCache[0] = blumap[0 + x][0 + y];
|
||||
bluCache[1] = blumap[1 + x][0 + y];
|
||||
bluCache[2] = blumap[1 + x][1 + y];
|
||||
bluCache[3] = blumap[0 + x][1 + y];
|
||||
}
|
||||
|
||||
/**
|
||||
* This works around a bug in CLC atm
|
||||
*/
|
||||
private int avg(int... lightVals) {
|
||||
blockLightBitChannel = 0;
|
||||
redBitChannel = 0;
|
||||
greenBitChannel = 0;
|
||||
blueBitChannel = 0;
|
||||
sunlightBitChannel = 0;
|
||||
|
||||
for (int light : lightVals) {
|
||||
blockLightBitChannel += (light & 0xFF);
|
||||
redBitChannel += (light & 0xF00);
|
||||
greenBitChannel += (light & 0xF000);
|
||||
blueBitChannel += (light & 0xF0000);
|
||||
sunlightBitChannel += (light & 0xF00000);
|
||||
}
|
||||
|
||||
return ((blockLightBitChannel / lightVals.length) & 0xFF) | ((redBitChannel / lightVals.length) & 0xF00) | ((greenBitChannel / lightVals.length) & 0xF000)
|
||||
| ((blueBitChannel / lightVals.length) & 0xF0000) | ((sunlightBitChannel / lightVals.length) & 0xF00000);
|
||||
}
|
||||
|
||||
protected void side(Block block, SubSide side, int iconIndex) {
|
||||
|
||||
IIcon icon;
|
||||
TextureSubmap map;
|
||||
if (iconIndex >= 16) {
|
||||
iconIndex -= 16;
|
||||
map = submapSmall;
|
||||
} else {
|
||||
map = submap;
|
||||
}
|
||||
|
||||
if (map == null) {
|
||||
icon = getBlockIconFromSideAndMetadata(block, side.normal.ordinal(), meta);
|
||||
} else {
|
||||
int x = iconIndex % map.getWidth();
|
||||
int y = iconIndex / map.getHeight();
|
||||
icon = map.getSubIcon(x, y);
|
||||
}
|
||||
|
||||
double umax = icon.getMaxU();
|
||||
double umin = icon.getMinU();
|
||||
double vmax = icon.getMaxV();
|
||||
double vmin = icon.getMinV();
|
||||
|
||||
minU = umin;
|
||||
maxU = umax;
|
||||
minV = vmin;
|
||||
maxV = vmax;
|
||||
|
||||
// uCache[0] = umin;
|
||||
// uCache[1] = umax;
|
||||
// uCache[2] = umax;
|
||||
// uCache[3] = umin;
|
||||
//
|
||||
// vCache[0] = vmax;
|
||||
// vCache[1] = vmax;
|
||||
// vCache[2] = vmin;
|
||||
// vCache[3] = vmin;
|
||||
|
||||
side.render(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderFaceXNeg(Block block, double x, double y, double z, IIcon icon) {
|
||||
pre(ForgeDirection.WEST);
|
||||
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
|
||||
super.renderFaceXNeg(block, 0, 0, 0, icon);
|
||||
} else {
|
||||
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 4);
|
||||
|
||||
fillLightmap(brightnessBottomRight, brightnessTopRight, brightnessTopLeft, brightnessBottomLeft);
|
||||
fillColormap(colorRedBottomRight, colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, redmap);
|
||||
fillColormap(colorGreenBottomRight, colorGreenTopRight, colorGreenTopLeft, colorGreenBottomLeft, grnmap);
|
||||
fillColormap(colorBlueBottomRight, colorBlueTopRight, colorBlueTopLeft, colorBlueBottomLeft, blumap);
|
||||
|
||||
getLight(0, 0);
|
||||
side(block, XNEG_LB, tex[0]);
|
||||
getLight(1, 0);
|
||||
side(block, XNEG_RB, tex[1]);
|
||||
getLight(1, 1);
|
||||
side(block, XNEG_RT, tex[2]);
|
||||
getLight(0, 1);
|
||||
side(block, XNEG_LT, tex[3]);
|
||||
}
|
||||
post(ForgeDirection.WEST);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderFaceXPos(Block block, double x, double y, double z, IIcon icon) {
|
||||
pre(ForgeDirection.EAST);
|
||||
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
|
||||
super.renderFaceXPos(block, 0, 0, 0, icon);
|
||||
} else {
|
||||
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 5);
|
||||
|
||||
fillLightmap(brightnessTopLeft, brightnessBottomLeft, brightnessBottomRight, brightnessTopRight);
|
||||
fillColormap(colorRedTopLeft, colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, redmap);
|
||||
fillColormap(colorGreenTopLeft, colorGreenBottomLeft, colorGreenBottomRight, colorGreenTopRight, grnmap);
|
||||
fillColormap(colorBlueTopLeft, colorBlueBottomLeft, colorBlueBottomRight, colorBlueTopRight, blumap);
|
||||
|
||||
getLight(0, 0);
|
||||
side(block, XPOS_LB, tex[0]);
|
||||
getLight(1, 0);
|
||||
side(block, XPOS_RB, tex[1]);
|
||||
getLight(1, 1);
|
||||
side(block, XPOS_RT, tex[2]);
|
||||
getLight(0, 1);
|
||||
side(block, XPOS_LT, tex[3]);
|
||||
}
|
||||
post(ForgeDirection.EAST);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderFaceZNeg(Block block, double x, double y, double z, IIcon icon) {
|
||||
pre(ForgeDirection.NORTH);
|
||||
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
|
||||
super.renderFaceZNeg(block, 0, 0, 0, icon);
|
||||
} else {
|
||||
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 2);
|
||||
|
||||
fillLightmap(brightnessBottomRight, brightnessTopRight, brightnessTopLeft, brightnessBottomLeft);
|
||||
fillColormap(colorRedBottomRight, colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, redmap);
|
||||
fillColormap(colorGreenBottomRight, colorGreenTopRight, colorGreenTopLeft, colorGreenBottomLeft, grnmap);
|
||||
fillColormap(colorBlueBottomRight, colorBlueTopRight, colorBlueTopLeft, colorBlueBottomLeft, blumap);
|
||||
|
||||
getLight(0, 0);
|
||||
side(block, ZNEG_LB, tex[0]);
|
||||
getLight(1, 0);
|
||||
side(block, ZNEG_RB, tex[1]);
|
||||
getLight(1, 1);
|
||||
side(block, ZNEG_RT, tex[2]);
|
||||
getLight(0, 1);
|
||||
side(block, ZNEG_LT, tex[3]);
|
||||
}
|
||||
post(ForgeDirection.NORTH);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderFaceZPos(Block block, double x, double y, double z, IIcon icon) {
|
||||
pre(ForgeDirection.SOUTH);
|
||||
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
|
||||
super.renderFaceZPos(block, 0, 0, 0, icon);
|
||||
} else {
|
||||
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 3);
|
||||
|
||||
|
||||
fillLightmap(brightnessBottomLeft, brightnessBottomRight, brightnessTopRight, brightnessTopLeft);
|
||||
fillColormap(colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, colorRedTopLeft, redmap);
|
||||
fillColormap(colorGreenBottomLeft, colorGreenBottomRight, colorGreenTopRight, colorGreenTopLeft, grnmap);
|
||||
fillColormap(colorBlueBottomLeft, colorBlueBottomRight, colorBlueTopRight, colorBlueTopLeft, blumap);
|
||||
|
||||
getLight(0, 0);
|
||||
side(block, ZPOS_LB, tex[0]);
|
||||
getLight(1, 0);
|
||||
side(block, ZPOS_RB, tex[1]);
|
||||
getLight(1, 1);
|
||||
side(block, ZPOS_RT, tex[2]);
|
||||
getLight(0, 1);
|
||||
side(block, ZPOS_LT, tex[3]);
|
||||
}
|
||||
post(ForgeDirection.SOUTH);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderFaceYNeg(Block block, double x, double y, double z, IIcon icon) {
|
||||
pre(ForgeDirection.DOWN);
|
||||
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
|
||||
super.renderFaceYNeg(block, 0, 0, 0, icon);
|
||||
} else {
|
||||
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 0);
|
||||
|
||||
fillLightmap(brightnessBottomLeft, brightnessBottomRight, brightnessTopRight, brightnessTopLeft);
|
||||
fillColormap(colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, colorRedTopLeft, redmap);
|
||||
fillColormap(colorGreenBottomLeft, colorGreenBottomRight, colorGreenTopRight, colorGreenTopLeft, grnmap);
|
||||
fillColormap(colorBlueBottomLeft, colorBlueBottomRight, colorBlueTopRight, colorBlueTopLeft, blumap);
|
||||
|
||||
getLight(0, 0);
|
||||
side(block, YNEG_LB, tex[0]);
|
||||
getLight(1, 0);
|
||||
side(block, YNEG_RB, tex[1]);
|
||||
getLight(1, 1);
|
||||
side(block, YNEG_RT, tex[2]);
|
||||
getLight(0, 1);
|
||||
side(block, YNEG_LT, tex[3]);
|
||||
}
|
||||
post(ForgeDirection.DOWN);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderFaceYPos(Block block, double x, double y, double z, IIcon icon) {
|
||||
pre(ForgeDirection.UP);
|
||||
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
|
||||
super.renderFaceYPos(block, 0, 0, 0, icon);
|
||||
} else {
|
||||
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 1);
|
||||
|
||||
fillLightmap(brightnessTopRight, brightnessTopLeft, brightnessBottomLeft, brightnessBottomRight);
|
||||
fillColormap(colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, colorRedBottomRight, redmap);
|
||||
fillColormap(colorGreenTopRight, colorGreenTopLeft, colorGreenBottomLeft, colorGreenBottomRight, grnmap);
|
||||
fillColormap(colorBlueTopRight, colorBlueTopLeft, colorBlueBottomLeft, colorBlueBottomRight, blumap);
|
||||
|
||||
getLight(0, 0);
|
||||
side(block, YPOS_LB, tex[0]);
|
||||
getLight(1, 0);
|
||||
side(block, YPOS_RB, tex[1]);
|
||||
getLight(1, 1);
|
||||
side(block, YPOS_RT, tex[2]);
|
||||
getLight(0, 1);
|
||||
side(block, YPOS_LT, tex[3]);
|
||||
}
|
||||
post(ForgeDirection.UP);
|
||||
}
|
||||
|
||||
protected void pre(ForgeDirection face) {
|
||||
manager.preRenderSide(this, blockAccess, bx, by, bz, face);
|
||||
}
|
||||
|
||||
protected void post(ForgeDirection face) {
|
||||
manager.postRenderSide(this, blockAccess, bx, by, bz, face);
|
||||
}
|
||||
}
|
||||
@@ -1,160 +0,0 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
||||
/**
|
||||
* Used by {@link TextureType#CTMV}
|
||||
*/
|
||||
public class RenderBlocksColumn extends RenderBlocks {
|
||||
|
||||
public TextureSubmap submap;
|
||||
public IIcon iconTop;
|
||||
private boolean inWorld;
|
||||
|
||||
private IIcon sides[] = new IIcon[6];
|
||||
private CTM ctm = CTM.getInstance();
|
||||
|
||||
public RenderBlocksColumn() {
|
||||
super();
|
||||
}
|
||||
|
||||
boolean connected(IBlockAccess world, int x, int y, int z, Block block, int meta) {
|
||||
Block inWorld = ctm.getBlockOrFacade(world, x, y, z, -1);
|
||||
return inWorld != null && inWorld.equals(block) && ctm.getBlockOrFacadeMetadata(world, x, y, z, -1) == meta;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderStandardBlock(Block block, int x, int y, int z) {
|
||||
int metadata = blockAccess.getBlockMetadata(x, y, z);
|
||||
inWorld = true;
|
||||
|
||||
boolean yp = connected(blockAccess, x, y + 1, z, block, metadata);
|
||||
boolean yn = connected(blockAccess, x, y - 1, z, block, metadata);
|
||||
|
||||
if (yp || yn) {
|
||||
sides[0] = iconTop;
|
||||
sides[1] = iconTop;
|
||||
|
||||
if (yp && yn)
|
||||
sides[2] = submap.getSubIcon(0, 1);
|
||||
else if (yp)
|
||||
sides[2] = submap.getSubIcon(1, 1);
|
||||
else
|
||||
sides[2] = submap.getSubIcon(1, 0);
|
||||
|
||||
sides[3] = sides[4] = sides[5] = sides[2];
|
||||
} else {
|
||||
boolean xp = connected(blockAccess, x + 1, y, z, block, metadata);
|
||||
boolean xn = connected(blockAccess, x - 1, y, z, block, metadata);
|
||||
|
||||
if (xp && (connected(blockAccess, x + 1, y + 1, z, block, metadata) || connected(blockAccess, x + 1, y - 1, z, block, metadata)))
|
||||
xp = false;
|
||||
if (xn && (connected(blockAccess, x - 1, y + 1, z, block, metadata) || connected(blockAccess, x - 1, y - 1, z, block, metadata)))
|
||||
xn = false;
|
||||
|
||||
if (xp || xn) {
|
||||
uvRotateEast = 2;
|
||||
uvRotateWest = 1;
|
||||
uvRotateTop = 1;
|
||||
uvRotateBottom = 1;
|
||||
|
||||
sides[4] = iconTop;
|
||||
sides[5] = iconTop;
|
||||
|
||||
// for some reason along the x axis the bottom texture on the ends is backwards. This flips it around.
|
||||
if (xp && xn) {
|
||||
sides[1] = submap.getSubIcon(0, 1);
|
||||
sides[0] = sides[1];
|
||||
} else if (xp) {
|
||||
sides[1] = submap.getSubIcon(1, 1);
|
||||
sides[0] = submap.getSubIcon(1, 0);
|
||||
} else {
|
||||
sides[1] = submap.getSubIcon(1, 0);
|
||||
sides[0] = submap.getSubIcon(1, 1);
|
||||
}
|
||||
sides[2] = sides[3] = sides[1];
|
||||
} else {
|
||||
boolean zp = connected(blockAccess, x, y, z + 1, block, metadata);
|
||||
boolean zn = connected(blockAccess, x, y, z - 1, block, metadata);
|
||||
|
||||
if (zp && (connected(blockAccess, x, y + 1, z + 1, block, metadata) || connected(blockAccess, x, y - 1, z + 1, block, metadata)))
|
||||
zp = false;
|
||||
if (zp && (connected(blockAccess, x + 1, y, z + 1, block, metadata) || connected(blockAccess, x - 1, y, z + 1, block, metadata)))
|
||||
zp = false;
|
||||
if (zn && (connected(blockAccess, x, y + 1, z - 1, block, metadata) || connected(blockAccess, x, y - 1, z - 1, block, metadata)))
|
||||
zn = false;
|
||||
if (zn && (connected(blockAccess, x + 1, y, z - 1, block, metadata) || connected(blockAccess, x - 1, y, z - 1, block, metadata)))
|
||||
zn = false;
|
||||
|
||||
if (zp || zn) {
|
||||
uvRotateSouth = 1;
|
||||
uvRotateNorth = 2;
|
||||
|
||||
sides[2] = iconTop;
|
||||
sides[3] = iconTop;
|
||||
|
||||
if (zp && zn)
|
||||
sides[0] = submap.getSubIcon(0, 1);
|
||||
else if (zp)
|
||||
sides[0] = submap.getSubIcon(1, 0);
|
||||
else
|
||||
sides[0] = submap.getSubIcon(1, 1);
|
||||
|
||||
sides[1] = sides[4] = sides[5] = sides[0];
|
||||
} else {
|
||||
sides[0] = sides[1] = iconTop;
|
||||
sides[2] = sides[3] = sides[4] = sides[5] = submap.getSubIcon(0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
boolean flag = super.renderStandardBlock(block, x, y, z);
|
||||
|
||||
uvRotateSouth = 0;
|
||||
uvRotateEast = 0;
|
||||
uvRotateWest = 0;
|
||||
uvRotateNorth = 0;
|
||||
uvRotateTop = 0;
|
||||
uvRotateBottom = 0;
|
||||
|
||||
inWorld = false;
|
||||
return flag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderFaceXNeg(Block block, double x, double y, double z, IIcon icon) {
|
||||
super.renderFaceXNeg(block, x, y, z, getIcon(icon, 4));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderFaceXPos(Block block, double x, double y, double z, IIcon icon) {
|
||||
super.renderFaceXPos(block, x, y, z, getIcon(icon, 5));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderFaceZNeg(Block block, double x, double y, double z, IIcon icon) {
|
||||
super.renderFaceZNeg(block, x, y, z, getIcon(icon, 2));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderFaceZPos(Block block, double x, double y, double z, IIcon icon) {
|
||||
super.renderFaceZPos(block, x, y, z, getIcon(icon, 3));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderFaceYNeg(Block block, double x, double y, double z, IIcon icon) {
|
||||
super.renderFaceYNeg(block, x, y, z, getIcon(icon, 0));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderFaceYPos(Block block, double x, double y, double z, IIcon icon) {
|
||||
super.renderFaceYPos(block, x, y, z, getIcon(icon, 1));
|
||||
}
|
||||
|
||||
private IIcon getIcon(IIcon defaultIcon, int side) {
|
||||
return sides[side] == null || !inWorld ? defaultIcon : sides[side];
|
||||
}
|
||||
}
|
||||
@@ -1,72 +0,0 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import lombok.Getter;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
/**
|
||||
* A convenience implementation of {@link ISubmapManager} which does the standard CTM behavior.
|
||||
*/
|
||||
public class SubmapManagerCTM implements ISubmapManager {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private static RenderBlocksCTM rb;
|
||||
|
||||
@Getter
|
||||
private TextureSubmap submap, submapSmall;
|
||||
@Getter
|
||||
private final String textureName;
|
||||
|
||||
/**
|
||||
* @param textureName
|
||||
* The path to the texture, excluding the mod ID (this is passed into {@link #registerIcons(String, Block, IIconRegister)}).
|
||||
* <p>
|
||||
* The CTM texture will be this path, plus {@code "-ctm"}.
|
||||
*/
|
||||
public SubmapManagerCTM(String textureName) {
|
||||
this.textureName = textureName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(int side, int meta) {
|
||||
return submapSmall.getBaseIcon();
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
|
||||
return getIcon(side, world.getBlockMetadata(x, y, z));
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(String modName, Block block, IIconRegister register) {
|
||||
submap = new TextureSubmap(register.registerIcon(modName + ":" + textureName + "-ctm"), 4, 4);
|
||||
submapSmall = new TextureSubmap(register.registerIcon(modName + ":" + textureName), 2, 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||
if (rb == null) {
|
||||
rb = new RenderBlocksCTM();
|
||||
}
|
||||
rb.setRenderBoundsFromBlock(block);
|
||||
rb.submap = submap;
|
||||
rb.submapSmall = submapSmall;
|
||||
return rb;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void preRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {
|
||||
}
|
||||
}
|
||||
@@ -1,233 +0,0 @@
|
||||
package team.chisel.ctmlib;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraftforge.client.event.TextureStitchEvent;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
/**
|
||||
* This class is used to split up a large IIcon into smaller "submapped" icons used for CTM and other texture manipulation.
|
||||
*/
|
||||
public class TextureSubmap implements IIcon, ISubmap {
|
||||
|
||||
private static List<TextureSubmap> submaps = Lists.newArrayList();
|
||||
private static TextureSubmap dummy = new TextureSubmap(null, 0, 0);
|
||||
static {
|
||||
MinecraftForge.EVENT_BUS.register(dummy);
|
||||
}
|
||||
|
||||
private int width, height;
|
||||
|
||||
private IIcon baseIcon;
|
||||
|
||||
protected IIcon[][] icons;
|
||||
|
||||
/**
|
||||
* Construct a new submap. A submap is not required to be square, but it is required to be rectangular.
|
||||
*
|
||||
* @param baseIcon
|
||||
* The IIcon to submap.
|
||||
* @param width
|
||||
* The width of the map, in icons.
|
||||
* @param height
|
||||
* The height of the map, in icons.
|
||||
*/
|
||||
public TextureSubmap(IIcon baseIcon, int width, int height) {
|
||||
this.baseIcon = baseIcon;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.icons = new IIcon[width][height];
|
||||
submaps.add(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* The large "base" icon used for the submap.
|
||||
*/
|
||||
public IIcon getBaseIcon() {
|
||||
return baseIcon;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all the icons in this submap. This is an expensive operation as it first clones the entire 2D array.
|
||||
*
|
||||
* @return All icons in this submap.
|
||||
*/
|
||||
public IIcon[][] getAllIcons() {
|
||||
IIcon[][] ret = ArrayUtils.clone(icons);
|
||||
for (int i = 0; i < ret.length; i++) {
|
||||
ret[i] = ArrayUtils.clone(ret[i]);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* ==== ISubmap ==== */
|
||||
|
||||
/**
|
||||
* Finds and returns the sub-icon at the given coordinates. For example, if you have a 3 by 3 submap, calling {@code getSubIcon(1, 1)} will return the center subicon.
|
||||
*/
|
||||
@Override
|
||||
public IIcon getSubIcon(int x, int y) {
|
||||
x = x % icons.length;
|
||||
return icons[x][y % icons[x].length];
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWidth() {
|
||||
return width;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getHeight() {
|
||||
return height;
|
||||
}
|
||||
|
||||
/* ==== Internal Stitching Logic ==== */
|
||||
|
||||
/**
|
||||
* For internal use only, this is used to create the virtual "subicons" used in the map.
|
||||
*/
|
||||
@SubscribeEvent
|
||||
public final void TexturesStitched(TextureStitchEvent.Post event) {
|
||||
for (TextureSubmap ts : submaps) {
|
||||
ts.texturesStitched();
|
||||
}
|
||||
}
|
||||
|
||||
public void texturesStitched() {
|
||||
for (int x = 0; x < width; x++) {
|
||||
for (int y = 0; y < height; y++) {
|
||||
icons[x][y] = new TextureVirtual(getBaseIcon(), width, height, x, y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconWidth() {
|
||||
return baseIcon.getIconWidth();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconHeight() {
|
||||
return baseIcon.getIconHeight();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMinU() {
|
||||
return baseIcon.getMinU();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMaxU() {
|
||||
return baseIcon.getMaxU();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getInterpolatedU(double p_94214_1_) {
|
||||
return baseIcon.getInterpolatedU(p_94214_1_);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMinV() {
|
||||
return baseIcon.getMinV();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMaxV() {
|
||||
return baseIcon.getMaxV();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getInterpolatedV(double p_94207_1_) {
|
||||
return baseIcon.getInterpolatedV(p_94207_1_);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIconName() {
|
||||
return baseIcon.getIconName();
|
||||
}
|
||||
|
||||
private class TextureVirtual implements IIcon {
|
||||
|
||||
private int width, height;
|
||||
private float umin, umax, vmin, vmax;
|
||||
private String name;
|
||||
private IIcon parentIcon;
|
||||
|
||||
private TextureVirtual(IIcon parent, int w, int h, int x, int y) {
|
||||
parentIcon = parent;
|
||||
|
||||
umin = parentIcon.getInterpolatedU(16.0 * (x) / w);
|
||||
umax = parentIcon.getInterpolatedU(16.0 * (x + 1) / w);
|
||||
vmin = parentIcon.getInterpolatedV(16.0 * (y) / h);
|
||||
vmax = parentIcon.getInterpolatedV(16.0 * (y + 1) / h);
|
||||
|
||||
name = parentIcon.getIconName() + "|" + x + "." + y;
|
||||
|
||||
width = parentIcon.getIconWidth();
|
||||
height = parentIcon.getIconHeight();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMinU() {
|
||||
return umin;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMaxU() {
|
||||
return umax;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getInterpolatedU(double d0) {
|
||||
return (float) (umin + (umax - umin) * d0 / 16.0);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMinV() {
|
||||
return vmin;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMaxV() {
|
||||
return vmax;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getInterpolatedV(double d0) {
|
||||
return (float) (vmin + (vmax - vmin) * d0 / 16.0);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public String getIconName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int getIconWidth() {
|
||||
return width;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int getIconHeight() {
|
||||
return height;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,12 +5,13 @@ import net.minecraft.inventory.Container;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import team.chisel.block.tileentity.TileEntityPresent;
|
||||
|
||||
public class ContainerPresent extends Container {
|
||||
|
||||
private IInventory lower;
|
||||
private int rows;
|
||||
|
||||
private boolean isContainerValid = true;
|
||||
public ContainerPresent(IInventory player, IInventory chest) {
|
||||
lower = chest;
|
||||
rows = chest.getSizeInventory() / 9;
|
||||
@@ -68,6 +69,19 @@ public class ContainerPresent extends Container {
|
||||
|
||||
@Override
|
||||
public boolean canInteractWith(EntityPlayer p_75145_1_) {
|
||||
return true;
|
||||
return isContainerValid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void detectAndSendChanges()
|
||||
{
|
||||
TileEntityPresent te = (TileEntityPresent)lower;
|
||||
if( te != null && te.hasWorldObj() && !te.getWorldObj().isRemote)
|
||||
{
|
||||
if (te.getWorldObj().getTileEntity(te.xCoord, te.yCoord, te.zCoord) != te)
|
||||
isContainerValid = false;
|
||||
}
|
||||
super.detectAndSendChanges();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -51,6 +51,11 @@ public class ItemChisel extends Item implements IChiselItem {
|
||||
this.type = type;
|
||||
setMaxStackSize(1);
|
||||
setTextureName(Chisel.MOD_ID + ":chisel_" + type.name().toLowerCase(Locale.ENGLISH));
|
||||
if(type == ChiselType.NETHERSTAR && Chisel.gtnhLoaded) {
|
||||
setUnlocalizedName(Chisel.MOD_ID + ".chisel_" + type.name().toLowerCase() + ".gtnh");
|
||||
} else {
|
||||
setUnlocalizedName(Chisel.MOD_ID + ".chisel_" + type.name().toLowerCase());
|
||||
}
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
}
|
||||
|
||||
@@ -81,11 +86,6 @@ public class ItemChisel extends Item implements IChiselItem {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack stack) {
|
||||
return "item." + Chisel.MOD_ID + ".chisel_" + type.name().toLowerCase();
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean held) {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package team.chisel.utils;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.CraftingManager;
|
||||
import net.minecraft.item.crafting.FurnaceRecipes;
|
||||
@@ -13,6 +12,7 @@ import java.util.List;
|
||||
*/
|
||||
public class RecipeUtil {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static boolean isCraftable(ItemStack stack){
|
||||
for (IRecipe recipe : (List<IRecipe>)CraftingManager.getInstance().getRecipeList()){
|
||||
if (recipe.getRecipeOutput()==null){
|
||||
|
||||
@@ -15,6 +15,8 @@ item.chisel.chisel.desc.modes=Verfügt über mehrere Modi zum Meißeln.
|
||||
|
||||
item.chisel.chisel_diamond.name=Diamantmeißel
|
||||
item.chisel.chisel_obsidian.name=Obsidianmeißel
|
||||
item.chisel.chisel_netherstar.name=Nethersternmeißel
|
||||
item.chisel.chisel_netherstar.gtnh.name=Bedrockiummeißel
|
||||
|
||||
item.ballMoss.name=Moosball
|
||||
item.ballMoss.desc=Rechtsklick, um ihn zu werfen. Verwandelt Bruchstein in bemoosten Bruchstein.
|
||||
|
||||
@@ -15,6 +15,8 @@ item.chisel.chisel.desc.modes=Has multiple modes for chiseling.
|
||||
|
||||
item.chisel.chisel_diamond.name=Diamond Chisel
|
||||
item.chisel.chisel_obsidian.name=Obsidian Chisel
|
||||
item.chisel.chisel_netherstar.name=Nether Star Chisel
|
||||
item.chisel.chisel_netherstar.gtnh.name=Bedrockium Chisel
|
||||
|
||||
item.ballMoss.name=Ball O' Moss
|
||||
item.ballMoss.desc=Right-Click to throw. This will turn Cobblestone to Moss Stone on impact.
|
||||
|
||||
@@ -15,6 +15,8 @@ item.chisel.chisel.desc.modes=Has multiple modes for chiseling.
|
||||
|
||||
item.chisel.chisel_diamond.name=Diamond Chisel
|
||||
item.chisel.chisel_obsidian.name=Obsidian Chisel
|
||||
item.chisel.chisel_netherstar.name=Nether Star Chisel
|
||||
item.chisel.chisel_netherstar.gtnh.name=Bedrockium Chisel
|
||||
|
||||
# Item localizations
|
||||
item.ballMoss.name=Ball O' Moss
|
||||
|
||||
@@ -17,6 +17,7 @@ item.chisel.chisel.desc.modes=Has multiple modes for chiseling.
|
||||
item.chisel.chisel_diamond.name=Diamond Chisel
|
||||
item.chisel.chisel_obsidian.name=Obsidian Chisel
|
||||
item.chisel.chisel_netherstar.name=Nether Star Chisel
|
||||
item.chisel.chisel_netherstar.gtnh.name=Bedrockium Chisel
|
||||
|
||||
item.ballMoss.name=Ball O' Moss
|
||||
item.ballMoss.desc=Right-Click to throw. This will turn Cobblestone to Moss Stone on impact.
|
||||
@@ -34,7 +35,7 @@ item.upgrade_automation.desc=Allows things to push in and out of the Auto Chisel
|
||||
item.upgrade_stack.desc=Allows it to manufacture stacks at a time
|
||||
item.upgrade_reversion.desc=Reverts the base slot to its original form
|
||||
|
||||
# Block localizations
|
||||
#Block localizations
|
||||
|
||||
#Chisel 2
|
||||
|
||||
@@ -1723,7 +1724,7 @@ black.pane.glass.noborder.desc=Black Borderless Glass
|
||||
black.pane.glass.quadrant.desc=Black Quadrant Glass
|
||||
black.pane.glass.fancyquadrant.desc=Black Fancy Quadrant Glass
|
||||
|
||||
# Creative Tab localizations
|
||||
#Creative Tab localizations
|
||||
itemGroup.tabOtherChiselBlocks=Other Chisel Blocks
|
||||
itemGroup.tabStoneChiselBlocks=Stone Chisel Blocks
|
||||
itemGroup.tabWoodChiselBlocks=Wood Chisel Blocks
|
||||
|
||||
@@ -15,6 +15,8 @@ item.chisel.chisel.desc.modes=Has multiple modes for chiseling.
|
||||
|
||||
item.chisel.chisel_diamond.name=Diamond Chisel
|
||||
item.chisel.chisel_obsidian.name=Obsidian Chisel
|
||||
item.chisel.chisel_netherstar.name=Nether Star Chisel
|
||||
item.chisel.chisel_netherstar.gtnh.name=Bedrockium Chisel
|
||||
|
||||
# Item localizations
|
||||
item.ballMoss.name=Balle à mousse
|
||||
|
||||
@@ -15,6 +15,8 @@ item.chisel.chisel.desc.modes=변환 범위를 선택 할 수 있습니다.
|
||||
|
||||
item.chisel.chisel_diamond.name=다이아몬드 끌
|
||||
item.chisel.chisel_obsidian.name=흑요석 끌
|
||||
item.chisel.chisel_netherstar.name=Nether Star Chisel
|
||||
item.chisel.chisel_netherstar.gtnh.name=Bedrockium Chisel
|
||||
|
||||
item.ballMoss.name=이끼 공
|
||||
item.ballMoss.desc=우클릭으로 던지기. 돌과 조약돌에 이끼가 낍니다.
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
#Key localizations
|
||||
|
||||
# Stat localizations
|
||||
#Stat localizations
|
||||
stat.blockChiseled=Блоков обработано
|
||||
|
||||
# Entity localizations
|
||||
#Entity localizations
|
||||
entity.chisel.snowman.name=Снеговик
|
||||
|
||||
# Item localizations
|
||||
#Item localizations
|
||||
item.chisel.chisel_iron.name=Стамеска
|
||||
|
||||
item.chisel.chisel.desc.gui=ПКМ, чтобы открыть интерфейс
|
||||
@@ -15,6 +16,8 @@ item.chisel.chisel.desc.modes=Обладает разными режимами
|
||||
|
||||
item.chisel.chisel_diamond.name=Алмазная стамеска
|
||||
item.chisel.chisel_obsidian.name=Обсидиановая стамеска
|
||||
item.chisel.chisel_netherstar.name=Стамеска из адских звёзд
|
||||
item.chisel.chisel_netherstar.gtnh.name=Бедрокиевая стамеска
|
||||
|
||||
item.ballMoss.name=Шарик мха
|
||||
item.ballMoss.desc=ПКМ, чтобы кинуть. Превратить булыжник в замшелый булыжник при столкновении.
|
||||
@@ -32,9 +35,11 @@ item.upgrade_automation.desc=Позволяет предметам входит
|
||||
item.upgrade_stack.desc=Позволяет стамеске обрабатывать целый стак предметов
|
||||
item.upgrade_reversion.desc=Возвращает основной слот к первоначальной форме
|
||||
|
||||
#Block localizations
|
||||
|
||||
#Chisel 2
|
||||
|
||||
# Nation
|
||||
#Nation
|
||||
tile.chisel.nation.name=Империалистический блок
|
||||
tile.chisel.rebel.name=Повстанческий блок
|
||||
tile.nation.0.desc=Замаскированный
|
||||
@@ -43,7 +48,7 @@ tile.nation.2.desc=Болтовое покрытие
|
||||
tile.nation.3.desc=Белая предупреждающая лента
|
||||
tile.nation.4.desc=Соединённая предупреждающая лента
|
||||
|
||||
# Shingles
|
||||
#Shingles
|
||||
tile.chisel.shingles.name=Черепица
|
||||
tile.shingles.0.desc=Красная диагональ
|
||||
tile.shingles.1.desc=Красные малые квадраты
|
||||
@@ -52,12 +57,20 @@ tile.shingles.3.desc=Чёрная диагональ
|
||||
tile.shingles.4.desc=Чёрные малые квадраты
|
||||
tile.shingles.5.desc=Чёрные большие квадраты
|
||||
|
||||
# Valentines
|
||||
#Valentines
|
||||
tile.chisel.valentines.name=Блок Валентина
|
||||
tile.valentines.0.desc=Кирпичи Валентина
|
||||
tile.valentines.1.desc=Если оно говорит, я не буду его трогать
|
||||
tile.valentines.2.desc=
|
||||
tile.valentines.3.desc=
|
||||
tile.valentines.4.desc=
|
||||
tile.valentines.5.desc=
|
||||
tile.valentines.6.desc=
|
||||
tile.valentines.7.desc=
|
||||
tile.valentines.8.desc=
|
||||
tile.valentines.9.desc=
|
||||
|
||||
# AntiBlocks
|
||||
#AntiBlocks
|
||||
tile.chisel.antiBlock.name=Анти-блок
|
||||
tile.antiBlock.black.desc=Чёрный анти-блок
|
||||
tile.antiBlock.blue.desc=Синий анти-блок
|
||||
@@ -76,7 +89,7 @@ tile.antiBlock.white.desc=Белый анти-блок
|
||||
tile.antiBlock.yellow.desc=Жёлтый анти-блок
|
||||
tile.antiBlock.gray.desc=Серый анти-блок
|
||||
|
||||
# Diorite
|
||||
#Diorite
|
||||
tile.chisel.diorite.name=Диорит
|
||||
tile.diorite.0.desc=Генерируется в Вашем мире
|
||||
tile.diorite.1.desc=Гладкий диорит
|
||||
@@ -86,7 +99,7 @@ tile.diorite.4.desc=Декоративный диорит
|
||||
tile.diorite.5.desc=Призматический диорит
|
||||
tile.diorite.6.desc=Диоритовые маленькие плитки
|
||||
|
||||
# Andesite
|
||||
#Andesite
|
||||
tile.chisel.andesite.name=Андезит
|
||||
tile.andesite.0.desc=Генерируется в Вашем мире
|
||||
tile.andesite.1.desc=Гладкий андезит
|
||||
@@ -96,7 +109,7 @@ tile.andesite.4.desc=Декоративный андезит
|
||||
tile.andesite.5.desc=Призматический андезит
|
||||
tile.andesite.6.desc=Андезитовые маленькие плитки
|
||||
|
||||
# Granite
|
||||
#Granite
|
||||
tile.chisel.granite.name=Гранит
|
||||
tile.granite.0.desc=Генерируется в Вашем мире
|
||||
tile.granite.1.desc=Гладкий гранит
|
||||
@@ -106,24 +119,24 @@ tile.granite.4.desc=Декоративный гранит
|
||||
tile.granite.5.desc=Призматический гранит
|
||||
tile.granite.6.desc=Гранитовые маленькие плитки
|
||||
|
||||
# Auto Chisel
|
||||
#Auto Chisel
|
||||
tile.chisel.autoChisel.name=Автоматическая стамеска
|
||||
autochisel.slot.chisel.tooltip=Слот стамески
|
||||
autochisel.slot.target.tooltip=Слот блока
|
||||
autochisel.slot.speed.tooltip=Улучшение «Скорость»
|
||||
autochisel.slot.automation.tooltip=Улучшение «Автоматизация»
|
||||
autochisel.slot.stack.tooltip=Улучшение «Складывание»
|
||||
autochisel.slot.reversion.tooltip=Улучшение «Реверсия»
|
||||
chisel.autochisel.upgrade.disabled=Upgrades Disabled
|
||||
autochisel.slot.speed.tooltip=Улучшение Скорость
|
||||
autochisel.slot.automation.tooltip=Улучшение Автоматизация
|
||||
autochisel.slot.stack.tooltip=Улучшение Складывание
|
||||
autochisel.slot.reversion.tooltip=Улучшение Реверсия
|
||||
chisel.autochisel.upgrade.disabled=Улучшения отключены
|
||||
|
||||
# Beacon
|
||||
#Beacon
|
||||
tile.chisel.beacon.name=Маяк
|
||||
tile.beacon.black.desc=Маяк с чёрным лучом
|
||||
tile.beacon.blue.desc=Маяк с синем лучом
|
||||
tile.beacon.brown.desc=Маяк с коричневым лучом
|
||||
tile.beacon.cyan.desc=Маяк с бирюзовым лучом
|
||||
tile.beacon.green.desc=Маяк с зелёным лучом
|
||||
tile.beacon.lightblue.desc=Light Blue Beamed Beacon
|
||||
tile.beacon.lightblue.desc=Маяк со голубым лучом
|
||||
tile.beacon.silver.desc=Маяк со светло-серым лучом
|
||||
tile.beacon.lime.desc=Маяк с лаймовым лучом
|
||||
tile.beacon.magenta.desc=Маяк с сиреневым лучом
|
||||
@@ -135,7 +148,7 @@ tile.beacon.white.desc=Маяк с белым лучом
|
||||
tile.beacon.yellow.desc=Маяк с жёлтым лучом
|
||||
tile.beacon.gray.desc=Маяк с серым лучом
|
||||
|
||||
# Leaves
|
||||
#Leaves
|
||||
tile.chisel.leaves.name=Листва
|
||||
tile.leaves.6.desc=Мёртвая листва
|
||||
tile.leaves.7.desc=Красивая листва
|
||||
@@ -145,7 +158,7 @@ tile.leaves.10.desc=Белая роза
|
||||
tile.leaves.11.desc=Рождественские шары
|
||||
tile.leaves.12.desc=Рождественские огни
|
||||
|
||||
# Void Stone Blocks
|
||||
#Void Stone Blocks
|
||||
tile.chisel.voidstone.name=Пустотный камень
|
||||
tile.voidstone.0.desc=Необработанный пустотный камень
|
||||
tile.voidstone.1.desc=Большие плитки пустотного камня
|
||||
@@ -172,11 +185,11 @@ tile.voidstoneRunic.green.desc=Пустотный камень - Зелёная
|
||||
tile.voidstoneRunic.red.desc=Пустотный камень - Красная руна
|
||||
tile.voidstoneRunic.black.desc=Пустотный камень - Чёрная руна
|
||||
|
||||
# Void Stone Pillars
|
||||
#Void Stone Pillars
|
||||
tile.chisel.voidstonePillar.name=Колонна из пустотного камня
|
||||
tile.voidstonePillar.0.desc=Полосатая колонна из пустотного камня
|
||||
|
||||
# Warning
|
||||
#Warning
|
||||
tile.chisel.warningSign.name=Предупреждающая табличка
|
||||
tile.warningSign.0.desc=Радиация
|
||||
tile.warningSign.1.desc=Биологическая опасность
|
||||
@@ -194,7 +207,7 @@ tile.warningSign.12.desc=Вход запрещён
|
||||
tile.warningSign.13.desc=В ходе криогенной заморозки
|
||||
tile.warningSign.14.desc=Необходим кислород
|
||||
|
||||
# Energised Void Stone Blocks
|
||||
#Energised Void Stone Blocks
|
||||
tile.chisel.voidstone2.name=Заряженный пустотный камень
|
||||
tile.voidstone2.0.desc=Необработанный заряженный пустотный камень
|
||||
tile.voidstone2.1.desc=Большие плитки заряженного пустотного камня
|
||||
@@ -205,11 +218,11 @@ tile.voidstone2.5.desc=Огранённый металлом заряженны
|
||||
tile.voidstone2.6.desc=Глазной заряженный пустотный камень
|
||||
tile.voidstone2.7.desc=Скошенный пустотный камень
|
||||
|
||||
# Void Stone Pillars
|
||||
#Void Stone Pillars
|
||||
tile.chisel.voidstonePillar2.name=Колонна из заряженного пустотного камня
|
||||
tile.voidstonePillar2.0.desc=Полосатая колонна из заряженного пустотного камня
|
||||
|
||||
# Arcane
|
||||
#Arcane
|
||||
tile.chisel.arcane.name=Магический каменный блок
|
||||
tile.arcane.0.desc=Выгравированная Луна
|
||||
tile.arcane.1.desc=Светящаяся Луна
|
||||
@@ -224,7 +237,7 @@ tile.arcane.9.desc=Неприятные геоглифы Наски
|
||||
tile.arcane.10.desc=Изысканная эмблема тауматурга
|
||||
tile.arcane.11.desc=Cracked Rock leaking Eldritch Glow
|
||||
|
||||
# Thaumium
|
||||
#Thaumium
|
||||
tile.chisel.thaumium.name=Таумический блок
|
||||
tile.thaumium.0.desc=Декоративный шаблон
|
||||
tile.thaumium.1.desc=Изображения тотемов
|
||||
@@ -233,12 +246,12 @@ tile.thaumium.3.desc=Маленькие плитки
|
||||
tile.thaumium.4.desc=Решётка
|
||||
tile.thaumium.5.desc=Огранённые доски
|
||||
|
||||
# Tallow
|
||||
#Tallow
|
||||
tile.chisel.tallow.name=Блок жира
|
||||
tile.tallow.0.desc=Гладкий блок жира
|
||||
tile.tallow.1.desc=Оживлённый блок жира
|
||||
|
||||
# Blood Rune
|
||||
#Blood Rune
|
||||
tile.chisel.bloodRune.name=Кровавая руна
|
||||
tile.bloodRune.0.desc=Обработанная кровавая руна
|
||||
tile.bloodRune.1.desc=Кирпичи из кровавой руны
|
||||
@@ -247,7 +260,7 @@ tile.bloodRune.3.desc=Лучеобразная резная кровавая р
|
||||
tile.bloodRune.4.desc=Классическая панель из кровавой руны
|
||||
tile.bloodRune.5.desc=Плитки из кровавой руны
|
||||
|
||||
# Futura
|
||||
#Futura
|
||||
tile.chisel.futura.name=Футура-блок
|
||||
tile.chisel.futuraCircuit.name=Футура-контур
|
||||
tile.chisel.fakeController.name=МЭ контроллер?
|
||||
@@ -274,7 +287,7 @@ tile.futuraCircuit.white.desc=Белый
|
||||
tile.futuraCircuit.yellow.desc=Жёлтый
|
||||
tile.futuraCircuit.gray.desc=Серый
|
||||
|
||||
# Waterstone
|
||||
#Waterstone
|
||||
tile.chisel.waterstone.name=Водный камень
|
||||
tile.waterstone.0.desc=Кирпичи из водного камня
|
||||
tile.waterstone.1.desc=Чёрный водный камень
|
||||
@@ -284,7 +297,7 @@ tile.waterstone.4.desc=Жуткая вода в плитках
|
||||
tile.waterstone.5.desc=Водная панель
|
||||
tile.waterstone.6.desc=Декоративная водная панель
|
||||
|
||||
# Hex Plating
|
||||
#Hex Plating
|
||||
tile.chisel.hexPlating.name=Хекс-покрытие
|
||||
tile.hexPlating.black.desc=Чёрное покрытие
|
||||
tile.hexPlating.blue.desc=Синее покрытие
|
||||
@@ -303,10 +316,10 @@ tile.hexPlating.white.desc=Белое покрытие
|
||||
tile.hexPlating.yellow.desc=Жёлтое покрытие
|
||||
tile.hexPlating.gray.desc=Серое покрытие
|
||||
|
||||
# Hex Large Plating
|
||||
#Hex Large Plating
|
||||
tile.chisel.hexLargePlating.name=Большое хекс-покрытие
|
||||
|
||||
# Grimstone
|
||||
#Grimstone
|
||||
tile.chisel.grimstone.name=Мрачный камень
|
||||
tile.grimstone.0.desc=Мрачный камень
|
||||
tile.grimstone.1.desc=Гладкий мрачный камень
|
||||
@@ -324,11 +337,11 @@ tile.grimstone.12.desc=Гладкая пластина из мрачного к
|
||||
tile.grimstone.13.desc=Пластина из мрачного камня
|
||||
tile.grimstone.14.desc=Чешуйчатый мрачный камень
|
||||
|
||||
# Technical Block
|
||||
#Technical Block
|
||||
tile.chisel.technical.name=Технический блок
|
||||
tile.chisel.technical2.name=Прозрачный технический блок
|
||||
tile.chisel.technical3.name=Промышленный технический блок
|
||||
tile.chisel.technical4.name=Technical Block
|
||||
tile.chisel.technical4.name=Технический блок
|
||||
tile.technical.0.desc=Строительные леса
|
||||
tile.technical.1.desc=Панели с запрещающей лентой
|
||||
tile.technical.2.desc=An Old Relic from the land of Oneteufyv
|
||||
@@ -350,16 +363,16 @@ tile.technical3.1.desc=Промышленная бронепластина
|
||||
tile.technical4.0.desc=Corroded Metal Chunks
|
||||
tile.technical4.1.desc=Rusted Metal Chunks
|
||||
tile.technical4.2.desc=Sturdy
|
||||
tile.technical4.3.desc=MegaCell™ Battery
|
||||
tile.technical4.3.desc=Батарея MegaCell™
|
||||
tile.technical4.4.desc=Thermal Exhaust Plating
|
||||
tile.technical4.5.desc=Makeshift Plating
|
||||
tile.technical4.6.desc=Pipe Dream
|
||||
tile.technical4.7.desc=Worn Concrete
|
||||
tile.technical4.7.desc=Изношенный бетон
|
||||
tile.technical4.16.desc=Tape Drive? (I'm too young for this.)
|
||||
|
||||
# End Stone
|
||||
tile.chisel.end_Stone.name=End Stone
|
||||
tile.end_Stone.0.desc=End Stone Bricks
|
||||
#End Stone
|
||||
tile.chisel.end_Stone.name=Эндерняк
|
||||
tile.end_Stone.0.desc=Кирпичи из эндерняка
|
||||
tile.end_Stone.1.desc=End Chaotic Bricks
|
||||
tile.end_Stone.2.desc=Checkered Tiles
|
||||
tile.end_Stone.3.desc=Ender Circuit
|
||||
@@ -374,7 +387,7 @@ tile.end_Stone.11.desc=Framed End Stone
|
||||
tile.end_Stone.12.desc=Ornate End Stone
|
||||
tile.end_Stone.13.desc=End Stone Large Tile
|
||||
|
||||
# Purpur
|
||||
#Purpur
|
||||
tile.chisel.purpur.name=Purpur Block
|
||||
tile.purpur.0.desc=Medium Tiles
|
||||
tile.purpur.1.desc=Pillar
|
||||
@@ -388,7 +401,7 @@ tile.purpur.8.desc=Arcane Block of Purpur
|
||||
tile.purpur.9.desc=Purpur Large Tile
|
||||
tile.purpur.10.desc=Ornate Purpur
|
||||
|
||||
# Metal Blocks
|
||||
#Metal Blocks
|
||||
tile.chisel.aluminumblock.name=Алюминиевый блок
|
||||
tile.chisel.bronzeblock.name=Бронзовый блок
|
||||
tile.chisel.copperblock.name=Медный блок
|
||||
@@ -406,16 +419,16 @@ tile.metalOre.3.desc=Старая реликвия из древних земе
|
||||
tile.metalOre.4.desc=Хорошо огранённый блок
|
||||
tile.metalOre.5.desc=Красивое болтовое покрытие
|
||||
|
||||
# Stairs
|
||||
tile.chisel.aluminum_stairs.0.name=Aluminum Stairs
|
||||
tile.chisel.aluminum_stairs.1.name=Aluminum Stairs
|
||||
tile.chisel.aluminum_stairs.2.name=Aluminum Stairs
|
||||
#Stairs
|
||||
tile.chisel.aluminum_stairs.0.name=Алюминиевые лестницы
|
||||
tile.chisel.aluminum_stairs.1.name=Алюминиевые лестницы
|
||||
tile.chisel.aluminum_stairs.2.name=Алюминиевые лестницы
|
||||
|
||||
# Present Chest
|
||||
#Present Chest
|
||||
tile.chisel.present.name=Подарок
|
||||
tile.chisel.present.desc=Красивенький подарочный сундук
|
||||
|
||||
# Brick
|
||||
#Brick
|
||||
tile.chisel.brickCustom.name=Блок кирпича
|
||||
tile.brickCustom.1.desc=Большие кирпичи
|
||||
tile.brickCustom.2.desc=Кирпичи без цемента
|
||||
@@ -423,8 +436,9 @@ tile.brickCustom.3.desc=Различные кирпичи
|
||||
tile.brickCustom.5.desc=Старые кирпичи
|
||||
tile.brickCustom.6.desc=Жёлтые кирпичи
|
||||
|
||||
#Chisel 1
|
||||
|
||||
# Cobblestone Blocks
|
||||
#Cobblestone Blocks
|
||||
tile.chisel.cobblestone.name=Булыжник
|
||||
tile.cobblestone.0.desc=Выровненные булыжниковые кирпичи
|
||||
tile.cobblestone.1.desc=Детализированные булыжниковые кирпичи
|
||||
@@ -442,7 +456,7 @@ tile.cobblestone.12.desc=Булыжник с панелью
|
||||
tile.cobblestone.13.desc=Булыжник со светлой панелью
|
||||
tile.cobblestone.14.desc=Булыжник с тёмной панелью
|
||||
|
||||
# Marble Blocks
|
||||
#Marble Blocks
|
||||
tile.chisel.marble.name=Мрамор
|
||||
tile.marble.0.desc=Необработанный мрамор
|
||||
tile.marble.1.desc=Мраморный кирпич
|
||||
@@ -461,7 +475,7 @@ tile.marble.13.desc=Обработанные мраморные плитки
|
||||
tile.marble.14.desc=Красивые мраморные плитки
|
||||
tile.marble.15.desc=Мраморные блоки
|
||||
|
||||
# Marble Slabs
|
||||
#Marble Slabs
|
||||
tile.chisel.marble_slab.name=Мраморная плита
|
||||
tile.marbleSlab.0.desc=Необработанная мраморная плита
|
||||
tile.marbleSlab.1.desc=Плита из мраморного кирпича
|
||||
@@ -480,7 +494,7 @@ tile.marbleSlab.13.desc=Плита из обработанного плиточ
|
||||
tile.marbleSlab.14.desc=Плита из красивого плиточного мрамора
|
||||
tile.marbleSlab.15.desc=Плита из мраморных блоков
|
||||
|
||||
# Marble Pillars (old)
|
||||
#Marble Pillars (old)
|
||||
tile.chisel.marble_pillar.name=Мраморная колонна
|
||||
tile.marblePillarOld.0.desc=Мраморная колонна
|
||||
tile.marblePillarOld.1.desc=Капитель мраморной колонны
|
||||
@@ -499,7 +513,7 @@ tile.marblePillarOld.13.desc=Капитель декоративной обыч
|
||||
tile.marblePillarOld.14.desc=Основание декоративной греческой мраморной колонны
|
||||
tile.marblePillarOld.15.desc=Основание декоративной обычной мраморной колонны
|
||||
|
||||
# Marble Pillars (current)
|
||||
#Marble Pillars (current)
|
||||
tile.marblePillar.0.desc=Мраморная колонна
|
||||
tile.marblePillar.1.desc=Оригинальная мраморная колонна
|
||||
tile.marblePillar.2.desc=Упрощённая мраморная колонна
|
||||
@@ -517,7 +531,7 @@ tile.marblePillar.13.desc=Широкая мраморная колонна с о
|
||||
tile.marblePillar.14.desc=Резная капитель колонны
|
||||
tile.marblePillar.15.desc=Декоративная капитель колонны
|
||||
|
||||
# Marble Slabs (old)
|
||||
#Marble Slabs (old)
|
||||
tile.chisel.marble_pillar_slab.name=Плита из мраморной колонны
|
||||
tile.marblePillarSlabOld.0.desc=Плита из мраморной колонны
|
||||
tile.marblePillarSlabOld.1.desc=Плита из капители мраморной колонны
|
||||
@@ -536,7 +550,7 @@ tile.marblePillarSlabOld.13.desc=Плита из декоративной кап
|
||||
tile.marblePillarSlabOld.14.desc=Плита из декоративного основания греческой мраморной колонны
|
||||
tile.marblePillarSlabOld.15.desc=Плита из декоративного основания обычной мраморной колонны
|
||||
|
||||
# Marble Slabs (current)
|
||||
#Marble Slabs (current)
|
||||
tile.marblePillarSlab.0.desc=Плита из мраморной колонны
|
||||
tile.marblePillarSlab.1.desc=Плита из оригинальной мраморной колонны
|
||||
tile.marblePillarSlab.2.desc=Плита из упрощённой мраморной колонны
|
||||
@@ -554,9 +568,9 @@ tile.marblePillarSlab.13.desc=Плита из широкой мраморной
|
||||
tile.marblePillarSlab.14.desc=Плита из резной капители колонны
|
||||
tile.marblePillarSlab.15.desc=Плита из декоративной капители колонны
|
||||
|
||||
# Marble Stairs
|
||||
# The same name goes here 8 different times since stairs take up 8 block positions.
|
||||
# Sorry! It was the only way!
|
||||
#Marble Stairs
|
||||
#The same name goes here 8 different times since stairs take up 8 block positions.
|
||||
#Sorry! It was the only way!
|
||||
tile.chisel.marble_stairs.0.name=Мраморные ступеньки
|
||||
tile.chisel.marble_stairs.1.name=Мраморные ступеньки
|
||||
tile.chisel.marble_stairs.2.name=Мраморные ступеньки
|
||||
@@ -566,7 +580,7 @@ tile.chisel.marble_stairs.5.name=Мраморные ступеньки
|
||||
tile.chisel.marble_stairs.6.name=Мраморные ступеньки
|
||||
tile.chisel.marble_stairs.7.name=Мраморные ступеньки
|
||||
|
||||
# These are bugged.... so sad :,(
|
||||
#These are bugged.... so sad :,(
|
||||
tile.marbleStairs.0.desc=Ступеньки из необработанного мрамора
|
||||
tile.marbleStairs.1.desc=Ступеньки из мраморного кирпича
|
||||
tile.marbleStairs.2.desc=Ступеньки из классической мраморной панели
|
||||
@@ -584,7 +598,7 @@ tile.marbleStairs.13.desc=Ступеньки из обработанного п
|
||||
tile.marbleStairs.14.desc=Ступеньки из красивого плиточного мрамора
|
||||
tile.marbleStairs.15.desc=Ступеньки из мраморных блоков
|
||||
|
||||
# Limestone
|
||||
#Limestone
|
||||
tile.chisel.limestone.name=Известняк
|
||||
tile.limestone.0.desc=Известняк
|
||||
tile.limestone.1.desc=Маленькие известняковые плитки
|
||||
@@ -603,7 +617,7 @@ tile.limestone.13.desc=Большие известняковые плитки
|
||||
tile.limestone.14.desc=Известняк со светлой панелью
|
||||
tile.limestone.15.desc=Известняк с тёмной панелью
|
||||
|
||||
# Limestone Slabs
|
||||
#Limestone Slabs
|
||||
tile.chisel.limestone_slab.name=Известняковая плита
|
||||
tile.limestoneSlab.0.desc=Известняковая плита
|
||||
tile.limestoneSlab.1.desc=Маленькая известняковая плиточная плита
|
||||
@@ -622,9 +636,9 @@ tile.limestoneSlab.13.desc=Плита из больших известняков
|
||||
tile.limestoneSlab.14.desc=Известняковая плита со светлой панелью
|
||||
tile.limestoneSlab.15.desc=Известняковая плита с тёмной панелью
|
||||
|
||||
# Limestone Stairs
|
||||
# The same name goes here 8 different times since stairs take up 8 block positions.
|
||||
# Sorry! It was the only way!
|
||||
#Limestone Stairs
|
||||
#The same name goes here 8 different times since stairs take up 8 block positions.
|
||||
#Sorry! It was the only way!
|
||||
tile.chisel.limestone_stairs.0.name=Известняковые ступеньки
|
||||
tile.chisel.limestone_stairs.1.name=Известняковые ступеньки
|
||||
tile.chisel.limestone_stairs.2.name=Известняковые ступеньки
|
||||
@@ -634,7 +648,7 @@ tile.chisel.limestone_stairs.5.name=Известняковые ступеньк
|
||||
tile.chisel.limestone_stairs.6.name=Известняковые ступеньки
|
||||
tile.chisel.limestone_stairs.7.name=Известняковые ступеньки
|
||||
|
||||
# These are bugged.... so sad :,(
|
||||
#These are bugged.... so sad :,(
|
||||
tile.limestoneStairs.0.desc=Известняковые ступеньки
|
||||
tile.limestoneStairs.1.desc=Маленькие известняковые плиточные ступеньки
|
||||
tile.limestoneStairs.2.desc=Французские известняковые плиточные ступеньки
|
||||
@@ -652,7 +666,7 @@ tile.limestoneStairs.13.desc=Большие известняковые плит
|
||||
tile.limestoneStairs.14.desc=Известняковые ступеньки со светлой панелью
|
||||
tile.limestoneStairs.15.desc=Известняковые ступеньки с тёмной панелью
|
||||
|
||||
# Factory Blocks
|
||||
#Factory Blocks
|
||||
tile.chisel.factoryblock.name=Фабричный блок
|
||||
tile.factory.0.desc=Ржавая металлическая пластина с точечным покрытием
|
||||
tile.factory.1.desc=Ржавая металлическая пластина
|
||||
@@ -677,7 +691,7 @@ tile.factory2.1.desc=Вертикальная вентиляция
|
||||
tile.factory2.2.desc=Металлическое синее контурное покрытие
|
||||
tile.factory2.3.desc=Синий каркас
|
||||
|
||||
# Diamond blocks
|
||||
#Diamond blocks
|
||||
tile.chisel.diamond_block.name=Алмазный блок
|
||||
tile.diamond.1.desc=Рельефный алмазный блок
|
||||
tile.diamond.2.desc=Алмазный блок с панелью
|
||||
@@ -692,12 +706,12 @@ tile.diamond.10.desc=Маленькие декоративные алмазны
|
||||
tile.diamond.11.desc=Алмазный блок Зельда
|
||||
tile.diamond.12.desc=Алмазный блок с декоративным слоем
|
||||
|
||||
# Snakestone
|
||||
#Snakestone
|
||||
tile.chisel.snakestoneSand.name=Песочный змеиный камень
|
||||
tile.chisel.snakestoneStone.name=Каменный змеиный камень
|
||||
tile.chisel.obsidianSnakestone.name=Обсидиановый змеиный камень
|
||||
|
||||
# Glass blocks
|
||||
#Glass blocks
|
||||
tile.chisel.glass.name=Стекло
|
||||
tile.glass.1.desc=Пузырчатое стекло
|
||||
tile.glass.2.desc=Китайское стекло
|
||||
@@ -718,8 +732,9 @@ tile.glass.15.desc=Современный железный забор
|
||||
tile.chisel.glass2.name=Стекло
|
||||
tile.glass2.0.desc=Асимметричное освинцованное стекло
|
||||
|
||||
# Sandstone Blocks
|
||||
#Sandstone
|
||||
tile.chisel.sandstone.name=Песчаник
|
||||
tile.chisel.sandstone2.name=Песчаник
|
||||
|
||||
tile.sandstone.0.desc=Песчаниковые глифы
|
||||
tile.sandstone.1.desc=Песчаниковый булыжник
|
||||
@@ -738,12 +753,14 @@ tile.sandstone.12.desc=Песчаный блок
|
||||
tile.sandstone.13.desc=Маленькие песчаные блоки
|
||||
tile.sandstone.14.desc=Песчаная мозаика
|
||||
tile.sandstone.15.desc=Ячеистые песчаные плитки
|
||||
tile.sandstone.16.desc=Sandstone Bricks
|
||||
tile.sandstone.17.desc=
|
||||
|
||||
# Sandstone scribbles
|
||||
#Sandstone scribbles
|
||||
tile.chisel.sandstone_scribbles.name=Песчаник с каракулями
|
||||
tile.sandstoneScribbles.desc=Песчаник с каракулями
|
||||
|
||||
# Concrete
|
||||
#Concrete
|
||||
tile.chisel.concrete.name=Бетон
|
||||
tile.concrete.0.desc=Бетон
|
||||
tile.concrete.1.desc=Бетонный блок
|
||||
@@ -757,14 +774,14 @@ tile.concrete.8.desc=Частично выветрившийся бетон
|
||||
tile.concrete.9.desc=Частично выветрившийся бетонный блок
|
||||
tile.concrete.10.desc=Асфальт
|
||||
|
||||
# Road Line
|
||||
#Road Line
|
||||
tile.chisel.road_line.name=Дорожные линии
|
||||
tile.roadLine.0.desc=Белые
|
||||
tile.roadLine.1.desc=Жёлтые
|
||||
tile.roadLine.2.desc=Двойные белые
|
||||
tile.roadLine.3.desc=Двойные жёлтые
|
||||
|
||||
# Iron Blocks
|
||||
#Iron Blocks
|
||||
tile.chisel.iron_block.name=Железный блок
|
||||
tile.iron.1.desc=Большие железные слитки
|
||||
tile.iron.2.desc=Маленькие железные слитки
|
||||
@@ -782,7 +799,7 @@ tile.iron.13.desc=Железная Луна в обсидиане
|
||||
tile.iron.14.desc=Железные разрезы
|
||||
tile.iron.15.desc=Простой железный блок
|
||||
|
||||
# Gold Blocks
|
||||
#Gold Blocks
|
||||
tile.chisel.gold_block.name=Золотой блок
|
||||
tile.gold.1.desc=Большие золотые слитки
|
||||
tile.gold.2.desc=Маленькие золотые слитки
|
||||
@@ -799,7 +816,7 @@ tile.gold.12.desc=Золотая звезда в фиолетовом обсид
|
||||
tile.gold.13.desc=Золотая звезда в обсидиане
|
||||
tile.gold.14.desc=Простой золотой блок
|
||||
|
||||
# Glowstone
|
||||
#Glowstone
|
||||
tile.chisel.glowstone.name=Светящийся камень
|
||||
tile.lightstone.1.desc=Булыжниковый светящийся блок
|
||||
tile.lightstone.2.desc=Проржавевшие светящиеся блоки
|
||||
@@ -817,7 +834,7 @@ tile.lightstone.13.desc=Проржавевшие светящиеся плитк
|
||||
tile.lightstone.14.desc=Светящийся висмут
|
||||
tile.lightstone.15.desc=Панель из светящегося висмута
|
||||
|
||||
# Lapis blocks
|
||||
#Lapis blocks
|
||||
tile.chisel.lapis_block.name=Лазуритовый блок
|
||||
tile.lapis.1.desc=Плотный лазуритовый блок
|
||||
tile.lapis.2.desc=Тёмный лазуритовый блок
|
||||
@@ -828,7 +845,7 @@ tile.lapis.6.desc=Лазуритовая панель
|
||||
tile.lapis.7.desc=Гладкий лазурит
|
||||
tile.lapis.8.desc=Лазурит с декоративным слоем
|
||||
|
||||
# Emerald Blocks
|
||||
#Emerald Blocks
|
||||
tile.chisel.emerald_block.name=Изумрудный блок
|
||||
tile.emerald.1.desc=Изумрудная панель
|
||||
tile.emerald.2.desc=Классическая изумрудная панель
|
||||
@@ -842,7 +859,7 @@ tile.emerald.9.desc=Маленькие изумрудные блоки
|
||||
tile.emerald.10.desc=Маленькие декоративные изумрудные блоки
|
||||
tile.emerald.11.desc=Декоративные изумрудные блоки
|
||||
|
||||
# Nether Brick
|
||||
#Nether Brick
|
||||
tile.chisel.nether_brick.name=Кирпич Нижнего мира
|
||||
tile.netherBrick.1.desc=Синий кирпич Нижнего мира
|
||||
tile.netherBrick.2.desc=Забрызганный кирпич Нижнего мира
|
||||
@@ -860,7 +877,7 @@ tile.netherBrick.13.desc=Маленький красный кирпич Нижн
|
||||
tile.netherBrick.14.desc=Красный кирпич Нижнего мира
|
||||
tile.netherBrick.15.desc=Маленький красный кирпич Нижнего мира
|
||||
|
||||
# Netherrack
|
||||
#Netherrack
|
||||
tile.chisel.netherrack.name=Камень Нижнего мира
|
||||
tile.hellrock.1.desc=Гравий Нижнего мира с кровью
|
||||
tile.hellrock.2.desc=Камень Нижнего мира с кровью
|
||||
@@ -877,7 +894,7 @@ tile.hellrock.12.desc=Камень Нижнего мира, сделанный
|
||||
tile.hellrock.13.desc=Тёмный красный камень Нижнего мира
|
||||
tile.hellrock.14.desc=Камень Нижнего мира с текучей лавой
|
||||
|
||||
# Mossy Stone
|
||||
#Mossy Stone
|
||||
tile.chisel.mossy_cobblestone.name=Замшелый булыжник
|
||||
tile.stoneMoss.1.desc=Выровненные замшелые булыжниковые кирпичи
|
||||
tile.stoneMoss.2.desc=Детализированные замшелые булыжниковые кирпичи
|
||||
@@ -895,7 +912,7 @@ tile.stoneMoss.13.desc=Замшелый булыжник с панелью
|
||||
tile.stoneMoss.14.desc=Замшелый булыжник со светлой панелью
|
||||
tile.stoneMoss.15.desc=Замшелый булыжник с тёмной панелью
|
||||
|
||||
# Stone Bricks
|
||||
#Stone Bricks
|
||||
tile.chisel.stonebricksmooth.name=Каменный кирпич
|
||||
tile.stonebricksmooth.0.desc=Современная обычная кирпичная кладка
|
||||
tile.stonebricksmooth.1.desc=Современная кислая кирпичная кладка
|
||||
@@ -914,7 +931,7 @@ tile.stonebricksmooth.13.desc=Осевшая каменная панель
|
||||
tile.stonebricksmooth.14.desc=Декоративная каменная панель
|
||||
tile.stonebricksmooth.15.desc=Ядовитый каменный кирпич
|
||||
|
||||
# Dirt
|
||||
#Dirt
|
||||
tile.chisel.dirt.name=Земля
|
||||
tile.dirt.0.desc=Беспорядочные земляные кирпичи
|
||||
tile.dirt.1.desc=Земляные кирпичи, похожи на кирпичи Нижнего мира
|
||||
@@ -930,7 +947,7 @@ tile.dirt.10.desc=Вертикальная земля
|
||||
tile.dirt.11.desc=Земляные слои
|
||||
tile.dirt.12.desc=Разрушенная земля
|
||||
|
||||
# Ice
|
||||
#Ice
|
||||
tile.chisel.ice.name=Лёд
|
||||
tile.ice.1.desc=Необработанный ледяной блок
|
||||
tile.ice.2.desc=Булыжниковый лёд
|
||||
@@ -948,7 +965,7 @@ tile.ice.13.desc=Ледяной блок Зельда
|
||||
tile.ice.14.desc=Блок ледяного висмута
|
||||
tile.ice.15.desc=Блок ледяного яда
|
||||
|
||||
# Ice Pillars
|
||||
#Ice Pillars
|
||||
tile.chisel.ice_pillar.name=Ледяная колонна
|
||||
tile.icePillar.0.desc=Обычная ледяная колонна с обычной капителью
|
||||
tile.icePillar.1.desc=Обычная ледяная колонна с греческой капителью
|
||||
@@ -958,7 +975,7 @@ tile.icePillar.4.desc=Резная капитель ледяной колонн
|
||||
tile.icePillar.5.desc=Декоративная капитель ледяной колонны
|
||||
tile.icePillar.6.desc=Расписанная ледяная колонна
|
||||
|
||||
# Ice Stairs
|
||||
#Ice Stairs
|
||||
tile.chisel.ice_stairs.name=Ледяные ступеньки
|
||||
tile.chisel.ice_stairs.0.name=Ледяные ступеньки
|
||||
tile.chisel.ice_stairs.1.name=Ледяные ступеньки
|
||||
@@ -985,7 +1002,7 @@ tile.ice_stairs.13.desc=Ступеньки из льда Зельда
|
||||
tile.ice_stairs.14.desc=Ступеньки из ледяного висмута
|
||||
tile.ice_stairs.15.desc=Ступеньки из ледяного яда
|
||||
|
||||
# Packed Ice
|
||||
#Packed Ice
|
||||
tile.chisel.packedice.name=Плотный лёд
|
||||
tile.packedice.1.desc=Грубый блок плотного льда
|
||||
tile.packedice.2.desc=Булыжниковый плотный лёд
|
||||
@@ -1003,7 +1020,7 @@ tile.packedice.13.desc=Блок из плотного льда Зельда
|
||||
tile.packedice.14.desc=Висмутовый блок из плотного льда
|
||||
tile.packedice.15.desc=Ядовитый блок из плотного льда
|
||||
|
||||
# Packed Ice Pillars
|
||||
#Packed Ice Pillars
|
||||
tile.chisel.packedice_pillar.name=Колонна из плотного льда
|
||||
tile.packedice_pillar.0.desc=Обычная колонна из плотного льда с обычной капителью
|
||||
tile.packedice_pillar.1.desc=Обычная колонна из плотного льда с греческой капителью
|
||||
@@ -1013,7 +1030,7 @@ tile.packedice_pillar.4.desc=Резная капитель колонны из
|
||||
tile.packedice_pillar.5.desc=Декоративная капитель колонны из плотного льда
|
||||
tile.packedice_pillar.6.desc=Расписанная колонна из плотного льда
|
||||
|
||||
# Packed Ice Stairs
|
||||
#Packed Ice Stairs
|
||||
tile.chisel.packedice_stairs.name=Ступеньки из плотного льда
|
||||
tile.chisel.packedice_stairs.0.name=Ступеньки из плотного льда
|
||||
tile.chisel.packedice_stairs.1.name=Ступеньки из плотного льда
|
||||
@@ -1040,7 +1057,7 @@ tile.packedice_stairs.13.desc=Ступеньки из блока плотног
|
||||
tile.packedice_stairs.14.desc=Ступеньки из висмутового блока плотного льда
|
||||
tile.packedice_stairs.15.desc=Ступеньки из ядовитого блока плотного льда
|
||||
|
||||
# Obsidian
|
||||
#Obsidian
|
||||
tile.chisel.obsidian.name=Обсидиан
|
||||
tile.obsidian.1.desc=Большая обсидиановая колонна
|
||||
tile.obsidian.2.desc=Обсидиановая колонна
|
||||
@@ -1058,7 +1075,7 @@ tile.obsidian.13.desc=Обсидиановые плитки
|
||||
tile.obsidian.14.desc=Светлые обсидиановые блоки с греческой декорацией
|
||||
tile.obsidian.15.desc=Маленькие обсидиановые блоки в дубовом ящике
|
||||
|
||||
# Wood
|
||||
#Wood
|
||||
tile.chisel.oak_planks.name=Дубовая древесина
|
||||
tile.chisel.birch_planks.name=Берёзовая древесина
|
||||
tile.chisel.spruce_planks.name=Еловая древесина
|
||||
@@ -1066,7 +1083,7 @@ tile.chisel.jungle_planks.name=Тропическая древесина
|
||||
tile.chisel.dark_oak_planks.name=Древесина тёмного дуба
|
||||
tile.chisel.acacia_planks.name=Древесина акации
|
||||
|
||||
# Iron Fence
|
||||
#Iron Fence
|
||||
tile.chisel.iron_bars.name=Железные прутья
|
||||
tile.iron_bars.1.desc=Железные прутья без рамки
|
||||
tile.iron_bars.2.desc=Угрожающие железные прутья
|
||||
@@ -1078,7 +1095,7 @@ tile.iron_bars.7.desc=Декоративная ограда из железно
|
||||
tile.iron_bars.8.desc=Вертикальные железные прутья
|
||||
tile.iron_bars.9.desc=Железные шипы
|
||||
|
||||
# Glass Panes
|
||||
#Glass Panes
|
||||
tile.chisel.glass_pane.name=Стеклянная панель
|
||||
tile.glass_pane.1.desc=Пузырчатая стеклянная панель
|
||||
tile.glass_pane.2.desc=Безграничная стеклянная панель
|
||||
@@ -1089,7 +1106,7 @@ tile.glass_pane.13.desc=Китайская стеклянная панель с
|
||||
tile.glass_pane.14.desc=Японская стеклянная панель
|
||||
tile.glass_pane.15.desc=Декоративная японская стеклянная панель
|
||||
|
||||
# Redstone block
|
||||
#Redstone block
|
||||
tile.chisel.redstone_block.name=Красный блок
|
||||
tile.redstone_block.1.desc=Гладкий красный камень
|
||||
tile.redstone_block.2.desc=Большой красный блок
|
||||
@@ -1107,7 +1124,7 @@ tile.redstone_block.13.desc=Красная схема Супаплекс
|
||||
tile.redstone_block.14.desc=Красные черепа
|
||||
tile.redstone_block.15.desc=Красный блок Зельда
|
||||
|
||||
# Holystone
|
||||
#Holystone
|
||||
tile.chisel.holystone.name=Пемза
|
||||
tile.holystone.0.desc=Пемза
|
||||
tile.holystone.1.desc=Гладкая пемза
|
||||
@@ -1124,7 +1141,7 @@ tile.holystone.11.desc=Красивые плитки из пемзы
|
||||
tile.holystone.12.desc=Гладкая пластина из пемзы
|
||||
tile.holystone.13.desc=Пластина из пемзы
|
||||
|
||||
# Lavastone
|
||||
#Lavastone
|
||||
tile.chisel.lavastone.name=Лавовый камень
|
||||
tile.lavastone.0.desc=Лавовый камень
|
||||
tile.lavastone.1.desc=Чёрный лавовый камень
|
||||
@@ -1135,7 +1152,7 @@ tile.lavastone.5.desc=Лавовая панель
|
||||
tile.lavastone.6.desc=Декоративная лавовая панель
|
||||
tile.lavastone.7.desc=Тёмный лавовый камень
|
||||
|
||||
# Carpet
|
||||
#Carpet
|
||||
tile.chisel.carpet_block.name=Ковёр
|
||||
tile.carpet_block.0.desc=Белый ковровый блок
|
||||
tile.carpet_block.1.desc=Оранжевый ковровый блок
|
||||
@@ -1154,7 +1171,7 @@ tile.carpet_block.13.desc=Зелёный ковровый блок
|
||||
tile.carpet_block.14.desc=Красный ковровый блок
|
||||
tile.carpet_block.15.desc=Чёрный ковровый блок
|
||||
|
||||
# Carpet floor
|
||||
#Carpet floor
|
||||
tile.chisel.carpet.name=Напольный ковёр
|
||||
tile.carpet.0.desc=Белый ковёр
|
||||
tile.carpet.1.desc=Оранжевый ковёр
|
||||
@@ -1173,7 +1190,7 @@ tile.carpet.13.desc=Зелёный ковёр
|
||||
tile.carpet.14.desc=Красный ковёр
|
||||
tile.carpet.15.desc=Чёрный ковёр
|
||||
|
||||
# Bookshelf
|
||||
#Bookshelf
|
||||
tile.chisel.bookshelf.name=Книжный шкаф
|
||||
tile.bookshelf.1.desc=Книжный шкаф с разноцветными книгами
|
||||
tile.bookshelf.2.desc=Книжный шкаф некроманта новичка
|
||||
@@ -1184,7 +1201,7 @@ tile.bookshelf.6.desc=Книжный шкаф запасливого челов
|
||||
tile.bookshelf.7.desc=Книжный шкаф, заполненный до краев скучными пастельными книгами
|
||||
tile.bookshelf.8.desc=Книжный шкаф историка
|
||||
|
||||
# Tyrian
|
||||
#Tyrian
|
||||
tile.chisel.tyrian.name=Тириан
|
||||
tile.tyrian.0.desc=Футуристический бронированный блок
|
||||
tile.tyrian.1.desc=Бледный футуристический бронированный блок
|
||||
@@ -1203,7 +1220,7 @@ tile.tyrian.13.desc=Чёрные футуристические брониров
|
||||
tile.tyrian.14.desc=Чёрный футуристический бронированный блок с отверстием
|
||||
tile.tyrian.15.desc=Футуристический бронированный блок с блестящими металлическими кусками
|
||||
|
||||
# Temple
|
||||
#Temple
|
||||
tile.chisel.templeblock.name=Храмовый блок
|
||||
tile.templeblock.0.desc=Храмовый булыжник
|
||||
tile.templeblock.1.desc=Декоративный храмовый блок
|
||||
@@ -1222,7 +1239,7 @@ tile.templeblock.13.desc=Маленькие храмовые плитки
|
||||
tile.templeblock.14.desc=Светлые храмовые плитки
|
||||
tile.templeblock.15.desc=Маленькие светлые храмовые плитки
|
||||
|
||||
# Temple Mossy
|
||||
#Temple Mossy
|
||||
tile.chisel.mossy_templeblock.name=Замшелый храмовый блок
|
||||
tile.mossy_templeblock.0.desc=Замшелый храмовый булыжник
|
||||
tile.mossy_templeblock.1.desc=Декоративный замшелый храмовый блок
|
||||
@@ -1241,7 +1258,7 @@ tile.mossy_templeblock.13.desc=Маленькие замшелые храмов
|
||||
tile.mossy_templeblock.14.desc=Светлые замшелые храмовые плитки
|
||||
tile.mossy_templeblock.15.desc=Маленькие светлые замшелые храмовые плитки
|
||||
|
||||
# Cloud
|
||||
#Cloud
|
||||
tile.chisel.cloud.name=Облако
|
||||
tile.cloud.0.desc=Облачный блок
|
||||
tile.cloud.1.desc=Большие облачные кирпичи
|
||||
@@ -1249,11 +1266,11 @@ tile.cloud.2.desc=Маленькие облачные кирпичи
|
||||
tile.cloud.3.desc=Маленькие вертикальные облачные кирпичи
|
||||
tile.cloud.4.desc=Сетчатые облачные кирпичи
|
||||
|
||||
# Stained glass T.T
|
||||
#Stained glass T.T
|
||||
tile.chisel.stained_glass_white.name=Окрашенное стекло
|
||||
tile.chisel.stained_glass_orange.name=Окрашенное стекло
|
||||
tile.chisel.stained_glass_magenta.name=Окрашенное стекло
|
||||
tile.chisel.stained_glass_lightblue.name=Stained Glass
|
||||
tile.chisel.stained_glass_lightblue.name=Окрашенное стекло
|
||||
tile.chisel.stained_glass_yellow.name=Окрашенное стекло
|
||||
tile.chisel.stained_glass_lime.name=Окрашенное стекло
|
||||
tile.chisel.stained_glass_pink.name=Окрашенное стекло
|
||||
@@ -1266,9 +1283,9 @@ tile.chisel.stained_glass_brown.name=Окрашенное стекло
|
||||
tile.chisel.stained_glass_green.name=Окрашенное стекло
|
||||
tile.chisel.stained_glass_red.name=Окрашенное стекло
|
||||
tile.chisel.stained_glass_black.name=Окрашенное стекло
|
||||
tile.chisel.stained_glass_forestry.name=Stained Glass
|
||||
tile.chisel.stained_glass_forestry.name=Окрашенное стекло
|
||||
|
||||
# Stained GlassPane T.T
|
||||
#Stained GlassPane T.T
|
||||
tile.chisel.stained_glass_pane_white.name=Окрашенная стеклянная панель
|
||||
tile.chisel.stained_glass_pane_orange.name=Окрашенная стеклянная панель
|
||||
tile.chisel.stained_glass_pane_magenta.name=Окрашенная стеклянная панель
|
||||
@@ -1286,7 +1303,7 @@ tile.chisel.stained_glass_pane_green.name=Окрашенная стеклянн
|
||||
tile.chisel.stained_glass_pane_red.name=Окрашенная стеклянная панель
|
||||
tile.chisel.stained_glass_pane_black.name=Окрашенная стеклянная панель
|
||||
|
||||
# Fantasy block
|
||||
#Fantasy block
|
||||
tile.chisel.fantasyblock.name=Царский фантастический блок
|
||||
tile.fantasyblock.0.desc=Царский фантастический кирпич
|
||||
tile.fantasyblock.1.desc=Тусклый царский фантастический кирпич
|
||||
@@ -1305,7 +1322,7 @@ tile.fantasyblock.13.desc=Царский фантастический блок
|
||||
tile.fantasyblock.14.desc=Беспорядочные царские фантастические кирпичи
|
||||
tile.fantasyblock.15.desc=Изношенные царские фантастические кирпичи
|
||||
|
||||
# Fantasy block 2
|
||||
#Fantasy block 2
|
||||
tile.chisel.fantasyblock2.name=Фантастический блок
|
||||
tile.fantasyblock2.0.desc=Фантастический кирпич
|
||||
tile.fantasyblock2.1.desc=Тусклый фантастический кирпич
|
||||
@@ -1324,7 +1341,7 @@ tile.fantasyblock2.13.desc=Фантастический блок
|
||||
tile.fantasyblock2.14.desc=Беспорядочные фантастические кирпичи
|
||||
tile.fantasyblock2.15.desc=Изношенные фантастические кирпичи
|
||||
|
||||
# Paperwall
|
||||
#Paperwall
|
||||
tile.chisel.paperwall.name=Бумажная стена
|
||||
tile.chisel.paperwall_block.name=Блок бумажной стены
|
||||
tile.paperwall.0.desc=Коробочная бумажная стена
|
||||
@@ -1337,7 +1354,7 @@ tile.paperwall.6.desc=Украшенная цветами бумажная ст
|
||||
tile.paperwall.7.desc=Обычная бумажная стена
|
||||
tile.paperwall.8.desc=Двереобразная бумажная стена
|
||||
|
||||
# Woolen Clay
|
||||
#Woolen Clay
|
||||
tile.chisel.woolen_clay.name=Шерстяная глина
|
||||
tile.woolenClay.0.desc=Белая шерстяная глина
|
||||
tile.woolenClay.1.desc=Оранжевая шерстяная глина
|
||||
@@ -1356,7 +1373,7 @@ tile.woolenClay.13.desc=Зелёная шерстяная глина
|
||||
tile.woolenClay.14.desc=Красная шерстяная глина
|
||||
tile.woolenClay.15.desc=Чёрная шерстяная глина
|
||||
|
||||
# Colored Sand
|
||||
#Colored Sand
|
||||
tile.chisel.colored_sand.name=Цветной песок
|
||||
tile.coloredSand.0.desc=Белый цветной песок
|
||||
tile.coloredSand.1.desc=Оранжевый цветной песок
|
||||
@@ -1375,7 +1392,7 @@ tile.coloredSand.13.desc=Зелёный цветной песок
|
||||
tile.coloredSand.14.desc=Красный цветной песок
|
||||
tile.coloredSand.15.desc=Чёрный цветной песок
|
||||
|
||||
# Laboratory Block
|
||||
#Laboratory Block
|
||||
tile.chisel.laboratoryblock.name=Лабораторный блок
|
||||
tile.laboratory.0.desc=Настенная панель
|
||||
tile.laboratory.1.desc=Точечная панель
|
||||
@@ -1394,8 +1411,8 @@ tile.laboratory.13.desc=Консоль направления (Правая)
|
||||
tile.laboratory.14.desc=Консоль направления (Левая)
|
||||
tile.laboratory.15.desc=Информационная консоль
|
||||
|
||||
# Planks (They go in order of creative tab appearance if that helps)
|
||||
# Oak
|
||||
#Planks (They go in order of creative tab appearance if that helps)
|
||||
#Oak
|
||||
tile.oak.planks.1.desc=Smooth Oak Wood Planks
|
||||
tile.oak.planks.2.desc=Short Oak Wood Planks
|
||||
tile.oak.planks.6.desc=Fancy Oak Wood Plank Arrangement
|
||||
@@ -1412,7 +1429,7 @@ tile.oak.planks.12.desc=Oak Wood Scaffold
|
||||
tile.oak.planks.14.desc=Oak Wood Planks in Disarray
|
||||
tile.oak.planks.15.desc=Vertical Oak Wood Planks in Disarray
|
||||
|
||||
# Spruce
|
||||
#Spruce
|
||||
tile.spruce.planks.1.desc=Smooth Spruce Wood Planks
|
||||
tile.spruce.planks.2.desc=Short Spruce Wood Planks
|
||||
tile.spruce.planks.6.desc=Fancy Spruce Wood Plank Arrangement
|
||||
@@ -1429,7 +1446,7 @@ tile.spruce.planks.12.desc=Spruce Wood Scaffold
|
||||
tile.spruce.planks.14.desc=Spruce Wood Planks in Disarray
|
||||
tile.spruce.planks.15.desc=Vertical Spruce Wood Planks in Disarray
|
||||
|
||||
# Birch
|
||||
#Birch
|
||||
tile.birch.planks.1.desc=Smooth Birch Wood Planks
|
||||
tile.birch.planks.2.desc=Short Birch Wood Planks
|
||||
tile.birch.planks.6.desc=Fancy Birch Wood Plank Arrangement
|
||||
@@ -1446,7 +1463,7 @@ tile.birch.planks.12.desc=Birch Wood Scaffold
|
||||
tile.birch.planks.14.desc=Birch Wood Planks in Disarray
|
||||
tile.birch.planks.15.desc=Vertical Birch Wood Planks in Disarray
|
||||
|
||||
# Jungle
|
||||
#Jungle
|
||||
tile.jungle.planks.1.desc=Smooth Jungle Wood Planks
|
||||
tile.jungle.planks.2.desc=Short Jungle Wood Planks
|
||||
tile.jungle.planks.6.desc=Fancy Jungle Wood Plank Arrangement
|
||||
@@ -1463,7 +1480,7 @@ tile.jungle.planks.12.desc=Jungle Wood Scaffold
|
||||
tile.jungle.planks.14.desc=Jungle Wood Planks in Disarray
|
||||
tile.jungle.planks.15.desc=Vertical Jungle Wood Planks in Disarray
|
||||
|
||||
# Acacia
|
||||
#Acacia
|
||||
tile.acacia.planks.1.desc=Smooth Acacia Wood Planks
|
||||
tile.acacia.planks.2.desc=Short Acacia Wood Planks
|
||||
tile.acacia.planks.6.desc=Fancy Acacia Wood Plank Arrangement
|
||||
@@ -1480,7 +1497,7 @@ tile.acacia.planks.12.desc=Acacia Wood Scaffold
|
||||
tile.acacia.planks.14.desc=Acacia Wood Planks in Disarray
|
||||
tile.acacia.planks.15.desc=Vertical Acacia Wood Planks in Disarray
|
||||
|
||||
# Dark Oak
|
||||
#Dark Oak
|
||||
tile.dark-oak.planks.1.desc=Smooth Dark Oak Wood Planks
|
||||
tile.dark-oak.planks.2.desc=Short Dark Oak Wood Planks
|
||||
tile.dark-oak.planks.6.desc=Fancy Dark Oak Wood Plank Arrangement
|
||||
@@ -1497,7 +1514,7 @@ tile.dark-oak.planks.12.desc=Dark Oak Wood Scaffold
|
||||
tile.dark-oak.planks.14.desc=Dark Oak Wood Planks in Disarray
|
||||
tile.dark-oak.planks.15.desc=Vertical Dark Oak Wood Planks in Disarray
|
||||
|
||||
# Stained Glass
|
||||
#Stained Glass
|
||||
white.bubble.desc=Белое пузырчатое стекло
|
||||
white.glass.desc=Белая стеклянная панель
|
||||
white.glass.fancy.desc=Белая красивая стеклянная панель
|
||||
@@ -1594,7 +1611,7 @@ black.glass.fancy.desc=Чёрная красивая стеклянная пан
|
||||
black.glass.noborder.desc=Чёрное безграничное стекло
|
||||
black.glass.forestry.desc=Black Forestry Glass
|
||||
|
||||
# Stained Glass Pane
|
||||
#Stained Glass Pane
|
||||
white.pane.bubble.desc=Белое пузырчатое стекло
|
||||
white.pane.glass.desc=Белая стеклянная панель
|
||||
white.pane.glass.fancy.desc=Белая красивая стеклянная панель
|
||||
@@ -1707,7 +1724,7 @@ black.pane.glass.noborder.desc=Чёрное безграничное стекл
|
||||
black.pane.glass.quadrant.desc=Чёрная четверть стекла
|
||||
black.pane.glass.fancyquadrant.desc=Чёрная красивая четверть стекла
|
||||
|
||||
# Creative Tab localizations
|
||||
#Creative Tab localizations
|
||||
itemGroup.tabOtherChiselBlocks=Chisel: Остальные блоки
|
||||
itemGroup.tabStoneChiselBlocks=Chisel: Каменные блоки
|
||||
itemGroup.tabWoodChiselBlocks=Chisel: Деревянные блоки
|
||||
@@ -1716,7 +1733,7 @@ itemGroup.tabModdedChiselBlocks=Chisel: Блоки модификаций
|
||||
itemGroup.tabStairChiselBlocks=Chisel Stairs
|
||||
itemGroup.tabChisel=Chisel: Предметы
|
||||
|
||||
# Container
|
||||
#Container
|
||||
container.chisel=Стамеска
|
||||
container.chisel.title=Обработка блоков
|
||||
container.chisel.titleShort=Обработка
|
||||
|
||||
@@ -16,6 +16,8 @@ item.chisel.chisel.desc.modes=拥有多种雕刻模式.
|
||||
|
||||
item.chisel.chisel_diamond.name=钻石凿子
|
||||
item.chisel.chisel_obsidian.name=黑曜石凿子
|
||||
item.chisel.chisel_netherstar.name=Nether Star Chisel
|
||||
item.chisel.chisel_netherstar.gtnh.name=基岩凿子
|
||||
|
||||
item.ballMoss.name=苔藓球
|
||||
item.ballMoss.desc=右键丢出.若碰到圆石则使其变成苔石.
|
||||
@@ -33,7 +35,7 @@ item.upgrade_automation.desc=允许雕刻机自动输入或输出.
|
||||
item.upgrade_stack.desc=允许整组进行雕刻.
|
||||
item.upgrade_reversion.desc=将基本栏位恢复为其初始状态
|
||||
|
||||
# Block localizations
|
||||
#Block localizations
|
||||
|
||||
#Chisel 2
|
||||
|
||||
@@ -59,6 +61,14 @@ tile.shingles.5.desc=黑色大方瓦
|
||||
tile.chisel.valentines.name=少女心方块
|
||||
tile.valentines.0.desc=少女心砖块
|
||||
tile.valentines.1.desc=如果她开始说话了,你最好远离她
|
||||
tile.valentines.2.desc=如果她说话了而你没理她,请注意安全
|
||||
tile.valentines.3.desc=
|
||||
tile.valentines.4.desc=
|
||||
tile.valentines.5.desc=
|
||||
tile.valentines.6.desc=
|
||||
tile.valentines.7.desc=
|
||||
tile.valentines.8.desc=
|
||||
tile.valentines.9.desc=
|
||||
|
||||
#AntiBlocks
|
||||
tile.chisel.antiBlock.name=纯色方块
|
||||
@@ -724,6 +734,7 @@ tile.glass2.0.desc=非对称式格栅铅框玻璃
|
||||
|
||||
#Sandstone
|
||||
tile.chisel.sandstone.name=沙石
|
||||
tile.chisel.sandstone2.name=沙石
|
||||
|
||||
tile.sandstone.0.desc=雕文沙石
|
||||
tile.sandstone.1.desc=沙圆石
|
||||
@@ -742,6 +753,8 @@ tile.sandstone.12.desc=沙石块
|
||||
tile.sandstone.13.desc=方砖沙石
|
||||
tile.sandstone.14.desc=镶嵌图案沙石
|
||||
tile.sandstone.15.desc=层叠沙石瓷砖
|
||||
tile.sandstone.16.desc=沙石砖块
|
||||
tile.sandstone.17.desc=
|
||||
|
||||
#Sandstone scribbles
|
||||
tile.chisel.sandstone_scribbles.name=刻文沙石
|
||||
@@ -1711,7 +1724,7 @@ black.pane.glass.noborder.desc=黑色无边框染色玻璃
|
||||
black.pane.glass.quadrant.desc=黑色四分染色玻璃
|
||||
black.pane.glass.fancyquadrant.desc=黑色精制四分染色玻璃
|
||||
|
||||
# Creative Tab localizations
|
||||
#Creative Tab localizations
|
||||
itemGroup.tabOtherChiselBlocks=凿工艺|其它方块
|
||||
itemGroup.tabStoneChiselBlocks=凿工艺|石质方块
|
||||
itemGroup.tabWoodChiselBlocks=凿工艺|木质方块
|
||||
@@ -1729,3 +1742,4 @@ container.chisel.mode.single=单个雕刻
|
||||
container.chisel.mode.panel=范围雕刻
|
||||
container.chisel.mode.column=竖向雕刻
|
||||
container.chisel.mode.row=横向雕刻
|
||||
|
||||
Reference in new issue
Block a user