Compare commits

..
Author SHA1 Message Date
Alexdoru ec610dc876 Fix world client memory leaks caused by block renderers (#88)
* make threadlocals final

* minor code fixes

* fix custom block renderers leaking world

* remove now useless threadlocal cleaning

* fix memory leak from rendererOld by just deleting the field

* fix ThreadLocals to work on dedicated server
2026-04-20 11:45:05 +02:00
tiffit 2ae1f8ba93 ItemChisel: Set max damage field instead of overriding getMaxDamage(ItemStack) (#89) 2026-04-20 01:35:11 -04:00
Martin Robertz 7b9537571e update+gradle+deps+bs 2026-04-03 22:11:57 +02:00
Dream Master b031b59002 update 2026-03-05 11:00:38 +01:00
UltraProdigy 4073a4c04c opti & wflow (#81) 2026-03-05 10:52:13 +01:00
seventh-june 643d9b72ba fix typo (#80) 2026-03-01 00:08:56 +00:00
Martin Robertz fa3b49a673 backdate Angelica 2026-02-21 23:08:52 +01:00
Martin Robertz 165e5db275 update 2026-02-21 23:00:46 +01:00
openblocki 4fcfaffa63 Replace Side Texture with Top Texture (#79) 2026-02-21 22:59:19 +01:00
UltraProdigy 21690ddb09 Merge pull request #77 from seventh-june/master
Add new Metals and a new Moss blockset
2026-01-26 04:20:07 -05:00
seventh-june 1cb9a96d4f fix moss recipe 2026-01-25 21:56:36 -05:00
seventh-june 12460a6e02 fix iridium shipping crate ctm 2026-01-25 20:37:14 -05:00
seventh-june 20d2fc8c3f Many More Metals 2026-01-25 20:06:42 -05:00
seventh-june 3f395fef1d applied spotless oops
canon dev event
2026-01-25 15:05:46 -05:00
seventh-june 2593b14c53 Fix moss block recipe 2026-01-25 14:44:19 -05:00
seventh-june 72341f1633 Merge branch 'GTNewHorizons:master' into master 2026-01-25 13:39:52 -05:00
seventh-june 8a7a4a79f0 Added a moss-themed tileset 2026-01-25 13:35:55 -05:00
Léa Gris 2e1a20d829 Merge pull request #76 from GTNewHorizons/FixBottomFaceUV
fix(render): adapt hodgepodge fixBottomFaceUV
2026-01-16 02:26:07 +01:00
Léa Gris 39e860974a fix(render): adapt hodgepodge fixBottomFaceUV
HodgePodge mixin fixBottomFaceUV options fixes the bottom face texture UV.
See: GTNewHorizons/Hodgepodge#676

When unflipped, the bottom face of v-type connected textures blocks like the
large hexplating or the Industrial Technical Block's massive big fan, needs
a new unflipped order to correctly connect.
Consequently, when `fixBottomFaceUV=true`, the bottom fan animation rotates
the same way as other faces, instead of backward without the hodgepodge fix.
2026-01-14 15:09:18 +01:00
seventh-june 1464929264 moss
moss
2026-01-07 12:19:56 -05:00
Martin Robertz c4c1953ae1 update bs+deps+gradle 2026-01-02 08:48:27 +01:00
danyadevandMartin Robertz 6efa21100b Fix z-fighting for voidstone blocks (#71)
Co-authored-by: Martin Robertz <[email protected]>
2025-12-29 23:37:43 +00:00
PLASMAchicken c3e1675ac8 RoadLine drop correct metadata when destroyed via onNeighborBlockChange (#75) 2025-12-12 01:22:02 +01:00
UltraProdigy cc9b8ab774 Merge pull request #74 from PLASMAchicken/patch-stairs
Fix Stair Variant Drops
2025-12-08 19:23:09 -05:00
PLASMAchicken 674d2b389b Fix Stair Variant Drops
Seems to have been broken in https://github.com/GTNewHorizons/Chisel/commit/f0e11d8eeea751a60c0ecf2d3a40643017e11f1b
2025-12-09 01:00:14 +01:00
2767 changed files with 865 additions and 406 deletions

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
name: Optimize images
on:
pull_request:
branches: [ master, main, release/** ]
paths:
- "**/*.png"
push:
branches: [ master, main, release/** ]
paths:
- "**/*.png"
jobs:
optimize-images:
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/optimize-images.yml@master
secrets: inherit
+1
View File
@@ -28,3 +28,4 @@ whitelist.json
src/main/resources/mixins.*.json
*.bat
layout.json
.DS_Store
+5 -5
View File
@@ -1,14 +1,14 @@
// Add your dependencies here
dependencies {
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.7:dev")
implementation("com.github.GTNewHorizons:NotEnoughItems:2.8.35-GTNH:dev")
implementation("com.github.GTNewHorizons:ForgeMultipart:1.7.0:dev")
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.12:dev")
implementation("com.github.GTNewHorizons:NotEnoughItems:2.8.84-GTNH:dev")
implementation("com.github.GTNewHorizons:ForgeMultipart:1.7.3:dev")
compileOnly("org.projectlombok:lombok:1.18.24")
annotationProcessor("org.projectlombok:lombok:1.18.24")
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.9.7:dev") {
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.19.22:dev") {
transitive = false
}
devOnlyNonPublishable("com.github.GTNewHorizons:WailaHarvestability:1.3.4-GTNH:dev")
@@ -17,7 +17,7 @@ dependencies {
transitive = false
}
compileOnly("com.github.GTNewHorizons:Angelica:1.0.0-beta68:api") {
compileOnly("com.github.GTNewHorizons:Angelica:2.1.15:api") {
transitive = false
}
}
+30 -3
View File
@@ -39,9 +39,33 @@ remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/co
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
developmentEnvironmentUserName = Developer
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
# See https://github.com/bsideup/jabel for details on how this works.
enableModernJavaSyntax = false
# Enables modern Java syntax support. Valid values:
# - false: No modern syntax, Java 8 only
# - jabel: Jabel syntax-only support, compiles to J8 bytecode
# - jvmDowngrader: Full modern Java via JVM Downgrader (syntax + stdlib APIs)
# - modern: Native modern Java bytecode, no downgrading
enableModernJavaSyntax = jabel
# If set, ignores the above setting and compiles with the given toolchain. This may cause unexpected issues,
# and should *not* be used in most situations. -1 disables this.
# forceToolchainVersion = -1
# Target JVM version for JVM Downgrader bytecode downgrading.
# Only used when enableModernJavaSyntax = jvmDowngrader
# downgradeTargetVersion = 8
# Comma-separated list of Java versions for multi-release jar support (JVM Downgrader only).
# Classes will be available in META-INF/versions/N/ for each version N in this list.
# Default: "21,25" (J25+ gets native classes, J21-24 gets partial downgrade, J8-20 gets full downgrade).
# jvmDowngraderMultiReleaseVersions = 21,25
# Specifies how JVM Downgrader API stubs are provided. Options:
# - shade: Shade minimized stubs into the jar
# - gtnhlib: GTNHLib provides stubs at runtime (adds version constraint)
# - external: Another dependency provides stubs (no constraint, no warning)
# - (empty): Warning reminding you to configure stubs
# Note: 'shade' option requires you to verify license compliance, see: https://github.com/unimined/JvmDowngrader/blob/main/LICENSE.md
# jvmDowngraderStubsProvider =
# Enables injecting missing generics into the decompiled source code for a better coding experience.
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
@@ -209,3 +233,6 @@ curseForgeRelations =
# This is meant to be set in $HOME/.gradle/gradle.properties.
# ideaCheckSpotlessOnBuild = true
# Non-GTNH properties
org.gradle.configuration-cache = true
org.gradle.parallel = true
+12
View File
@@ -0,0 +1,12 @@
#This file is generated by updateDaemonJvm
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/d4fd992c9557644e637ebe98263e0ae7/redirect
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/faa12903720d410b387cc69ccafb1a74/redirect
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/a4c09dd2e2d7079373d30e524bbc2829/redirect
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/8e1d9ee5d0f13e442218f6884a306da1/redirect
toolchainVersion=25
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Vendored
+2 -5
View File
@@ -1,7 +1,7 @@
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
# Copyright © 2015 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/b631911858264c0b6e4d6603d677ff5218766cee/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -114,7 +114,6 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH="\\\"\\\""
# Determine the Java command to use to start the JVM.
@@ -172,7 +171,6 @@ fi
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
@@ -212,7 +210,6 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"
Vendored
+1 -2
View File
@@ -70,11 +70,10 @@ goto fail
:execute
@rem Setup the command line
set CLASSPATH=
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
:end
@rem End local scope for the variables with windows NT shell
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.48'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.24'
}
@@ -14,10 +14,10 @@ import team.chisel.ctmlib.ISubmapManager;
public class VariationInfoBase implements IVariationInfo {
private ICarvingVariation variation;
private String unlocDesc;
private ISubmapManager manager;
private TextureType type;
private final ICarvingVariation variation;
private final String unlocDesc;
private final ISubmapManager manager;
private final TextureType type;
public VariationInfoBase(ICarvingVariation variation, String unlocDesc, ISubmapManager manager) {
this(variation, unlocDesc, manager, TextureType.CUSTOM);
@@ -6,6 +6,7 @@ import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.launchwrapper.Launch;
import net.minecraft.util.IIcon;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.IBlockAccess;
@@ -18,6 +19,7 @@ import org.apache.commons.lang3.tuple.Triple;
import com.cricketcraft.chisel.api.carving.CarvableHelper;
import com.cricketcraft.chisel.api.carving.ICarvingVariation;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.CTM;
@@ -90,9 +92,9 @@ public enum TextureType {
TextureSubmap map = data.getLeft();
if (topConnected && botConnected)
return map.getSubIcon(0, 1);
if (topConnected && !botConnected)
if (topConnected)
return map.getSubIcon(1, 1);
if (!topConnected && botConnected)
if (botConnected)
return map.getSubIcon(1, 0);
return map.getSubIcon(0, 0);
}
@@ -100,11 +102,9 @@ public enum TextureType {
@Override
@SideOnly(Side.CLIENT)
protected RenderBlocks createRenderContext(RenderBlocks rendererOld, IBlockAccess world, Object cachedObject) {
TextureType.initStatics();
RenderBlocksColumn ret = theRenderBlocksColumn.get();
Pair<TextureSubmap, IIcon> data = (Pair<TextureSubmap, IIcon>) cachedObject;
ret.blockAccess = world;
ret.renderMaxX = 1.0;
ret.renderMaxY = 1.0;
ret.renderMaxZ = 1.0;
@@ -206,15 +206,12 @@ public enum TextureType {
@Override
@SideOnly(Side.CLIENT)
protected RenderBlocks createRenderContext(RenderBlocks rendererOld, IBlockAccess world, Object cachedObject) {
TextureType.initStatics();
RenderBlocksCTM ret = theRenderBlocksCTM.get();
Triple<?, TextureSubmap, TextureSubmap> data = (Triple<?, TextureSubmap, TextureSubmap>) cachedObject;
ret.blockAccess = world;
ret.submap = data.getMiddle();
ret.submapSmall = data.getRight();
ret.rendererOld = rendererOld;
return ret;
}
},
@@ -271,6 +268,8 @@ public enum TextureType {
CUSTOM;
/* Some util stuff for shared code between v* and r* */
public static final boolean fixedBottomFaceUV = (boolean) Launch.blackboard
.getOrDefault("hodgepodge.FixesConfig.fixBottomFaceUV", Boolean.FALSE);
public static IIcon getVIcon(TextureType type, TextureSubmap map, int x, int y, int z, int side) {
int variationSize = (type == TextureType.V9) ? 3 : 2;
@@ -291,6 +290,9 @@ public enum TextureType {
//For DOWN, reverse the indexes for only Z
textureZ = (variationSize - textureZ - 1);
}*/
else if (side == 0 && fixedBottomFaceUV) {
textureX = variationSize - textureX - 1;
}
int index;
if (side == 0 || side == 1) {
@@ -326,33 +328,18 @@ public enum TextureType {
private static final TextureType[] VALUES;
private static final CTM ctm = CTM.getInstance();
private static final Random rand = new Random();
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksCTM> theRenderBlocksCTM;
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksColumn> theRenderBlocksColumn;
private static final ThreadLocal<RenderBlocksCTM> theRenderBlocksCTM = FMLLaunchHandler.side().isClient() ? ThreadLocal.withInitial(RenderBlocksCTM::new) : null;
private static final ThreadLocal<RenderBlocksColumn> theRenderBlocksColumn = FMLLaunchHandler.side().isClient() ? ThreadLocal.withInitial(RenderBlocksColumn::new) : null;
private String[] suffixes;
private final String[] suffixes;
static {
VALUES = ArrayUtils.subarray(values(), 0, values().length - 1);
}
private TextureType(String... suffixes) {
TextureType(String... suffixes) {
this.suffixes = suffixes.length == 0 ? new String[] { "" } : suffixes;
}
private static void initStatics() {
if (theRenderBlocksCTM == null) {
theRenderBlocksCTM = ThreadLocal.withInitial(RenderBlocksCTM::new);
theRenderBlocksColumn = ThreadLocal.withInitial(RenderBlocksColumn::new);
}
}
@SideOnly(Side.CLIENT)
public static void clearStatics() {
if(theRenderBlocksCTM != null) theRenderBlocksCTM.remove();
if(theRenderBlocksColumn != null) theRenderBlocksColumn.remove();
}
public ISubmapManager createManagerFor(ICarvingVariation variation, String texturePath) {
return new SubmapManagerDefault(this, variation, texturePath);
}
+371 -117
View File
@@ -1,21 +1,6 @@
package team.chisel;
import static team.chisel.init.ChiselBlocks.andesite;
import static team.chisel.init.ChiselBlocks.cubit;
import static team.chisel.init.ChiselBlocks.diorite;
import static team.chisel.init.ChiselBlocks.granite;
import static team.chisel.init.ChiselBlocks.jackolantern;
import static team.chisel.init.ChiselBlocks.neonite;
import static team.chisel.init.ChiselBlocks.nucrete;
import static team.chisel.init.ChiselBlocks.planks;
import static team.chisel.init.ChiselBlocks.planks_bop;
import static team.chisel.init.ChiselBlocks.planks_tc;
import static team.chisel.init.ChiselBlocks.pumpkin;
import static team.chisel.init.ChiselBlocks.stainedGlass;
import static team.chisel.init.ChiselBlocks.stainedGlassForestry;
import static team.chisel.init.ChiselBlocks.stainedGlassPane;
import static team.chisel.init.ChiselBlocks.sveltstone;
import static team.chisel.init.ChiselBlocks.torches;
import static team.chisel.init.ChiselBlocks.*;
import static team.chisel.utils.General.featureColors;
import static team.chisel.utils.General.sGNames;
@@ -261,7 +246,7 @@ public enum Features {
if (meta == 0) {
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.antiBlock, 8, 15),
new ItemStack(antiBlock, 8, 15),
"SSS",
"SGS",
"SSS",
@@ -272,14 +257,14 @@ public enum Features {
}
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.antiBlock, 8, meta),
new ItemStack(antiBlock, 8, meta),
"BBB",
"BdB",
"BBB",
'd',
dyeOres[meta],
'B',
new ItemStack(ChiselBlocks.antiBlock, 1, OreDictionary.WILDCARD_VALUE)));
new ItemStack(antiBlock, 1, OreDictionary.WILDCARD_VALUE)));
}
@Override
@@ -328,7 +313,7 @@ public enum Features {
void addRecipes() {
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.autoChisel, 1),
new ItemStack(autoChisel, 1),
new Object[] { "XXX", " Y ", "YYY", Character.valueOf('X'), Blocks.stone_slab,
Character.valueOf('Y'), "ingotIron" }));
}
@@ -535,7 +520,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.carpet_block, 8, meta),
new ItemStack(carpet_block, 8, meta),
"YYY",
"YXY",
"YYY",
@@ -597,11 +582,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.carpet, 3, meta),
"XX",
'X',
new ItemStack(ChiselBlocks.carpet_block, 1, meta));
GameRegistry.addRecipe(new ItemStack(carpet, 3, meta), "XX", 'X', new ItemStack(carpet_block, 1, meta));
}
@Override
@@ -877,7 +858,7 @@ public enum Features {
if (concreteRecipeBlock == null) concreteRecipeBlock = Blocks.gravel;
FurnaceRecipes.smelting()
.func_151393_a(concreteRecipeBlock, new ItemStack(ChiselBlocks.concrete), 0.1F);
.func_151393_a(concreteRecipeBlock, new ItemStack(concrete), 0.1F);
}
},
@@ -1140,7 +1121,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.factoryblock, Configurations.factoryBlockAmount, 0),
new ItemStack(factoryblock, Configurations.factoryBlockAmount, 0),
new Object[] { "*X*", "X X", "*X*", '*', new ItemStack(Blocks.stone, 1), 'X',
new ItemStack(Items.iron_ingot, 1) });
}
@@ -1202,7 +1183,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.fantasyblock, 8, 0),
new ItemStack(fantasyblock, 8, 0),
"***",
"*X*",
"***",
@@ -1212,12 +1193,12 @@ public enum Features {
new ItemStack(Items.gold_nugget, 1));
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.fantasyblock2, 8, 0),
new ItemStack(fantasyblock2, 8, 0),
"***",
"*X*",
"***",
'*',
new ItemStack(ChiselBlocks.fantasyblock, 1),
new ItemStack(fantasyblock, 1),
'X',
"dyeWhite"));
}
@@ -1272,7 +1253,7 @@ public enum Features {
void addRecipes() {
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.futura, 8, 0),
new ItemStack(futura, 8, 0),
"SBS",
"BGB",
"SBS",
@@ -1475,7 +1456,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.glotek, 8, 0),
new ItemStack(glotek, 8, 0),
"***",
"*X*",
"***",
@@ -1628,7 +1609,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.grimstone, 8, 0),
new ItemStack(grimstone, 8, 0),
"***",
"*X*",
"***",
@@ -1776,7 +1757,7 @@ public enum Features {
void addRecipes() {
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.hexPlating, 8, 0),
new ItemStack(hexPlating, 8, 0),
"XXX",
"XYX",
"XXX",
@@ -1818,7 +1799,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.holystone, 8, 0),
new ItemStack(holystone, 8, 0),
"***",
"*X*",
"***",
@@ -1852,15 +1833,9 @@ public enum Features {
if (!Loader.isModLoaded("dreamcraft")) {
for (int i = 0; i < 16; i++) {
GameRegistry.addSmelting(
new ItemStack(ChiselBlocks.hempcretesand, 1, i),
new ItemStack(ChiselBlocks.hempcrete, 1, i),
20F);
GameRegistry.addSmelting(new ItemStack(hempcretesand, 1, i), new ItemStack(hempcrete, 1, i), 20F);
GameRegistry.addSmelting(
new ItemStack(ChiselBlocks.hempcretesand, 1, i),
new ItemStack(ChiselBlocks.hempcrete, 1, i),
0.1F);
GameRegistry.addSmelting(new ItemStack(hempcretesand, 1, i), new ItemStack(hempcrete, 1, i), 0.1F);
}
}
}
@@ -1892,7 +1867,7 @@ public enum Features {
void addRecipes() {
if (!Loader.isModLoaded("dreamcraft")) {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.hempcretesand, 8, 0),
new ItemStack(hempcretesand, 8, 0),
"***",
"*X*",
"***",
@@ -1936,11 +1911,11 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.ice, 4, 1),
new ItemStack(ice, 4, 1),
"XX",
"XX",
'X',
new ItemStack(ChiselBlocks.ice_pillar, 1, OreDictionary.WILDCARD_VALUE));
new ItemStack(ice_pillar, 1, OreDictionary.WILDCARD_VALUE));
}
},
@@ -1967,12 +1942,12 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.ice_pillar, 6, 0),
new ItemStack(ice_pillar, 6, 0),
"XX",
"XX",
"XX",
'X',
new ItemStack(ChiselBlocks.ice, 1, OreDictionary.WILDCARD_VALUE));
new ItemStack(ice, 1, OreDictionary.WILDCARD_VALUE));
}
},
@@ -2004,7 +1979,7 @@ public enum Features {
public BlockCarvableStairs create(Block block, int meta, CarvableHelper helper) {
return new BlockCarvableIceStairs(block, meta, helper);
}
}, "ice_stairs", ChiselBlocks.iceStairs);
}, "ice_stairs", iceStairs);
Carving.chisel.registerOre("ice_stairs", "iceStairs");
}
},
@@ -2141,7 +2116,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.laboratoryblock, 8, 0),
new ItemStack(laboratoryblock, 8, 0),
"***",
"*X*",
"***",
@@ -2207,7 +2182,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.lavastone, 8, 0),
new ItemStack(lavastone, 8, 0),
"***",
"*X*",
"***",
@@ -2393,17 +2368,17 @@ public enum Features {
.addVariation("tile.limestoneStairs.14.desc", 14, "limestone/terrain-pistonback-lightmarker");
makerLimestoneStairs.carverHelper
.addVariation("tile.limestoneStairs.15.desc", 15, "limestone/terrain-pistonback-lightpanel");
makerLimestoneStairs.create("limestone_stairs", ChiselBlocks.limestoneStairs);
makerLimestoneStairs.create("limestone_stairs", limestoneStairs);
Carving.chisel.registerOre("limestone_stairs", "limestone_stairs");
}
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.limestone_slab, 6, 0),
new ItemStack(limestone_slab, 6, 0),
"***",
'*',
new ItemStack(ChiselBlocks.limestone, 1, OreDictionary.WILDCARD_VALUE));
new ItemStack(limestone, 1, OreDictionary.WILDCARD_VALUE));
}
},
@@ -2505,22 +2480,22 @@ public enum Features {
makerMarbleStairs.carverHelper
.addVariation("tile.marbleStairs.14.desc", 14, "marbleslab/marble-fancy-bricks");
makerMarbleStairs.carverHelper.addVariation("tile.marbleStairs.15.desc", 15, "marbleslab/marble-blocks");
makerMarbleStairs.create("marble_stairs", ChiselBlocks.marbleStairs);
makerMarbleStairs.create("marble_stairs", marbleStairs);
}
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.marble_slab, 6, 0),
new ItemStack(marble_slab, 6, 0),
"***",
'*',
new ItemStack(ChiselBlocks.marble, 1, OreDictionary.WILDCARD_VALUE));
new ItemStack(marble, 1, OreDictionary.WILDCARD_VALUE));
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.marble, 4),
new ItemStack(marble, 4),
"XX",
"XX",
'X',
new ItemStack(ChiselBlocks.marble_pillar, 1, OreDictionary.WILDCARD_VALUE));
new ItemStack(marble_pillar, 1, OreDictionary.WILDCARD_VALUE));
}
},
@@ -2698,17 +2673,17 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.marble_pillar, 6),
new ItemStack(marble_pillar, 6),
"XX",
"XX",
"XX",
'X',
new ItemStack(ChiselBlocks.marble, 1, OreDictionary.WILDCARD_VALUE));
new ItemStack(marble, 1, OreDictionary.WILDCARD_VALUE));
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.marble_pillar_slab, 6, 0),
new ItemStack(marble_pillar_slab, 6, 0),
"***",
'*',
new ItemStack(ChiselBlocks.marble_pillar, 1, OreDictionary.WILDCARD_VALUE));
new ItemStack(marble_pillar, 1, OreDictionary.WILDCARD_VALUE));
}
},
@@ -2748,7 +2723,7 @@ public enum Features {
void addRecipes() {
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.rebel, 32, 0),
new ItemStack(rebel, 32, 0),
new Object[] { "xyx", "yzy", "xyx", 'x', "stone", 'y', Items.iron_ingot, 'z', Items.gold_nugget }));
}
},
@@ -2983,12 +2958,12 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.packedice_pillar, 6, 0),
new ItemStack(packedice_pillar, 6, 0),
"XX",
"XX",
"XX",
'X',
new ItemStack(ChiselBlocks.packedice, 1, OreDictionary.WILDCARD_VALUE));
new ItemStack(packedice, 1, OreDictionary.WILDCARD_VALUE));
}
},
@@ -3048,7 +3023,7 @@ public enum Features {
public BlockCarvableStairs create(Block block, int meta, CarvableHelper helper) {
return new BlockCarvablePackedIceStairs(block, meta, helper);
}
}, "packedice_stairs", ChiselBlocks.packediceStairs);
}, "packedice_stairs", packediceStairs);
Carving.chisel.registerOre("packedice_stairs", "packedIceStairs");
}
},
@@ -3098,7 +3073,7 @@ public enum Features {
void addRecipes() {
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.paperwall, 8),
new ItemStack(paperwall, 8),
"ppp",
"psp",
"ppp",
@@ -3106,13 +3081,8 @@ public enum Features {
Items.paper,
('s'),
"stickWood"));
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.paperwall_block, 4),
"pp",
"pp",
('p'),
ChiselBlocks.paperwall));
GameRegistry
.addRecipe(new ShapedOreRecipe(new ItemStack(paperwall_block, 4), "pp", "pp", ('p'), paperwall));
}
},
@@ -3134,10 +3104,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ShapelessOreRecipe(
new ItemStack(ChiselBlocks.present, 1, meta),
new ItemStack(Blocks.chest, 1),
dyeOres[meta]));
new ShapelessOreRecipe(new ItemStack(present, 1, meta), new ItemStack(Blocks.chest, 1), dyeOres[meta]));
}
@Override
@@ -3204,7 +3171,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addShapelessRecipe(
new ItemStack(ChiselBlocks.purpur),
new ItemStack(purpur),
new ItemStack(Item.getItemFromBlock(Blocks.end_stone), 1),
new ItemStack(Items.dye, 1, 5));
}
@@ -3412,7 +3379,7 @@ public enum Features {
void addRecipes() {
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.road_line, 8, 0),
new ItemStack(road_line, 8, 0),
"wrw",
"wrw",
"wrw",
@@ -3513,23 +3480,15 @@ public enum Features {
if (meta == 0) {
// The following recipe is due to bugs with Chisel 1.5.1 to
// 1.5.6a
GameRegistry.addRecipe(
new ItemStack(Blocks.sandstone, 1, 0),
"X",
'X',
new ItemStack(ChiselBlocks.sandstone, 1, 0));
GameRegistry.addRecipe(new ItemStack(Blocks.sandstone, 1, 0), "X", 'X', new ItemStack(sandstone, 1, 0));
// The following recipe is due to bug with Chisel 1.5.6b
GameRegistry.addRecipe(
new ItemStack(Blocks.sandstone, 1, 1),
"X",
'X',
new ItemStack(ChiselBlocks.sandstone, 1, 1));
GameRegistry.addRecipe(new ItemStack(Blocks.sandstone, 1, 1), "X", 'X', new ItemStack(sandstone, 1, 1));
}
GameRegistry.addRecipe(
new ItemStack(Blocks.sandstone, 1, 1),
"X",
'X',
new ItemStack(ChiselBlocks.sandstone_scribbles, 1, OreDictionary.WILDCARD_VALUE));
new ItemStack(sandstone_scribbles, 1, OreDictionary.WILDCARD_VALUE));
}
},
@@ -3829,7 +3788,7 @@ public enum Features {
void addRecipes() {
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.technical, Configurations.factoryBlockAmount, 0),
new ItemStack(technical, Configurations.factoryBlockAmount, 0),
new Object[] { "xyx", "yxy", "xyx", 'x', "stone", 'y', Items.iron_ingot }));
/*
* GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ChiselBlocks.technical2,
@@ -3872,7 +3831,7 @@ public enum Features {
void addRecipes() {
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.templeblock, 8, 0),
new ItemStack(templeblock, 8, 0),
"***",
"*X*",
"***",
@@ -4076,7 +4035,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.tyrian, 8, 0),
new ItemStack(tyrian, 8, 0),
"***",
"*X*",
"***",
@@ -4134,7 +4093,7 @@ public enum Features {
void addRecipes() {
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.valentines, 8, 0),
new ItemStack(valentines, 8, 0),
"***",
"*X*",
"***",
@@ -4214,11 +4173,11 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.voidstone, 8, 0),
new ItemStack(voidstone, 8, 0),
new Object[] { "oxo", "xyx", "oxo", 'x', new ItemStack(Blocks.stone, 1), 'y',
new ItemStack(Items.ender_pearl, 1), 'o', new ItemStack(Blocks.obsidian, 1) });
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.voidstone2, 8, 0),
new ItemStack(voidstone2, 8, 0),
new Object[] { "oxo", "xyx", "oxo", 'x', new ItemStack(Blocks.stone, 1), 'y',
new ItemStack(Items.ender_eye, 1), 'o', new ItemStack(Blocks.obsidian, 1) });
}
@@ -4244,18 +4203,9 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.voidstonePillar, 4, 0),
"xx",
"xx",
'x',
new ItemStack(ChiselBlocks.voidstone, 1));
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.voidstonePillar2, 4, 0),
"xx",
"xx",
'x',
new ItemStack(ChiselBlocks.voidstone2, 1));
GameRegistry.addRecipe(new ItemStack(voidstonePillar, 4, 0), "xx", "xx", 'x', new ItemStack(voidstone, 1));
GameRegistry
.addRecipe(new ItemStack(voidstonePillar2, 4, 0), "xx", "xx", 'x', new ItemStack(voidstone2, 1));
}
},
@@ -4291,7 +4241,7 @@ public enum Features {
void addRecipes() {
GameRegistry.addRecipe(
new ShapedOreRecipe(
new ItemStack(ChiselBlocks.warningSign, 4, 0),
new ItemStack(warningSign, 4, 0),
new Object[] { "xxx", "xyx", "xxx", 'x', "stone", 'y', Items.sign }));
}
},
@@ -4319,7 +4269,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.waterstone, 8, 0),
new ItemStack(waterstone, 8, 0),
"***",
"*X*",
"***",
@@ -4501,7 +4451,7 @@ public enum Features {
.registerOre("blockWool" + sGNames[meta].replaceAll(" ", ""), new ItemStack(Blocks.wool, 1, meta));
GameRegistry.addRecipe(
new ShapelessOreRecipe(
new ItemStack(ChiselBlocks.woolen_clay, 2, meta),
new ItemStack(woolen_clay, 2, meta),
new Object[] { "blockWool" + sGNames[meta].replaceAll(" ", ""),
"stainedClay" + sGNames[meta].replaceAll(" ", "") }));
}
@@ -4532,7 +4482,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.froglight, 8, 0),
new ItemStack(froglight, 8, 0),
"SGS",
"BSB",
"SGS",
@@ -4567,7 +4517,7 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.lantern, 1, 0),
new ItemStack(lantern, 1, 0),
"gig",
"iGi",
"gig",
@@ -4606,13 +4556,317 @@ public enum Features {
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.sheetmetal, 32, 0),
new ItemStack(sheetmetal, 32, 0),
"iii",
" ",
"iii",
'i',
new ItemStack(Items.iron_ingot, 1, 0));
}
},
MOSS {
@Override
void addBlocks() {
BlockCarvable moss = (BlockCarvable) new BlockCarvable(Material.wood).setStepSound(Block.soundTypeGrass)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
moss.carverHelper.addVariation("tile.moss.0.desc", 0, "moss/moss");
moss.carverHelper.addVariation("tile.moss.1.desc", 1, "moss/pale_moss");
moss.carverHelper.addVariation("tile.moss.2.desc", 2, "moss/dark_moss");
moss.carverHelper.addVariation("tile.moss.3.desc", 3, "moss/dry_moss");
moss.carverHelper.addVariation("tile.moss.4.desc", 4, "moss/golden_moss");
moss.carverHelper.addVariation("tile.moss.5.desc", 5, "moss/infused_moss");
moss.carverHelper.addVariation("tile.moss.6.desc", 6, "moss/mutated_moss");
moss.carverHelper.addVariation("tile.moss.7.desc", 7, "moss/scorched_moss");
moss.carverHelper.addVariation("tile.moss.8.desc", 8, "moss/vivid_moss");
moss.carverHelper.addVariation("tile.moss.9.desc", 9, "moss/peat_moss");
moss.carverHelper.addVariation("tile.moss.10.desc", 10, "moss/pink_sphagnum_moss");
moss.carverHelper.registerAll(moss, "moss");
Carving.chisel.registerOre("moss", "blockMoss");
}
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(moss, 8, 0),
"ggg",
"gMg",
"ggg",
'M',
new ItemStack(ChiselItems.ballomoss, 1),
'g',
new ItemStack(Blocks.dirt, 1));
}
},
ELECTRUM {
@Override
void addBlocks() {
BlockCarvable electrum = (BlockCarvable) new BlockBeaconBase(Material.iron)
.setStepSound(Block.soundTypeMetal)
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
.setHardness(5F)
.setResistance(10F);
electrum.carverHelper.addVariation("tile.numetalOre.0.desc", 0, "metals/electrum/badgreggy", 0);
electrum.carverHelper.addVariation("tile.numetalOre.1.desc", 1, "metals/electrum/bolted", 1);
electrum.carverHelper.addVariation("tile.numetalOre.2.desc", 2, "metals/electrum/caution", 2);
electrum.carverHelper.addVariation("tile.numetalOre.3.desc", 3, "metals/electrum/crate", 3);
electrum.carverHelper.addVariation("tile.numetalOre.4.desc", 4, "metals/electrum/machine", 4);
electrum.carverHelper.addVariation("tile.numetalOre.5.desc", 5, "metals/electrum/scaffold", 5);
electrum.carverHelper.addVariation("tile.numetalOre.6.desc", 6, "metals/electrum/thermal-side", 6);
electrum.carverHelper.registerAll(electrum, "electrumblock");
Carving.chisel.registerOre("electrumblock", "blockElectrun");
}
},
INVAR {
@Override
void addBlocks() {
BlockCarvable invar = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal)
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
.setHardness(5F)
.setResistance(10F);
invar.carverHelper.addVariation("tile.numetalOre.0.desc", 0, "metals/invar/badgreggy", 0);
invar.carverHelper.addVariation("tile.numetalOre.1.desc", 1, "metals/invar/bolted", 1);
invar.carverHelper.addVariation("tile.numetalOre.2.desc", 2, "metals/invar/caution", 2);
invar.carverHelper.addVariation("tile.numetalOre.3.desc", 3, "metals/invar/crate", 3);
invar.carverHelper.addVariation("tile.numetalOre.4.desc", 4, "metals/invar/machine", 4);
invar.carverHelper.addVariation("tile.numetalOre.5.desc", 5, "metals/invar/scaffold", 5);
invar.carverHelper.addVariation("tile.numetalOre.6.desc", 6, "metals/invar/thermal-side", 6);
invar.carverHelper.registerAll(invar, "invarblock");
Carving.chisel.registerOre("invarblock", "blockInvar");
}
},
NICKEL {
@Override
void addBlocks() {
BlockCarvable nickel = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal)
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
.setHardness(5F)
.setResistance(10F);
nickel.carverHelper.addVariation("tile.numetalOre.0.desc", 0, "metals/nickel/badgreggy", 0);
nickel.carverHelper.addVariation("tile.numetalOre.1.desc", 1, "metals/nickel/bolted", 1);
nickel.carverHelper.addVariation("tile.numetalOre.2.desc", 2, "metals/nickel/caution", 2);
nickel.carverHelper.addVariation("tile.numetalOre.3.desc", 3, "metals/nickel/crate", 3);
nickel.carverHelper.addVariation("tile.numetalOre.4.desc", 4, "metals/nickel/machine", 4);
nickel.carverHelper.addVariation("tile.numetalOre.5.desc", 5, "metals/nickel/scaffold", 5);
nickel.carverHelper.addVariation("tile.numetalOre.6.desc", 6, "metals/nickel/thermal-side", 6);
nickel.carverHelper.registerAll(nickel, "nickelblock");
Carving.chisel.registerOre("nickelblock", "blockNickel");
}
},
PLATINUM {
@Override
void addBlocks() {
BlockCarvable platinum = (BlockCarvable) new BlockBeaconBase(Material.iron)
.setStepSound(Block.soundTypeMetal)
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
.setHardness(5F)
.setResistance(10F);
platinum.carverHelper.addVariation("tile.numetalOre.0.desc", 0, "metals/platinum/badgreggy", 0);
platinum.carverHelper.addVariation("tile.numetalOre.1.desc", 1, "metals/platinum/bolted", 1);
platinum.carverHelper.addVariation("tile.numetalOre.2.desc", 2, "metals/platinum/caution", 2);
platinum.carverHelper.addVariation("tile.numetalOre.3.desc", 3, "metals/platinum/crate", 3);
platinum.carverHelper.addVariation("tile.numetalOre.4.desc", 4, "metals/platinum/machine", 4);
platinum.carverHelper.addVariation("tile.numetalOre.5.desc", 5, "metals/platinum/scaffold", 5);
platinum.carverHelper.addVariation("tile.numetalOre.6.desc", 6, "metals/platinum/thermal-side", 6);
platinum.carverHelper.registerAll(platinum, "platinumblock");
Carving.chisel.registerOre("platinumblock", "blockPlatinum");
}
},
WROUGHT_IRON {
@Override
void addBlocks() {
BlockCarvable wrought_iron = (BlockCarvable) new BlockBeaconBase(Material.iron)
.setStepSound(Block.soundTypeMetal)
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
.setHardness(5F)
.setResistance(10F);
wrought_iron.carverHelper
.addVariation("tile.newmetalOre.0.desc", 0, "metals/wrought_iron/wrought_iron_0", 0);
wrought_iron.carverHelper
.addVariation("tile.newmetalOre.1.desc", 1, "metals/wrought_iron/wrought_iron_1", 1);
wrought_iron.carverHelper
.addVariation("tile.newetalOre.2.desc", 2, "metals/wrought_iron/wrought_iron_2", 2);
wrought_iron.carverHelper
.addVariation("tile.newetalOre.3.desc", 3, "metals/wrought_iron/wrought_iron_3", 3);
wrought_iron.carverHelper
.addVariation("tile.newetalOre.4.desc", 4, "metals/wrought_iron/wrought_iron_4", 4);
wrought_iron.carverHelper
.addVariation("tile.newetalOre.5.desc", 5, "metals/wrought_iron/wrought_iron_5", 5);
wrought_iron.carverHelper
.addVariation("tile.newetalOre.6.desc", 6, "metals/wrought_iron/wrought_iron_6", 6);
wrought_iron.carverHelper
.addVariation("tile.newetalOre.7.desc", 7, "metals/wrought_iron/wrought_iron_7", 6);
wrought_iron.carverHelper.registerAll(wrought_iron, "wroughtironblock");
Carving.chisel.registerOre("wroughtironblock", "blockWroughtIron");
}
},
TITANIUM {
@Override
void addBlocks() {
BlockCarvable titanium = (BlockCarvable) new BlockBeaconBase(Material.iron)
.setStepSound(Block.soundTypeMetal)
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
.setHardness(5F)
.setResistance(10F);
titanium.carverHelper.addVariation("tile.newmetalOre.0.desc", 0, "metals/titanium/titanium_0", 0);
titanium.carverHelper.addVariation("tile.newmetalOre.1.desc", 1, "metals/titanium/titanium_1", 1);
titanium.carverHelper.addVariation("tile.newetalOre.2.desc", 2, "metals/titanium/titanium_2", 2);
titanium.carverHelper.addVariation("tile.newetalOre.3.desc", 3, "metals/titanium/titanium_3", 3);
titanium.carverHelper.addVariation("tile.newetalOre.4.desc", 4, "metals/titanium/titanium_4", 4);
titanium.carverHelper.addVariation("tile.newetalOre.5.desc", 5, "metals/titanium/titanium_5", 5);
titanium.carverHelper.addVariation("tile.newetalOre.6.desc", 6, "metals/titanium/titanium_6", 6);
titanium.carverHelper.addVariation("tile.newetalOre.7.desc", 7, "metals/titanium/titanium_7", 6);
titanium.carverHelper.registerAll(titanium, "titaniumblock");
Carving.chisel.registerOre("titaniumblock", "titaniumBlock");
}
},
STAINLESS_STEEL {
@Override
void addBlocks() {
BlockCarvable stainless_steel = (BlockCarvable) new BlockBeaconBase(Material.iron)
.setStepSound(Block.soundTypeMetal)
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
.setHardness(5F)
.setResistance(10F);
stainless_steel.carverHelper
.addVariation("tile.newmetalOre.0.desc", 0, "metals/stainless_steel/stainless_steel_0", 0);
stainless_steel.carverHelper
.addVariation("tile.newmetalOre.1.desc", 1, "metals/stainless_steel/stainless_steel_1", 1);
stainless_steel.carverHelper
.addVariation("tile.newetalOre.2.desc", 2, "metals/stainless_steel/stainless_steel_2", 2);
stainless_steel.carverHelper
.addVariation("tile.newetalOre.3.desc", 3, "metals/stainless_steel/stainless_steel_3", 3);
stainless_steel.carverHelper
.addVariation("tile.newetalOre.4.desc", 4, "metals/stainless_steel/stainless_steel_4", 4);
stainless_steel.carverHelper
.addVariation("tile.newetalOre.5.desc", 5, "metals/stainless_steel/stainless_steel_5", 5);
stainless_steel.carverHelper
.addVariation("tile.newetalOre.6.desc", 6, "metals/stainless_steel/stainless_steel_6", 6);
stainless_steel.carverHelper
.addVariation("tile.newetalOre.7.desc", 7, "metals/stainless_steel/stainless_steel_7", 6);
stainless_steel.carverHelper.registerAll(stainless_steel, "stainlesssteelblock");
Carving.chisel.registerOre("stainlesssteelblock", "blockStainlessSteel");
}
},
TUNGSTENSTEEL {
@Override
void addBlocks() {
BlockCarvable tungstensteel = (BlockCarvable) new BlockBeaconBase(Material.iron)
.setStepSound(Block.soundTypeMetal)
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
.setHardness(5F)
.setResistance(10F);
tungstensteel.carverHelper
.addVariation("tile.newmetalOre.0.desc", 0, "metals/tungstensteel/tungstensteel_0", 0);
tungstensteel.carverHelper
.addVariation("tile.newmetalOre.1.desc", 1, "metals/tungstensteel/tungstensteel_1", 1);
tungstensteel.carverHelper
.addVariation("tile.newetalOre.2.desc", 2, "metals/tungstensteel/tungstensteel_2", 2);
tungstensteel.carverHelper
.addVariation("tile.newetalOre.3.desc", 3, "metals/tungstensteel/tungstensteel_3", 3);
tungstensteel.carverHelper
.addVariation("tile.newetalOre.4.desc", 4, "metals/tungstensteel/tungstensteel_4", 4);
tungstensteel.carverHelper
.addVariation("tile.newetalOre.5.desc", 5, "metals/tungstensteel/tungstensteel_5", 5);
tungstensteel.carverHelper
.addVariation("tile.newetalOre.6.desc", 6, "metals/tungstensteel/tungstensteel_6", 6);
tungstensteel.carverHelper
.addVariation("tile.newetalOre.7.desc", 7, "metals/tungstensteel/tungstensteel_7", 6);
tungstensteel.carverHelper.registerAll(tungstensteel, "tungstensteelblock");
Carving.chisel.registerOre("tungstensteelblock", "tungstensteelBlock");
}
},
RPP {
@Override
void addBlocks() {
BlockCarvable rpp = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal)
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
.setHardness(5F)
.setResistance(10F);
rpp.carverHelper.addVariation("tile.newmetalOre.0.desc", 0, "metals/rpp/rpp_0", 0);
rpp.carverHelper.addVariation("tile.newmetalOre.1.desc", 1, "metals/rpp/rpp_1", 1);
rpp.carverHelper.addVariation("tile.newetalOre.2.desc", 2, "metals/rpp/rpp_2", 2);
rpp.carverHelper.addVariation("tile.newetalOre.3.desc", 3, "metals/rpp/rpp_3", 3);
rpp.carverHelper.addVariation("tile.newetalOre.4.desc", 4, "metals/rpp/rpp_4", 4);
rpp.carverHelper.addVariation("tile.newetalOre.5.desc", 5, "metals/rpp/rpp_5", 5);
rpp.carverHelper.addVariation("tile.newetalOre.6.desc", 6, "metals/rpp/rpp_6", 6);
rpp.carverHelper.addVariation("tile.newetalOre.7.desc", 7, "metals/rpp/rpp_7", 6);
rpp.carverHelper.registerAll(rpp, "rppblock");
Carving.chisel.registerOre("rppblock", "rppBlock");
}
},
IRIDIUM {
@Override
void addBlocks() {
BlockCarvable iridium = (BlockCarvable) new BlockBeaconBase(Material.iron)
.setStepSound(Block.soundTypeMetal)
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
.setHardness(5F)
.setResistance(10F);
iridium.carverHelper.addVariation("tile.newmetalOre.0.desc", 0, "metals/iridium/iridium_0", 0);
iridium.carverHelper.addVariation("tile.newmetalOre.1.desc", 1, "metals/iridium/iridium_1", 1);
iridium.carverHelper.addVariation("tile.newetalOre.2.desc", 2, "metals/iridium/iridium_2", 2);
iridium.carverHelper.addVariation("tile.newetalOre.3.desc", 3, "metals/iridium/iridium_3", 3);
iridium.carverHelper.addVariation("tile.newetalOre.4.desc", 4, "metals/iridium/iridium_4", 4);
iridium.carverHelper.addVariation("tile.newetalOre.5.desc", 5, "metals/iridium/iridium_5", 5);
iridium.carverHelper.addVariation("tile.newetalOre.6.desc", 6, "metals/iridium/iridium_6", 6);
iridium.carverHelper.addVariation("tile.newetalOre.7.desc", 7, "metals/iridium/iridium_7", 6);
iridium.carverHelper.registerAll(iridium, "iridiumblock");
Carving.chisel.registerOre("iridiumblock", "iridiumBlock");
}
},
OSMIUM {
@Override
void addBlocks() {
BlockCarvable osmium = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal)
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
.setHardness(5F)
.setResistance(10F);
osmium.carverHelper.addVariation("tile.newmetalOre.0.desc", 0, "metals/osmium/osmium_0", 0);
osmium.carverHelper.addVariation("tile.newmetalOre.1.desc", 1, "metals/osmium/osmium_1", 1);
osmium.carverHelper.addVariation("tile.newetalOre.2.desc", 2, "metals/osmium/osmium_2", 2);
osmium.carverHelper.addVariation("tile.newetalOre.3.desc", 3, "metals/osmium/osmium_3", 3);
osmium.carverHelper.addVariation("tile.newetalOre.4.desc", 4, "metals/osmium/osmium_4", 4);
osmium.carverHelper.addVariation("tile.newetalOre.5.desc", 5, "metals/osmium/osmium_5", 5);
osmium.carverHelper.addVariation("tile.newetalOre.6.desc", 6, "metals/osmium/osmium_6", 6);
osmium.carverHelper.addVariation("tile.newetalOre.7.desc", 7, "metals/osmium/osmium_7", 6);
osmium.carverHelper.registerAll(osmium, "osmiumblock");
Carving.chisel.registerOre("osmiumblock", "osmiumBlock");
}
},
COBALT {
@Override
void addBlocks() {
BlockCarvable cobalt = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal)
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
.setHardness(5F)
.setResistance(10F);
cobalt.carverHelper.addVariation("tile.numetalOre.0.desc", 0, "metals/cobalt/badgreggy", 0);
cobalt.carverHelper.addVariation("tile.numetalOre.1.desc", 1, "metals/cobalt/bolted", 1);
cobalt.carverHelper.addVariation("tile.numetalOre.2.desc", 2, "metals/cobalt/caution", 2);
cobalt.carverHelper.addVariation("tile.numetalOre.3.desc", 3, "metals/cobalt/crate", 3);
cobalt.carverHelper.addVariation("tile.numetalOre.4.desc", 4, "metals/cobalt/machine", 4);
cobalt.carverHelper.addVariation("tile.numetalOre.5.desc", 5, "metals/cobalt/scaffold", 5);
cobalt.carverHelper.addVariation("tile.numetalOre.6.desc", 6, "metals/cobalt/thermal-side", 6);
cobalt.carverHelper.registerAll(cobalt, "cobaltblock");
Carving.chisel.registerOre("cobaltblock", "blockCobalt");
}
};
private static final String[] dyeOres = { "dyeBlack", "dyeRed", "dyeGreen", "dyeBrown", "dyeBlue", "dyePurple",
@@ -40,7 +40,7 @@ public class BlockCarvableStairs extends BlockStairs implements ICarvable {
@Override
public int damageDropped(int i) {
return i / 8;
return i & 0x8;
}
@Override
@@ -62,7 +62,7 @@ public class BlockRoadLine extends BlockCarvable {
if (par1World.isRemote) return;
if (!this.canPlaceBlockAt(par1World, par2, par3, par4)) {
this.dropBlockAsItem(par1World, par2, par3, par4, 0, 0);
this.dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
par1World.setBlockToAir(par2, par3, par4);
}
@@ -19,11 +19,7 @@ import team.chisel.ctmlib.Drawing;
@ThreadSafeISBRH(perThread = false)
public class RendererCTMPane implements ISimpleBlockRenderingHandler {
public static int id;
public RendererCTMPane() {
id = RenderingRegistry.getNextAvailableRenderId();
}
public static final int id = RenderingRegistry.getNextAvailableRenderId();
@Override
public void renderInventoryBlock(Block block, int meta, int modelID, RenderBlocks renderer) {
@@ -33,7 +29,7 @@ public class RendererCTMPane implements ISimpleBlockRenderingHandler {
Drawing.drawBlock(block, meta, renderer);
}
class PaneRenderer {
static class PaneRenderer {
double i0u0;
double i0uh;
@@ -27,7 +27,8 @@ public class RendererEldritch implements ISimpleBlockRenderingHandler {
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
}
ThreadLocal<RenderBlocksEldritch> rendererThreadLocal = ThreadLocal.withInitial(RenderBlocksEldritch::new);
private static final ThreadLocal<RenderBlocksEldritch> rendererThreadLocal = ThreadLocal
.withInitial(RenderBlocksEldritch::new);
@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
@@ -59,7 +60,11 @@ public class RendererEldritch implements ISimpleBlockRenderingHandler {
renderer.renderMaxX = 1.0;
renderer.renderMaxY = 1.0;
renderer.renderMaxZ = 1.0;
renderer.renderStandardBlock(block, x, y, z);
try {
renderer.renderStandardBlock(block, x, y, z);
} finally {
renderer.blockAccess = null;
}
return true;
/*
@@ -28,17 +28,11 @@ public class RendererMultiLayer implements ISimpleBlockRenderingHandler {
final static float bot = -0.001f;
final static float top = 1.0f - bot;
public static int id;
public RendererMultiLayer() {
id = RenderingRegistry.getNextAvailableRenderId();
}
public static final int id = RenderingRegistry.getNextAvailableRenderId();
@Override
public void renderInventoryBlock(Block blck, int meta, int modelID, RenderBlocks renderer) {
if (blck == null || !(blck instanceof BlockMultiLayerBase)) return;
BlockMultiLayerBase block = (BlockMultiLayerBase) blck;
if (!(blck instanceof BlockMultiLayerBase block)) return;
if (block.icon != null) {
renderer.overrideBlockTexture = block.icon;
@@ -61,8 +55,7 @@ public class RendererMultiLayer implements ISimpleBlockRenderingHandler {
@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block blck, int modelId,
RenderBlocks renderer) {
if (blck == null || !(blck instanceof BlockMultiLayerBase)) return false;
BlockMultiLayerBase block = (BlockMultiLayerBase) blck;
if (!(blck instanceof BlockMultiLayerBase block)) return false;
if (MinecraftForgeClient.getRenderPass() == 0) {
if (block.icon != null) {
@@ -16,11 +16,7 @@ import team.chisel.ctmlib.Drawing;
@ThreadSafeISBRH(perThread = false)
public class RendererStairs implements ISimpleBlockRenderingHandler {
public static int id;
public RendererStairs() {
id = RenderingRegistry.getNextAvailableRenderId();
}
public static final int id = RenderingRegistry.getNextAvailableRenderId();
@Override
public void renderInventoryBlock(Block block, int meta, int modelID, RenderBlocks renderer) {
@@ -34,8 +30,7 @@ public class RendererStairs implements ISimpleBlockRenderingHandler {
@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block blck, int modelId,
RenderBlocks renderer) {
if (blck == null || !(blck instanceof BlockCarvableStairs)) return false;
BlockCarvableStairs block = (BlockCarvableStairs) blck;
if (!(blck instanceof BlockCarvableStairs block)) return false;
renderer.renderBlockStairs(block, x, y, z);
@@ -10,6 +10,7 @@ import net.minecraftforge.client.IItemRenderer;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.Drawing;
@@ -74,16 +75,10 @@ public class SubmapManagerAntiblock extends SubmapManagerBase {
}
};
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal;
private static final ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal = FMLLaunchHandler.side()
.isClient() ? ThreadLocal.withInitial(RenderBlocksCTMFullbright::new) : null;
private static void initStatics() {
if (renderBlocksThreadLocal == null) {
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTMFullbright::new);
}
}
private String color;
private final String color;
private TextureSubmap submap, submapSmall;
public SubmapManagerAntiblock(String color) {
@@ -105,7 +100,6 @@ public class SubmapManagerAntiblock extends SubmapManagerBase {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
initStatics();
RenderBlocksCTMFullbright rb = renderBlocksThreadLocal.get();
rb.setRenderBoundsFromBlock(block);
rb.submap = submap;
@@ -6,6 +6,7 @@ import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.RenderBlocksCTM;
@@ -13,18 +14,12 @@ import team.chisel.ctmlib.TextureSubmap;
public class SubmapManagerCarpetFloor extends SubmapManagerBase {
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal;
private static void initStatics() {
if (renderBlocksThreadLocal == null) {
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTM::new);
}
}
private static final ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal = FMLLaunchHandler.side()
.isClient() ? ThreadLocal.withInitial(RenderBlocksCTM::new) : null;
private TextureSubmap submap;
private TextureSubmap submapSmall;
private String color;
private final String color;
public SubmapManagerCarpetFloor(String color) {
this.color = color;
@@ -51,7 +46,6 @@ public class SubmapManagerCarpetFloor extends SubmapManagerBase {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
initStatics();
RenderBlocksCTM rb = renderBlocksThreadLocal.get();
rb.setRenderBoundsFromBlock(block);
rb.submap = submap;
@@ -14,6 +14,7 @@ import com.cricketcraft.chisel.api.carving.CarvingUtils;
import com.cricketcraft.chisel.api.rendering.TextureType;
import com.cricketcraft.chisel.api.rendering.TextureType.AbstractSubmapManager;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.RenderBlocksCTM;
@@ -78,9 +79,9 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
}
}
private class Submap extends TextureSubmap {
private static class Submap extends TextureSubmap {
private TextureSubmap[][] submap;
private final TextureSubmap[][] submap;
public Submap(IIcon base, int wh, TextureSubmap[][] submap) {
super(base, wh, wh);
@@ -98,21 +99,15 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
}
}
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksCombinedCTM> renderBlocksThreadLocal;
private static void initStatics() {
if (renderBlocksThreadLocal == null) {
renderBlocksThreadLocal = new ThreadLocal<>();
}
}
private final ThreadLocal<RenderBlocksCombinedCTM> renderBlocksThreadLocal = FMLLaunchHandler.side()
.isClient() ? ThreadLocal.withInitial(RenderBlocksCombinedCTM::new) : null;
private TextureSubmap submap, smallSubmap;
private int size;
private String texturePath;
private int meta;
private final int size;
private final String texturePath;
private final int meta;
private IIcon defaultIcon;
private TextureType rType;
private final TextureType rType;
public SubmapManagerCombinedCTM(int meta, String texturePath, TextureType rType) {
assert rType == TextureType.R16 || rType == TextureType.R9
@@ -124,10 +119,7 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
this.texturePath = texturePath;
this.size = Integer.parseInt(
rType.name()
.substring(
1,
rType.name()
.length())); // >.>
.substring(1)); // >.>
this.rType = rType;
}
@@ -139,12 +131,7 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
initStatics();
RenderBlocksCombinedCTM rb = renderBlocksThreadLocal.get();
if (rb == null) {
rb = new RenderBlocksCombinedCTM();
renderBlocksThreadLocal.set(rb);
}
rb.setRenderBoundsFromBlock(block);
return rb;
}
@@ -7,6 +7,7 @@ import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.common.util.ForgeDirection;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.ISubmapManager;
@@ -15,19 +16,13 @@ import team.chisel.ctmlib.TextureSubmap;
public class SubmapManagerSlab implements ISubmapManager {
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal;
private static void initStatics() {
if (renderBlocksThreadLocal == null) {
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTM::new);
}
}
private static final ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal = FMLLaunchHandler.side()
.isClient() ? ThreadLocal.withInitial(RenderBlocksCTM::new) : null;
private TextureSubmap submap;
private TextureSubmap submapSmall;
private IIcon sideTexture;
private String texture;
private final String texture;
public SubmapManagerSlab(String texture) {
this.texture = texture;
@@ -55,7 +50,6 @@ public class SubmapManagerSlab implements ISubmapManager {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
initStatics();
RenderBlocksCTM rb = renderBlocksThreadLocal.get();
rb.setRenderBoundsFromBlock(block);
rb.submap = submap;
@@ -63,25 +57,11 @@ public class SubmapManagerSlab implements ISubmapManager {
return rb;
}
private boolean hadOverride = false;
@Override
@SideOnly(Side.CLIENT)
public void preRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {}
@Override
@SideOnly(Side.CLIENT)
public void preRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {
RenderBlocksCTM rbctm = (RenderBlocksCTM) renderer;
if (side.ordinal() < 2 && !rbctm.rendererOld.hasOverrideBlockTexture()) {
rbctm.rendererOld.setOverrideBlockTexture(sideTexture);
hadOverride = false;
} else {
hadOverride = true;
}
}
@Override
@SideOnly(Side.CLIENT)
public void postRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {
if (!hadOverride) {
((RenderBlocksCTM) renderer).rendererOld.clearOverrideBlockTexture();
}
}
public void postRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {}
}
@@ -6,6 +6,7 @@ import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.RenderBlocksCTM;
@@ -48,17 +49,11 @@ public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
}
};
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal;
private static final ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal = FMLLaunchHandler.side()
.isClient() ? ThreadLocal.withInitial(RenderBlocksCTMFullbright::new) : null;
private static void initStatics() {
if (renderBlocksThreadLocal == null) {
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTMFullbright::new);
}
}
private String color;
private MaterialType materialType;
private final String color;
private final MaterialType materialType;
private TextureSubmap submap, submapSmall;
public SubmapManagerSpecialMaterial(String color, MaterialType materialType) {
@@ -83,7 +78,6 @@ public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
initStatics();
RenderBlocksCTMFullbright renderBlocksFullbright = renderBlocksThreadLocal.get();
renderBlocksFullbright.setRenderBoundsFromBlock(block);
renderBlocksFullbright.submap = submap;
@@ -11,6 +11,7 @@ import net.minecraftforge.common.util.ForgeDirection;
import com.cricketcraft.chisel.api.carving.CarvingUtils;
import com.cricketcraft.chisel.api.rendering.TextureType;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.ISubmapManager;
@@ -21,91 +22,81 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
// TODO there must be a better more generic way to do this...
@SideOnly(Side.CLIENT)
private class RenderBlocksVoidstone extends RenderBlocksCTM {
private static class RenderBlocksVoidstone extends RenderBlocksCTM {
@Override
public void renderFaceXNeg(Block block, double x, double y, double z, IIcon icon) {
super.renderFaceXNeg(block, x, y, z, icon);
renderMinX += 0.005;
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.WEST.ordinal()));
super.renderFaceXNeg(block, x, y, z, null);
clearOverrideBlockTexture();
super.renderFaceXNeg(block, x, y, z, icon);
}
@Override
public void renderFaceXPos(Block block, double x, double y, double z, IIcon icon) {
super.renderFaceXPos(block, x, y, z, icon);
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.EAST.ordinal()));
renderMaxX -= 0.005;
super.renderFaceXPos(block, x, y, z, null);
clearOverrideBlockTexture();
super.renderFaceXPos(block, x, y, z, icon);
}
@Override
public void renderFaceYNeg(Block block, double x, double y, double z, IIcon icon) {
super.renderFaceYNeg(block, x, y, z, icon);
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.DOWN.ordinal()));
renderMinY += 0.005;
super.renderFaceYNeg(block, x, y, z, null);
clearOverrideBlockTexture();
super.renderFaceYNeg(block, x, y, z, icon);
}
@Override
public void renderFaceYPos(Block block, double x, double y, double z, IIcon icon) {
super.renderFaceYPos(block, x, y, z, icon);
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.UP.ordinal()));
renderMaxY -= 0.005;
super.renderFaceYPos(block, x, y, z, null);
clearOverrideBlockTexture();
super.renderFaceYPos(block, x, y, z, icon);
}
@Override
public void renderFaceZNeg(Block block, double x, double y, double z, IIcon icon) {
super.renderFaceZNeg(block, x, y, z, icon);
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.NORTH.ordinal()));
renderMinZ += 0.005;
super.renderFaceZNeg(block, x, y, z, null);
clearOverrideBlockTexture();
super.renderFaceZNeg(block, x, y, z, icon);
}
@Override
public void renderFaceZPos(Block block, double x, double y, double z, IIcon icon) {
super.renderFaceZPos(block, x, y, z, icon);
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.SOUTH.ordinal()));
renderMaxZ -= 0.005;
super.renderFaceZPos(block, x, y, z, null);
clearOverrideBlockTexture();
super.renderFaceZPos(block, x, y, z, icon);
}
public void reset() {
this.submap = null;
private IIcon getBase(double x, double y, double z, int side) {
return TextureType.getVIcon(
TextureType.V4,
base,
MathHelper.floor_double(x),
MathHelper.floor_double(y),
MathHelper.floor_double(z),
side);
}
}
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksVoidstone> renderBlocksThreadLocal;
private static void initStatics() {
if (renderBlocksThreadLocal == null) {
renderBlocksThreadLocal = new ThreadLocal<>();
}
}
private static final ThreadLocal<RenderBlocksVoidstone> renderBlocksThreadLocal = FMLLaunchHandler.side()
.isClient() ? ThreadLocal.withInitial(RenderBlocksVoidstone::new) : null;
private ISubmapManager overlay;
private TextureSubmap base;
private static TextureSubmap base;
private IIcon getBase(double x, double y, double z, int side) {
return TextureType.getVIcon(
TextureType.V4,
base,
MathHelper.floor_double(x),
MathHelper.floor_double(y),
MathHelper.floor_double(z),
side);
}
private String texture;
private int meta;
private final String texture;
private final int meta;
public SubmapManagerVoidstone(String texture, int meta) {
this.texture = texture;
@@ -133,18 +124,18 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
initStatics();
RenderBlocksVoidstone rb = renderBlocksThreadLocal.get();
if (rb == null) {
rb = new RenderBlocksVoidstone();
renderBlocksThreadLocal.set(rb);
} else rb.reset();
RenderBlocks ctx = overlay.createRenderContext(rendererOld, block, world);
rb.setRenderBoundsFromBlock(block);
if (ctx instanceof RenderBlocksCTM) {
rb.submap = ((RenderBlocksCTM) ctx).submap;
rb.submapSmall = ((RenderBlocksCTM) ctx).submapSmall;
} else {
rb.submap = null;
rb.submapSmall = null;
}
return rb;
}
}
@@ -26,7 +26,7 @@ public class RenderCarvableBeacon extends TileEntityBeaconRenderer implements IS
private static final ResourceLocation texture = new ResourceLocation("textures/entity/beacon_beam.png");
private int renderId;
private final int renderId;
public RenderCarvableBeacon() {
this.renderId = RenderingRegistry.getNextAvailableRenderId();
@@ -2,6 +2,7 @@ package team.chisel.ctmlib;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.multiplayer.WorldClient;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.crash.CrashReport;
import net.minecraft.crash.CrashReportCategory;
@@ -27,29 +28,38 @@ public class CTMRenderer implements ISimpleBlockRenderingHandler {
@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();
final WorldClient world = Minecraft.getMinecraft().theWorld;
final RenderBlocks rb = getContext(renderer, block, world, ((ICTMBlock<?>) block).getManager(metadata));
boolean clean = false;
if (rb.blockAccess == null) {
rb.blockAccess = world;
clean = true;
}
try {
Drawing.drawBlock(block, metadata, rb);
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
rb.unlockBlockBounds();
} finally {
if (clean) rb.blockAccess = null;
}
}
@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
RenderBlocks rendererOld) {
RenderBlocks renderer) {
final int meta = world.getBlockMetadata(x, y, z);
final RenderBlocks rb = getContext(
renderer,
block,
world,
((ICTMBlock<?>) block).getManager(world, x, y, z, meta));
boolean clean = false;
if (rb.blockAccess == null) {
rb.blockAccess = world;
clean = true;
}
try {
int meta = world.getBlockMetadata(x, y, z);
RenderBlocks rb = getContext(
rendererOld,
block,
world,
((ICTMBlock<?>) block).getManager(world, x, y, z, meta),
meta);
rb.renderAllFaces = rendererOld.renderAllFaces;
rb.renderAllFaces = renderer.renderAllFaces;
boolean ret = rb.renderStandardBlock(block, x, y, z);
rb.unlockBlockBounds();
rb.renderAllFaces = false;
@@ -60,15 +70,15 @@ public class CTMRenderer implements ISimpleBlockRenderingHandler {
crashreportcategory.addCrashSection("Block name", GameRegistry.findUniqueIdentifierFor(block));
crashreportcategory.addCrashSection("Block metadata", world.getBlockMetadata(x, y, z));
throw new ReportedException(crashreport);
} finally {
if (clean) rb.blockAccess = null;
}
}
protected RenderBlocks getContext(RenderBlocks rendererOld, Block block, IBlockAccess world, ISubmapManager manager,
int meta) {
private RenderBlocks getContext(RenderBlocks rendererOld, Block block, IBlockAccess world, ISubmapManager manager) {
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,
@@ -78,10 +88,8 @@ public class CTMRenderer implements ISimpleBlockRenderingHandler {
rendererOld.renderMaxY,
rendererOld.renderMaxZ);
}
if (rb instanceof RenderBlocksCTM) {
RenderBlocksCTM rbctm = (RenderBlocksCTM) rb;
if (rb instanceof RenderBlocksCTM rbctm) {
rbctm.manager = rbctm.manager == null ? manager : rbctm.manager;
rbctm.rendererOld = rbctm.rendererOld == null ? rendererOld : rbctm.rendererOld;
}
return rb;
}
@@ -102,16 +102,14 @@ public class RenderBlocksCTM extends RenderBlocks {
XZ_HALF_Y(0.5, 1, 0.5);
// @formatter:on
private double x, y, z;
private final double x, y, z;
private Vert(double x, double y, double z) {
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) {
final Tessellator tessellator = Tessellator.instance;
@@ -120,12 +118,15 @@ public class RenderBlocksCTM extends RenderBlocks {
tessellator.setBrightness(inst.lightingCache[cacheID]);
}
u = cacheID == 1 || cacheID == 2 ? inst.maxU : inst.minU;
v = cacheID < 2 ? inst.maxV : inst.minV;
double u = cacheID == 1 || cacheID == 2 ? inst.maxU : inst.minU;
double v = cacheID < 2 ? inst.maxV : inst.minV;
uDiff = inst.maxU - inst.minU;
vDiff = inst.maxV - inst.minV;
double uDiff = inst.maxU - inst.minU;
double vDiff = inst.maxV - inst.minV;
double xDiff;
double yDiff;
double zDiff;
if (inst.renderMinX + inst.renderMinY + inst.renderMinZ != 0
|| inst.renderMaxX + inst.renderMaxY + inst.renderMaxZ != 3) {
boolean uMin = u == inst.minU;
@@ -178,8 +179,8 @@ public class RenderBlocksCTM extends RenderBlocks {
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;
private final Vert xmin, xmax, ymin, ymax;
private final ForgeDirection normal;
SubSide(Vert xmin, Vert ymin, Vert ymax, Vert xmax) {
this.xmin = xmin;
@@ -234,7 +235,6 @@ public class RenderBlocksCTM extends RenderBlocks {
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];
@@ -257,9 +257,6 @@ public class RenderBlocksCTM extends RenderBlocks {
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;
@@ -361,6 +358,61 @@ public class RenderBlocksCTM extends RenderBlocks {
protected void side(Block block, SubSide side, int iconIndex) {
// If we have an overridden texture when we're supposed to render a CTM texture,
// we'll treat it as a normal block texture but still render it the CTM way: quarter of a texture at a time.
// This way has one benefit: if an overridden texture is a base block texture and a CTM texture (that is being
// rendered next) is an overlay texture above the base, we're avoiding any z-fighting issues because we
// create identical vertices and now only order of rendering dictates which texture will be rendered above
if (hasOverrideBlockTexture()) {
IIcon icon = overrideBlockTexture;
double u0 = icon.getMinU();
double u1 = icon.getMaxU();
double v0 = icon.getMinV();
double v1 = icon.getMaxV();
double uMid = (u0 + u1) / 2;
double vMid = (v0 + v1) / 2;
// Map all LB-style subsides to bottom-left quarter, RB to bottom-right, RT to top-right, LT to top-left
switch (side) {
// bottom-left quarter
case XNEG_LB, XPOS_LB, YNEG_LB, YPOS_LB, ZNEG_LB, ZPOS_LB -> {
minU = u0;
maxU = uMid;
minV = vMid;
maxV = v1;
}
// bottom-right quarter
case XNEG_RB, XPOS_RB, YNEG_RB, YPOS_RB, ZNEG_RB, ZPOS_RB -> {
minU = uMid;
maxU = u1;
minV = vMid;
maxV = v1;
}
// top-right quarter
case XNEG_RT, XPOS_RT, YNEG_RT, YPOS_RT, ZNEG_RT, ZPOS_RT -> {
minU = uMid;
maxU = u1;
minV = v0;
maxV = vMid;
}
// top-left quarter
case XNEG_LT, XPOS_LT, YNEG_LT, YPOS_LT, ZNEG_LT, ZPOS_LT -> {
minU = u0;
maxU = uMid;
minV = v0;
maxV = vMid;
}
}
side.render(this);
return;
}
IIcon icon;
TextureSubmap map;
if (iconIndex >= 16) {
@@ -378,25 +430,10 @@ public class RenderBlocksCTM extends RenderBlocks {
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;
minU = icon.getMinU();
maxU = icon.getMaxU();
minV = icon.getMinV();
maxV = icon.getMaxV();
side.render(this);
}
@@ -404,10 +441,10 @@ public class RenderBlocksCTM extends RenderBlocks {
@Override
public void renderFaceXNeg(Block block, double x, double y, double z, IIcon icon) {
pre(ForgeDirection.WEST);
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
if (!inWorld || submap == null) {
super.renderFaceXNeg(block, 0, 0, 0, icon);
} else {
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 4);
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 4);
fillLightmap(brightnessBottomRight, brightnessTopRight, brightnessTopLeft, brightnessBottomLeft);
fillColormap(colorRedBottomRight, colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, redmap);
@@ -429,10 +466,10 @@ public class RenderBlocksCTM extends RenderBlocks {
@Override
public void renderFaceXPos(Block block, double x, double y, double z, IIcon icon) {
pre(ForgeDirection.EAST);
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
if (!inWorld || submap == null) {
super.renderFaceXPos(block, 0, 0, 0, icon);
} else {
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 5);
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 5);
fillLightmap(brightnessTopLeft, brightnessBottomLeft, brightnessBottomRight, brightnessTopRight);
fillColormap(colorRedTopLeft, colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, redmap);
@@ -454,10 +491,10 @@ public class RenderBlocksCTM extends RenderBlocks {
@Override
public void renderFaceZNeg(Block block, double x, double y, double z, IIcon icon) {
pre(ForgeDirection.NORTH);
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
if (!inWorld || submap == null) {
super.renderFaceZNeg(block, 0, 0, 0, icon);
} else {
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 2);
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 2);
fillLightmap(brightnessBottomRight, brightnessTopRight, brightnessTopLeft, brightnessBottomLeft);
fillColormap(colorRedBottomRight, colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, redmap);
@@ -479,10 +516,10 @@ public class RenderBlocksCTM extends RenderBlocks {
@Override
public void renderFaceZPos(Block block, double x, double y, double z, IIcon icon) {
pre(ForgeDirection.SOUTH);
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
if (!inWorld || submap == null) {
super.renderFaceZPos(block, 0, 0, 0, icon);
} else {
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 3);
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 3);
fillLightmap(brightnessBottomLeft, brightnessBottomRight, brightnessTopRight, brightnessTopLeft);
fillColormap(colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, colorRedTopLeft, redmap);
@@ -504,10 +541,10 @@ public class RenderBlocksCTM extends RenderBlocks {
@Override
public void renderFaceYNeg(Block block, double x, double y, double z, IIcon icon) {
pre(ForgeDirection.DOWN);
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
if (!inWorld || submap == null) {
super.renderFaceYNeg(block, 0, 0, 0, icon);
} else {
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 0);
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 0);
fillLightmap(brightnessBottomLeft, brightnessBottomRight, brightnessTopRight, brightnessTopLeft);
fillColormap(colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, colorRedTopLeft, redmap);
@@ -529,10 +566,10 @@ public class RenderBlocksCTM extends RenderBlocks {
@Override
public void renderFaceYPos(Block block, double x, double y, double z, IIcon icon) {
pre(ForgeDirection.UP);
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
if (!inWorld || submap == null) {
super.renderFaceYPos(block, 0, 0, 0, icon);
} else {
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 1);
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 1);
fillLightmap(brightnessTopRight, brightnessTopLeft, brightnessBottomLeft, brightnessBottomRight);
fillColormap(colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, colorRedBottomRight, redmap);
@@ -16,8 +16,8 @@ public class RenderBlocksColumn extends RenderBlocks {
public IIcon iconTop;
private boolean inWorld;
private IIcon sides[] = new IIcon[6];
private CTM ctm = CTM.getInstance();
private final IIcon[] sides = new IIcon[6];
private final CTM ctm = CTM.getInstance();
public RenderBlocksColumn() {
super();
@@ -177,5 +177,21 @@ public final class ChiselBlocks {
public static final BlockCarvable lantern = null;
public static final BlockCarvable sheetmetal = null;
// June Additions
public static final BlockCarvable moss = null;
public static final BlockCarvableCarpet moss_carpet = null;
public static final BlockCarvable cobalt = null;
public static final BlockCarvable electrum = null;
public static final BlockCarvable invar = null;
public static final BlockCarvable nickel = null;
public static final BlockCarvable platinum = null;
public static final BlockCarvable wrought_iron = null;
public static final BlockCarvable stainless_steel = null;
public static final BlockCarvable titanium = null;
public static final BlockCarvable tungstensteel = null;
public static final BlockCarvable rpp = null;
public static final BlockCarvable iridium = null;
public static final BlockCarvable osmium = null;
private ChiselBlocks() {}
}
@@ -11,14 +11,12 @@ import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
import net.minecraftforge.event.world.BlockEvent;
import net.minecraftforge.event.world.WorldEvent;
import net.minecraftforge.oredict.OreDictionary;
import com.cricketcraft.chisel.api.IChiselItem;
import com.cricketcraft.chisel.api.carving.ICarvingGroup;
import com.cricketcraft.chisel.api.carving.ICarvingVariation;
import com.cricketcraft.chisel.api.carving.IChiselMode;
import com.cricketcraft.chisel.api.rendering.TextureType;
import com.google.common.collect.Queues;
import cpw.mods.fml.common.FMLCommonHandler;
@@ -33,11 +31,10 @@ public final class ChiselController {
protected static class GuiOpen implements Runnable {
private EntityPlayer player;
private ItemStack stack;
private final EntityPlayer player;
private final ItemStack stack;
public GuiOpen(EntityPlayer player, ItemStack stack) {
super();
this.player = player;
this.stack = stack;
}
@@ -55,7 +52,7 @@ public final class ChiselController {
public static final ChiselController INSTANCE = new ChiselController();
Queue<GuiOpen> openQueue = Queues.newArrayDeque();
final Queue<GuiOpen> openQueue = Queues.newArrayDeque();
private ChiselController() {}
@@ -163,11 +160,4 @@ public final class ChiselController {
}
}
@SubscribeEvent
public void onWorldUnload(WorldEvent.Unload event) {
if (event.world.isRemote) {
TextureType.clearStatics();
}
}
}
@@ -51,6 +51,7 @@ public class ItemChisel extends Item implements IChiselItem {
super();
this.type = type;
setMaxStackSize(1);
setMaxDamage(Configurations.allowChiselDamage ? type.maxDamage : 0);
setTextureName(
Chisel.MOD_ID + ":chisel_"
+ type.name()
@@ -69,12 +70,6 @@ public class ItemChisel extends Item implements IChiselItem {
}
}
@Override
public int getMaxDamage(ItemStack stack) {
if (Configurations.allowChiselDamage) return type.maxDamage;
return 0;
}
@Override
public boolean isDamageable() {
return Configurations.allowChiselDamage;
@@ -2665,7 +2665,7 @@ tile.neonite.5.desc=Fresh Green
tile.neonite.6.desc=Jungle Green
tile.neonite.7.desc=Mariner
tile.neonite.8.desc=Congress Blue
tile.neonite.9.desc=Deep Saphire
tile.neonite.9.desc=Deep Sapphire
tile.neonite.10.desc=Deep Cove
tile.neonite.11.desc=Meteorite
tile.neonite.12.desc=Eminence
@@ -2727,5 +2727,51 @@ tile.sheetmetal.7.desc=Paneling (Rusty)
tile.sheetmetal.8.desc=Plating (Rusty)
tile.sheetmetal.9.desc=Treading (Rusty)
#Moss
tile.chisel.moss.name=Moss
tile.moss.0.desc=Lush
tile.moss.1.desc=Pale
tile.moss.2.desc=Dark
tile.moss.3.desc=Dry
tile.moss.4.desc=Golden
tile.moss.5.desc=Infused
tile.moss.6.desc=Mutated
tile.moss.7.desc=Scorched
tile.moss.8.desc=Vivid
tile.moss.9.desc=Peaty
tile.moss.10.desc=Pink Sphagnum
#Metals2
tile.chisel.cobaltblock.name=Block of Cobalt
tile.chisel.invarblock.name=Block of Invar
tile.chisel.electrumblock.name=Block of Electrum
tile.chisel.nickelblock.name=Block of Nickel
tile.chisel.platinumblock.name=Block of Platinum
tile.chisel.wroughtironblock.name=Block of Wrought Iron
tile.chisel.stainlesssteelblock.name=Block of Stainless Steel
tile.chisel.titaniumblock.name=Block of Titanium
tile.chisel.tungstensteelblock.name=Block of Tungstensteel
tile.chisel.rppblock.name=Block of Rhodium-Plated Palladium
tile.chisel.iridiumblock.name=Block of Iridium
tile.chisel.osmiumblock.name=Block of Osmium
tile.numetalOre.0.desc=Egregious
tile.numetalOre.1.desc=Bolted Casing
tile.numetalOre.2.desc=Caution Stripes
tile.numetalOre.3.desc=Shipping Crate
tile.numetalOre.4.desc=Machinery
tile.numetalOre.5.desc=Scaffolding
tile.numetalOre.6.desc=Thermal
tile.newmetalOre.0.desc=Machinery
tile.newmetalOre.1.desc=Egregiously Modern
tile.newetalOre.2.desc=Bolted Casing
tile.newetalOre.3.desc=Caution Stripes
tile.newetalOre.4.desc=Shipping Crate
tile.newetalOre.5.desc=Egregious
tile.newetalOre.6.desc=Scaffolding
tile.newetalOre.7.desc=Thermal
tile.chisel.amber.name=Block of Amber
tile.chisel.bloodBrick.name=Bloodstone Brick
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 869 B

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 834 B

After

Width:  |  Height:  |  Size: 775 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 904 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 566 B

After

Width:  |  Height:  |  Size: 562 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 682 B

After

Width:  |  Height:  |  Size: 680 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 850 B

After

Width:  |  Height:  |  Size: 842 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 KiB

After

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 286 B

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 B

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 286 B

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 B

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 B

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Loaded 100 of 2767 files, more files were not shown because too many files have changed in this diff. Show more