Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb87007dfd | ||
|
|
8318b6a614 | ||
|
|
143a01f6c2 | ||
|
|
9c00a7d61f | ||
|
|
a431e2a65c | ||
|
|
aa803a1e51 | ||
|
|
d08e48b73b | ||
|
|
3d3260cd71 | ||
|
|
ff70c8b2e3 | ||
|
|
c1ac213eab | ||
|
|
54c339e03e | ||
|
|
d34cd0445a | ||
|
|
8655f8b0a8 | ||
|
|
886c8819c0 | ||
|
|
539ddce15f | ||
|
|
f60a89dcce | ||
|
|
3a3c7035fe | ||
|
|
c943d0c35a | ||
|
|
ec610dc876 | ||
|
|
2ae1f8ba93 | ||
|
|
7b9537571e | ||
|
|
b031b59002 | ||
|
|
4073a4c04c | ||
|
|
643d9b72ba | ||
|
|
fa3b49a673 | ||
|
|
165e5db275 | ||
|
|
4fcfaffa63 | ||
|
|
21690ddb09 | ||
|
|
1cb9a96d4f | ||
|
|
12460a6e02 | ||
|
|
20d2fc8c3f | ||
|
|
3f395fef1d | ||
|
|
2593b14c53 | ||
|
|
72341f1633 | ||
|
|
8a7a4a79f0 | ||
|
|
1464929264 |
No files matched your search
@@ -3,9 +3,9 @@ name: Build and test
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master, main ]
|
branches: [ master, main, release/** ]
|
||||||
push:
|
push:
|
||||||
branches: [ master, main ]
|
branches: [ master, main, release/** ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
build-and-test:
|
||||||
|
|||||||
@@ -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,5 +1,6 @@
|
|||||||
Contributing
|
Contributing
|
||||||
============
|
============
|
||||||
|
Before contributing, make sure you're familiar with the [GT:NH Contribution Guidelines](https://github.com/GTNewHorizons/.github/blob/master/CONTRIBUTING.md)
|
||||||
___
|
___
|
||||||
Setting up a Development Environment
|
Setting up a Development Environment
|
||||||
------------------------------------
|
------------------------------------
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
// Add your dependencies here
|
// Add your dependencies here
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.10:dev")
|
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.12:dev")
|
||||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.8.48-GTNH:dev")
|
implementation("com.github.GTNewHorizons:NotEnoughItems:2.8.84-GTNH:dev")
|
||||||
implementation("com.github.GTNewHorizons:ForgeMultipart:1.7.2:dev")
|
implementation("com.github.GTNewHorizons:ForgeMultipart:2.0.0:dev")
|
||||||
|
|
||||||
compileOnly("org.projectlombok:lombok:1.18.24")
|
compileOnly("org.projectlombok:lombok:1.18.24")
|
||||||
annotationProcessor("org.projectlombok:lombok:1.18.24")
|
annotationProcessor("org.projectlombok:lombok:1.18.24")
|
||||||
|
|
||||||
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.9.15:dev") {
|
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.19.22:dev") {
|
||||||
transitive = false
|
transitive = false
|
||||||
}
|
}
|
||||||
devOnlyNonPublishable("com.github.GTNewHorizons:WailaHarvestability:1.3.4-GTNH:dev")
|
devOnlyNonPublishable("com.github.GTNewHorizons:WailaHarvestability:1.3.4-GTNH:dev")
|
||||||
@@ -17,7 +17,7 @@ dependencies {
|
|||||||
transitive = false
|
transitive = false
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOnly("com.github.GTNewHorizons:Angelica:1.0.0-beta68a:api") {
|
compileOnly("com.github.GTNewHorizons:Angelica:2.1.15:api") {
|
||||||
transitive = false
|
transitive = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -39,14 +39,34 @@ remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/co
|
|||||||
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
|
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
|
||||||
developmentEnvironmentUserName = Developer
|
developmentEnvironmentUserName = Developer
|
||||||
|
|
||||||
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
|
# Enables modern Java syntax support. Valid values:
|
||||||
# See https://github.com/bsideup/jabel for details on how this works.
|
# - false: No modern syntax, Java 8 only
|
||||||
enableModernJavaSyntax = true
|
# - 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,
|
# 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.
|
# and should *not* be used in most situations. -1 disables this.
|
||||||
# forceToolchainVersion = -1
|
# 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.
|
# 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.
|
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
|
||||||
enableGenericInjection = false
|
enableGenericInjection = false
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
#This file is generated by updateDaemonJvm
|
#This file is generated by updateDaemonJvm
|
||||||
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/df211d3c3eefdc408b462041881bc575/redirect
|
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/b41931cf1e70bc8e08d7dd19c343ef00/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/df211d3c3eefdc408b462041881bc575/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/b41931cf1e70bc8e08d7dd19c343ef00/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/46949723aaa20c7b64d7ecfed7207034/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/d6690dfd71c4c91e08577437b5b2beb0/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/df211d3c3eefdc408b462041881bc575/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/b41931cf1e70bc8e08d7dd19c343ef00/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/3cd7045fca9a72cd9bc7d14a385e594c/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/552c7bffe0370c66410a51c55985b511/redirect
|
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/8e1d9ee5d0f13e442218f6884a306da1/redirect
|
||||||
toolchainVersion=25
|
toolchainVersion=25
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (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.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.7'
|
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.24'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
package com.cricketcraft.chisel.api;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.world.IBlockAccess;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* To be implemented on an {@link IBlockAccess} that renders blocks which are only part of a block space, so it can
|
||||||
|
* decide connected textures itself instead of reporting the blocks around it.
|
||||||
|
* <p>
|
||||||
|
* Connected textures ask this for every location they check, while rendering in this world. Render bounds smaller than
|
||||||
|
* the block are then a part of the block: they show the matching part of the block's connected texture, instead of the
|
||||||
|
* whole texture squeezed into the bounds.
|
||||||
|
*/
|
||||||
|
public interface IConnectionAccess {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the given location shows the block being rendered, as seen from the block being rendered.
|
||||||
|
*
|
||||||
|
* @param x X coord of the block to check against. NOT the position of the block being rendered.
|
||||||
|
* @param y Y coord of the block to check against.
|
||||||
|
* @param z Z coord of the block to check against.
|
||||||
|
* @param side The side being rendered, NOT the side being connected from.
|
||||||
|
* <p>
|
||||||
|
* This value can be -1 if no side is specified. Please handle this appropriately.
|
||||||
|
* @param fromX X coord of the block being rendered. It is not necessarily adjacent, it can also be diagonal to the
|
||||||
|
* location.
|
||||||
|
* @param fromY Y coord of the block being rendered.
|
||||||
|
* @param fromZ Z coord of the block being rendered.
|
||||||
|
* @param block The block being rendered.
|
||||||
|
* @param meta The metadata of the block being rendered.
|
||||||
|
* @return True if the location shows the given block and metadata.
|
||||||
|
*/
|
||||||
|
boolean matches(int x, int y, int z, int side, int fromX, int fromY, int fromZ, Block block, int meta);
|
||||||
|
}
|
||||||
@@ -36,4 +36,57 @@ public interface IFacade {
|
|||||||
* @return The metadata of your facade block.
|
* @return The metadata of your facade block.
|
||||||
*/
|
*/
|
||||||
int getFacadeMetadata(IBlockAccess world, int x, int y, int z, int side);
|
int getFacadeMetadata(IBlockAccess world, int x, int y, int z, int side);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the block this facade is acting as towards the block that is checking for a connection. Implement this if
|
||||||
|
* the facade can show different blocks to different neighbours.
|
||||||
|
* <p>
|
||||||
|
* Defaults to {@link #getFacade(IBlockAccess, int, int, int, int)}.
|
||||||
|
*
|
||||||
|
* @param world {@link World}
|
||||||
|
* @param x X coord of your block
|
||||||
|
* @param y Y coord of your block
|
||||||
|
* @param z Z coord of your block
|
||||||
|
* @param side The side being rendered, NOT the side being connected from.
|
||||||
|
* <p>
|
||||||
|
* This value can be -1 if no side is specified. Please handle this appropriately.
|
||||||
|
* @param fromX X coord of the block being rendered, which is checking for a connection. NOT the position of
|
||||||
|
* your block. It is not necessarily adjacent, it can also be diagonal to your block.
|
||||||
|
* @param fromY Y coord of the block being rendered.
|
||||||
|
* @param fromZ Z coord of the block being rendered.
|
||||||
|
* @param fromBlock The block being rendered.
|
||||||
|
* @param fromMeta The metadata of the block being rendered.
|
||||||
|
* @return The block inside of your facade block, as seen from the block being rendered.
|
||||||
|
*/
|
||||||
|
default Block getFacade(IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY, int fromZ,
|
||||||
|
Block fromBlock, int fromMeta) {
|
||||||
|
return getFacade(world, x, y, z, side);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the metadata of the block that this facade is acting as towards the block that is checking for a
|
||||||
|
* connection. Implement this together with
|
||||||
|
* {@link #getFacade(IBlockAccess, int, int, int, int, int, int, int, Block, int)}.
|
||||||
|
* <p>
|
||||||
|
* Defaults to {@link #getFacadeMetadata(IBlockAccess, int, int, int, int)}.
|
||||||
|
*
|
||||||
|
* @param world {@link World}
|
||||||
|
* @param x X coord of your block
|
||||||
|
* @param y Y coord of your block
|
||||||
|
* @param z Z coord of your block
|
||||||
|
* @param side The side being rendered, NOT the side being connected from.
|
||||||
|
* <p>
|
||||||
|
* This value can be -1 if no side is specified. Please handle this appropriately.
|
||||||
|
* @param fromX X coord of the block being rendered, which is checking for a connection. NOT the position of
|
||||||
|
* your block. It is not necessarily adjacent, it can also be diagonal to your block.
|
||||||
|
* @param fromY Y coord of the block being rendered.
|
||||||
|
* @param fromZ Z coord of the block being rendered.
|
||||||
|
* @param fromBlock The block being rendered.
|
||||||
|
* @param fromMeta The metadata of the block being rendered.
|
||||||
|
* @return The metadata of your facade block, as seen from the block being rendered.
|
||||||
|
*/
|
||||||
|
default int getFacadeMetadata(IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY, int fromZ,
|
||||||
|
Block fromBlock, int fromMeta) {
|
||||||
|
return getFacadeMetadata(world, x, y, z, side);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -14,10 +14,10 @@ import team.chisel.ctmlib.ISubmapManager;
|
|||||||
|
|
||||||
public class VariationInfoBase implements IVariationInfo {
|
public class VariationInfoBase implements IVariationInfo {
|
||||||
|
|
||||||
private ICarvingVariation variation;
|
private final ICarvingVariation variation;
|
||||||
private String unlocDesc;
|
private final String unlocDesc;
|
||||||
private ISubmapManager manager;
|
private final ISubmapManager manager;
|
||||||
private TextureType type;
|
private final TextureType type;
|
||||||
|
|
||||||
public VariationInfoBase(ICarvingVariation variation, String unlocDesc, ISubmapManager manager) {
|
public VariationInfoBase(ICarvingVariation variation, String unlocDesc, ISubmapManager manager) {
|
||||||
this(variation, unlocDesc, manager, TextureType.CUSTOM);
|
this(variation, unlocDesc, manager, TextureType.CUSTOM);
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ import net.minecraft.block.Block;
|
|||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.renderer.RenderBlocks;
|
import net.minecraft.client.renderer.RenderBlocks;
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||||
|
import net.minecraft.client.resources.FallbackResourceManager;
|
||||||
|
import net.minecraft.client.resources.IResourceManager;
|
||||||
|
import net.minecraft.client.resources.IResourcePack;
|
||||||
|
import net.minecraft.client.resources.SimpleReloadableResourceManager;
|
||||||
import net.minecraft.launchwrapper.Launch;
|
import net.minecraft.launchwrapper.Launch;
|
||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
@@ -19,6 +23,7 @@ import org.apache.commons.lang3.tuple.Triple;
|
|||||||
import com.cricketcraft.chisel.api.carving.CarvableHelper;
|
import com.cricketcraft.chisel.api.carving.CarvableHelper;
|
||||||
import com.cricketcraft.chisel.api.carving.ICarvingVariation;
|
import com.cricketcraft.chisel.api.carving.ICarvingVariation;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.FMLLaunchHandler;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import team.chisel.ctmlib.CTM;
|
import team.chisel.ctmlib.CTM;
|
||||||
@@ -85,15 +90,15 @@ public enum TextureType {
|
|||||||
return data.getRight();
|
return data.getRight();
|
||||||
|
|
||||||
Block block = world.getBlock(x, y, z);
|
Block block = world.getBlock(x, y, z);
|
||||||
boolean topConnected = ctm.isConnected(world, x, y + 1, z, side, block, meta);
|
boolean topConnected = ctm.isConnected(world, x, y + 1, z, side, x, y, z, block, meta);
|
||||||
boolean botConnected = ctm.isConnected(world, x, y - 1, z, side, block, meta);
|
boolean botConnected = ctm.isConnected(world, x, y - 1, z, side, x, y, z, block, meta);
|
||||||
|
|
||||||
TextureSubmap map = data.getLeft();
|
TextureSubmap map = data.getLeft();
|
||||||
if (topConnected && botConnected)
|
if (topConnected && botConnected)
|
||||||
return map.getSubIcon(0, 1);
|
return map.getSubIcon(0, 1);
|
||||||
if (topConnected && !botConnected)
|
if (topConnected)
|
||||||
return map.getSubIcon(1, 1);
|
return map.getSubIcon(1, 1);
|
||||||
if (!topConnected && botConnected)
|
if (botConnected)
|
||||||
return map.getSubIcon(1, 0);
|
return map.getSubIcon(1, 0);
|
||||||
return map.getSubIcon(0, 0);
|
return map.getSubIcon(0, 0);
|
||||||
}
|
}
|
||||||
@@ -101,11 +106,9 @@ public enum TextureType {
|
|||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
protected RenderBlocks createRenderContext(RenderBlocks rendererOld, IBlockAccess world, Object cachedObject) {
|
protected RenderBlocks createRenderContext(RenderBlocks rendererOld, IBlockAccess world, Object cachedObject) {
|
||||||
TextureType.initStatics();
|
|
||||||
RenderBlocksColumn ret = theRenderBlocksColumn.get();
|
RenderBlocksColumn ret = theRenderBlocksColumn.get();
|
||||||
Pair<TextureSubmap, IIcon> data = (Pair<TextureSubmap, IIcon>) cachedObject;
|
Pair<TextureSubmap, IIcon> data = (Pair<TextureSubmap, IIcon>) cachedObject;
|
||||||
|
|
||||||
ret.blockAccess = world;
|
|
||||||
ret.renderMaxX = 1.0;
|
ret.renderMaxX = 1.0;
|
||||||
ret.renderMaxY = 1.0;
|
ret.renderMaxY = 1.0;
|
||||||
ret.renderMaxZ = 1.0;
|
ret.renderMaxZ = 1.0;
|
||||||
@@ -139,11 +142,11 @@ public enum TextureType {
|
|||||||
boolean reverse = side == 3 || side == 4;
|
boolean reverse = side == 3 || side == 4;
|
||||||
|
|
||||||
if (side < 4) {
|
if (side < 4) {
|
||||||
p = ctm.isConnected(world, x - 1, y, z, side, block, meta);
|
p = ctm.isConnected(world, x - 1, y, z, side, x, y, z, block, meta);
|
||||||
n = ctm.isConnected(world, x + 1, y, z, side, block, meta);
|
n = ctm.isConnected(world, x + 1, y, z, side, x, y, z, block, meta);
|
||||||
} else {
|
} else {
|
||||||
p = ctm.isConnected(world, x, y, z - 1, side, block, meta);
|
p = ctm.isConnected(world, x, y, z - 1, side, x, y, z, block, meta);
|
||||||
n = ctm.isConnected(world, x, y, z + 1, side, block, meta);
|
n = ctm.isConnected(world, x, y, z + 1, side, x, y, z, block, meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
TextureSubmap map = data.getLeft();
|
TextureSubmap map = data.getLeft();
|
||||||
@@ -207,15 +210,12 @@ public enum TextureType {
|
|||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
protected RenderBlocks createRenderContext(RenderBlocks rendererOld, IBlockAccess world, Object cachedObject) {
|
protected RenderBlocks createRenderContext(RenderBlocks rendererOld, IBlockAccess world, Object cachedObject) {
|
||||||
TextureType.initStatics();
|
|
||||||
RenderBlocksCTM ret = theRenderBlocksCTM.get();
|
RenderBlocksCTM ret = theRenderBlocksCTM.get();
|
||||||
Triple<?, TextureSubmap, TextureSubmap> data = (Triple<?, TextureSubmap, TextureSubmap>) cachedObject;
|
Triple<?, TextureSubmap, TextureSubmap> data = (Triple<?, TextureSubmap, TextureSubmap>) cachedObject;
|
||||||
ret.blockAccess = world;
|
|
||||||
|
|
||||||
ret.submap = data.getMiddle();
|
ret.submap = data.getMiddle();
|
||||||
ret.submapSmall = data.getRight();
|
ret.submapSmall = data.getRight();
|
||||||
|
|
||||||
ret.rendererOld = rendererOld;
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -332,33 +332,18 @@ public enum TextureType {
|
|||||||
private static final TextureType[] VALUES;
|
private static final TextureType[] VALUES;
|
||||||
private static final CTM ctm = CTM.getInstance();
|
private static final CTM ctm = CTM.getInstance();
|
||||||
private static final Random rand = new Random();
|
private static final Random rand = new Random();
|
||||||
@SideOnly(Side.CLIENT)
|
private static final ThreadLocal<RenderBlocksCTM> theRenderBlocksCTM = FMLLaunchHandler.side().isClient() ? ThreadLocal.withInitial(RenderBlocksCTM::new) : null;
|
||||||
private static ThreadLocal<RenderBlocksCTM> theRenderBlocksCTM;
|
private static final ThreadLocal<RenderBlocksColumn> theRenderBlocksColumn = FMLLaunchHandler.side().isClient() ? ThreadLocal.withInitial(RenderBlocksColumn::new) : null;
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
private static ThreadLocal<RenderBlocksColumn> theRenderBlocksColumn;
|
|
||||||
|
|
||||||
private String[] suffixes;
|
private final String[] suffixes;
|
||||||
static {
|
static {
|
||||||
VALUES = ArrayUtils.subarray(values(), 0, values().length - 1);
|
VALUES = ArrayUtils.subarray(values(), 0, values().length - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private TextureType(String... suffixes) {
|
TextureType(String... suffixes) {
|
||||||
this.suffixes = suffixes.length == 0 ? new 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) {
|
public ISubmapManager createManagerFor(ICarvingVariation variation, String texturePath) {
|
||||||
return new SubmapManagerDefault(this, variation, texturePath);
|
return new SubmapManagerDefault(this, variation, texturePath);
|
||||||
}
|
}
|
||||||
@@ -403,11 +388,25 @@ public enum TextureType {
|
|||||||
return CUSTOM;
|
return CUSTOM;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is ugly, but faster than class.getResource
|
|
||||||
private static boolean exists(String modid, String path, String postfix) {
|
private static boolean exists(String modid, String path, String postfix) {
|
||||||
ResourceLocation rl = new ResourceLocation(modid, "textures/blocks/" + path + postfix + ".png");
|
ResourceLocation rl = new ResourceLocation(modid, "textures/blocks/" + path + postfix + ".png");
|
||||||
|
|
||||||
|
final IResourceManager resMan = Minecraft.getMinecraft().getResourceManager();
|
||||||
|
if (resMan instanceof SimpleReloadableResourceManager simple) {
|
||||||
|
FallbackResourceManager fallback = (FallbackResourceManager)simple.domainResourceManagers.get(rl.getResourceDomain());
|
||||||
|
if (fallback != null) {
|
||||||
|
for (Object obj : fallback.resourcePacks) {
|
||||||
|
if (obj instanceof IResourcePack rp && rp.resourceExists(rl)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fallback
|
||||||
try {
|
try {
|
||||||
Minecraft.getMinecraft().getResourceManager().getAllResources(rl);
|
resMan.getAllResources(rl);
|
||||||
return true;
|
return true;
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public class BlockNameConversion {
|
|||||||
namingConversion.put("blockFft", "fantasyblock");
|
namingConversion.put("blockFft", "fantasyblock");
|
||||||
namingConversion.put("blockCarpetFloor", "carpet");
|
namingConversion.put("blockCarpetFloor", "carpet");
|
||||||
namingConversion.put("blockLaboratory", "laboratoryblock");
|
namingConversion.put("blockLaboratory", "laboratoryblock");
|
||||||
|
namingConversion.put("wroughtironblock", "castironblock");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Item findItem(String oldname) {
|
public static Item findItem(String oldname) {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ import team.chisel.world.GeneratorChisel;
|
|||||||
name = Chisel.MOD_NAME,
|
name = Chisel.MOD_NAME,
|
||||||
version = Chisel.VERSION,
|
version = Chisel.VERSION,
|
||||||
guiFactory = "team.chisel.client.gui.GuiFactory",
|
guiFactory = "team.chisel.client.gui.GuiFactory",
|
||||||
dependencies = "after:EE3;after:ForgeMultipart;after:Thaumcraft;after:appliedenergistics2;after:Railcraft;after:AWWayofTime;after:TwilightForest;after:BiomesOPlenty")
|
dependencies = "after:EE3;after:ForgeMultipart@[2.0.0,);after:Thaumcraft;after:appliedenergistics2;after:Railcraft;after:AWWayofTime;after:TwilightForest;after:BiomesOPlenty")
|
||||||
public class Chisel {
|
public class Chisel {
|
||||||
|
|
||||||
public static final String MOD_ID = "chisel";
|
public static final String MOD_ID = "chisel";
|
||||||
|
|||||||
@@ -0,0 +1,67 @@
|
|||||||
|
package team.chisel.block;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.client.Minecraft;
|
||||||
|
import net.minecraft.client.entity.EntityPlayerSP;
|
||||||
|
import net.minecraft.util.MathHelper;
|
||||||
|
import net.minecraft.util.MovementInput;
|
||||||
|
import net.minecraft.util.MovementInputFromOptions;
|
||||||
|
|
||||||
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||||
|
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
|
||||||
|
import cpw.mods.fml.common.gameevent.TickEvent.PlayerTickEvent;
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
import team.chisel.config.Configurations;
|
||||||
|
|
||||||
|
public class BlockCarvableConcreteSlab extends BlockCarvableSlab {
|
||||||
|
|
||||||
|
public BlockCarvableConcreteSlab(BlockCarvable block) {
|
||||||
|
super(block);
|
||||||
|
top = new BlockCarvableConcreteSlab(this);
|
||||||
|
FMLCommonHandler.instance()
|
||||||
|
.bus()
|
||||||
|
.register(new EventHandler());
|
||||||
|
}
|
||||||
|
|
||||||
|
// Constructor to get concrete top slabs to work
|
||||||
|
public BlockCarvableConcreteSlab(BlockCarvableSlab bottomBlock) {
|
||||||
|
super(bottomBlock);
|
||||||
|
FMLCommonHandler.instance()
|
||||||
|
.bus()
|
||||||
|
.register(new EventHandler());
|
||||||
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
private static MovementInput manualInputCheck;
|
||||||
|
|
||||||
|
public class EventHandler {
|
||||||
|
|
||||||
|
@SubscribeEvent
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void speedupPlayer(PlayerTickEvent event) {
|
||||||
|
if (event.phase == Phase.START && event.side.isClient()
|
||||||
|
&& event.player.onGround
|
||||||
|
&& event.player instanceof EntityPlayerSP) {
|
||||||
|
if (manualInputCheck == null) {
|
||||||
|
manualInputCheck = new MovementInputFromOptions(Minecraft.getMinecraft().gameSettings);
|
||||||
|
}
|
||||||
|
EntityPlayerSP player = (EntityPlayerSP) event.player;
|
||||||
|
Block below = player.worldObj.getBlock(
|
||||||
|
MathHelper.floor_double(player.posX),
|
||||||
|
MathHelper.floor_double(player.posY) - 2,
|
||||||
|
MathHelper.floor_double(player.posZ));
|
||||||
|
|
||||||
|
if (below == BlockCarvableConcreteSlab.this) {
|
||||||
|
manualInputCheck.updatePlayerMoveState();
|
||||||
|
if (manualInputCheck.moveForward != 0 || manualInputCheck.moveStrafe != 0) {
|
||||||
|
player.motionX *= Configurations.concreteVelocityMult + 0.05;
|
||||||
|
player.motionZ *= Configurations.concreteVelocityMult + 0.05;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
package team.chisel.block;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.client.Minecraft;
|
||||||
|
import net.minecraft.client.entity.EntityPlayerSP;
|
||||||
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.MathHelper;
|
||||||
|
import net.minecraft.util.MovementInput;
|
||||||
|
import net.minecraft.util.MovementInputFromOptions;
|
||||||
|
|
||||||
|
import com.cricketcraft.chisel.api.carving.CarvableHelper;
|
||||||
|
|
||||||
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||||
|
import cpw.mods.fml.common.gameevent.TickEvent;
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
import team.chisel.config.Configurations;
|
||||||
|
|
||||||
|
public class BlockCarvableConcreteStairs extends BlockCarvableStairs {
|
||||||
|
|
||||||
|
public BlockCarvableConcreteStairs(Block block, int meta, CarvableHelper helper) {
|
||||||
|
super(block, meta, helper);
|
||||||
|
|
||||||
|
FMLCommonHandler.instance()
|
||||||
|
.bus()
|
||||||
|
.register(new EventHandler());
|
||||||
|
}
|
||||||
|
|
||||||
|
// Override super's getSubBlocks to allow concrete's 11 variants
|
||||||
|
// Stairs are added to the list in pairs, so odd-numbered variant counts create
|
||||||
|
// a block that shouldn't exist. This modification makes the block unreachable by normal
|
||||||
|
// means (NEI, creative menu), but still technically exists in-game
|
||||||
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
|
@Override
|
||||||
|
public void getSubBlocks(Item block, CreativeTabs tabs, List list) {
|
||||||
|
list.add(new ItemStack(block, 1, 0));
|
||||||
|
|
||||||
|
// If odd# of variations && meta for the current block == variation.size - 1, exit
|
||||||
|
// Second check checks if the current block is at the end of the variation list
|
||||||
|
if (carverHelper.infoList.size() % 2 == 1 && this.blockMeta == carverHelper.infoList.size() - 1) return;
|
||||||
|
list.add(new ItemStack(block, 1, 8));
|
||||||
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
private static MovementInput manualInputCheck;
|
||||||
|
|
||||||
|
public class EventHandler {
|
||||||
|
|
||||||
|
@SubscribeEvent
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void speedupPlayer(TickEvent.PlayerTickEvent event) {
|
||||||
|
if (event.phase == TickEvent.Phase.START && event.side.isClient()
|
||||||
|
&& event.player.onGround
|
||||||
|
&& event.player instanceof EntityPlayerSP) {
|
||||||
|
if (manualInputCheck == null) {
|
||||||
|
manualInputCheck = new MovementInputFromOptions(Minecraft.getMinecraft().gameSettings);
|
||||||
|
}
|
||||||
|
EntityPlayerSP player = (EntityPlayerSP) event.player;
|
||||||
|
Block below = player.worldObj.getBlock(
|
||||||
|
MathHelper.floor_double(player.posX),
|
||||||
|
MathHelper.floor_double(player.posY) - 2,
|
||||||
|
MathHelper.floor_double(player.posZ));
|
||||||
|
|
||||||
|
if (below == BlockCarvableConcreteStairs.this) {
|
||||||
|
manualInputCheck.updatePlayerMoveState();
|
||||||
|
if (manualInputCheck.moveForward != 0 || manualInputCheck.moveStrafe != 0) {
|
||||||
|
player.motionX *= Configurations.concreteVelocityMult + 0.05;
|
||||||
|
player.motionZ *= Configurations.concreteVelocityMult + 0.05;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -33,6 +33,11 @@ public class BlockCarvableGlowstone extends BlockCarvable {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDamageValue(World world, int x, int y, int z) {
|
||||||
|
return world.getBlockMetadata(x, y, z);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z, EntityPlayer player) {
|
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z, EntityPlayer player) {
|
||||||
Block glowstone = world.getBlock(x, y, z);
|
Block glowstone = world.getBlock(x, y, z);
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import net.minecraft.block.Block;
|
|||||||
import net.minecraft.block.BlockSand;
|
import net.minecraft.block.BlockSand;
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
|
import net.minecraft.entity.EnumCreatureType;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
@@ -19,6 +20,7 @@ import com.cricketcraft.chisel.api.rendering.ClientUtils;
|
|||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import team.chisel.Chisel;
|
import team.chisel.Chisel;
|
||||||
|
import team.chisel.config.Configurations;
|
||||||
|
|
||||||
public class BlockCarvableSand extends BlockSand implements ICarvable {
|
public class BlockCarvableSand extends BlockSand implements ICarvable {
|
||||||
|
|
||||||
@@ -83,6 +85,11 @@ public class BlockCarvableSand extends BlockSand implements ICarvable {
|
|||||||
return carverHelper.getVariation(meta);
|
return carverHelper.getVariation(meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x, int y, int z) {
|
||||||
|
return Configurations.canMobsSpawnOnTheChiselBlocks;
|
||||||
|
}
|
||||||
|
|
||||||
public static class SoundType extends Block.SoundType {
|
public static class SoundType extends Block.SoundType {
|
||||||
|
|
||||||
public final String soundNameStep;
|
public final String soundNameStep;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import net.minecraft.block.Block;
|
|||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
|
import net.minecraft.entity.EnumCreatureType;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
@@ -14,6 +15,8 @@ import com.cricketcraft.chisel.api.ICarvable;
|
|||||||
import com.cricketcraft.chisel.api.carving.CarvableHelper;
|
import com.cricketcraft.chisel.api.carving.CarvableHelper;
|
||||||
import com.cricketcraft.chisel.api.carving.IVariationInfo;
|
import com.cricketcraft.chisel.api.carving.IVariationInfo;
|
||||||
|
|
||||||
|
import team.chisel.config.Configurations;
|
||||||
|
|
||||||
public class BlockMultiLayer extends BlockMultiLayerBase implements ICarvable {
|
public class BlockMultiLayer extends BlockMultiLayerBase implements ICarvable {
|
||||||
|
|
||||||
public CarvableHelper carverHelper;
|
public CarvableHelper carverHelper;
|
||||||
@@ -62,4 +65,9 @@ public class BlockMultiLayer extends BlockMultiLayerBase implements ICarvable {
|
|||||||
public IVariationInfo getManager(int meta) {
|
public IVariationInfo getManager(int meta) {
|
||||||
return carverHelper.getVariation(meta);
|
return carverHelper.getVariation(meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x, int y, int z) {
|
||||||
|
return Configurations.canMobsSpawnOnTheChiselBlocks;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,6 @@ import net.minecraft.block.Block;
|
|||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
import net.minecraftforge.client.ForgeHooksClient;
|
|
||||||
|
|
||||||
import team.chisel.client.render.RendererMultiLayer;
|
import team.chisel.client.render.RendererMultiLayer;
|
||||||
|
|
||||||
@@ -43,7 +42,6 @@ public abstract class BlockMultiLayerBase extends Block {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canRenderInPass(int pass) {
|
public boolean canRenderInPass(int pass) {
|
||||||
ForgeHooksClient.setRenderPass(pass);
|
|
||||||
return pass == 1 || pass == 0;
|
return pass == 1 || pass == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package team.chisel.block.tileentity;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import net.minecraft.entity.item.EntityItem;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.inventory.ISidedInventory;
|
import net.minecraft.inventory.ISidedInventory;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
@@ -37,6 +36,8 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
|
|||||||
STACK,
|
STACK,
|
||||||
REVERSION;
|
REVERSION;
|
||||||
|
|
||||||
|
public static final Upgrade[] VALUES = values();
|
||||||
|
|
||||||
public String getUnlocalizedName() {
|
public String getUnlocalizedName() {
|
||||||
if (Features.AUTO_CHISEL_UPGRADES.enabled()) {
|
if (Features.AUTO_CHISEL_UPGRADES.enabled()) {
|
||||||
return "item.upgrade_" + this.name()
|
return "item.upgrade_" + this.name()
|
||||||
@@ -62,7 +63,6 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
|
|||||||
|
|
||||||
private int progress = 0;
|
private int progress = 0;
|
||||||
|
|
||||||
private static EntityItem ghostItem;
|
|
||||||
boolean equal = false;
|
boolean equal = false;
|
||||||
private ItemStack[] inventory = new ItemStack[8];
|
private ItemStack[] inventory = new ItemStack[8];
|
||||||
private String name = "autoChisel";
|
private String name = "autoChisel";
|
||||||
@@ -380,7 +380,7 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
|
|||||||
return itemStack.getItem() instanceof IChiselItem;
|
return itemStack.getItem() instanceof IChiselItem;
|
||||||
default:
|
default:
|
||||||
return Features.AUTO_CHISEL_UPGRADES.enabled() && itemStack.getItem() == ChiselItems.upgrade
|
return Features.AUTO_CHISEL_UPGRADES.enabled() && itemStack.getItem() == ChiselItems.upgrade
|
||||||
&& Upgrade.values()[slot - MIN_UPGRADE].ordinal() == itemStack.getItemDamage();
|
&& Upgrade.VALUES[slot - MIN_UPGRADE].ordinal() == itemStack.getItemDamage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -405,27 +405,15 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public EntityItem getItemForRendering(int slot) {
|
public ItemStack getItemForRendering(int slot) {
|
||||||
if (ghostItem == null) {
|
|
||||||
ghostItem = new EntityItem(worldObj);
|
|
||||||
ghostItem.hoverStart = 0.0F;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (slot == BASE && lastBase != null) {
|
if (slot == BASE && lastBase != null) {
|
||||||
ghostItem.setEntityItemStack(lastBase.copy());
|
return lastBase.copy();
|
||||||
return ghostItem;
|
|
||||||
} else if (slot == TARGET) {
|
} else if (slot == TARGET) {
|
||||||
ItemStack target = getTarget();
|
return getTarget();
|
||||||
if (target != null) {
|
|
||||||
ghostItem.setEntityItemStack(target);
|
|
||||||
return ghostItem;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
} else if (inventory[slot] == null) {
|
} else if (inventory[slot] == null) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
ghostItem.setEntityItemStack(inventory[slot].copy());
|
return inventory[slot].copy();
|
||||||
return ghostItem;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -465,7 +453,7 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
|
|||||||
String unloc = name == null ? null : String.format(base, name);
|
String unloc = name == null ? null : String.format(base, name);
|
||||||
return StatCollector.translateToLocal(unloc);
|
return StatCollector.translateToLocal(unloc);
|
||||||
} else {
|
} else {
|
||||||
return Upgrade.values()[slotNumber - MIN_UPGRADE].getLocalizedName();
|
return Upgrade.VALUES[slotNumber - MIN_UPGRADE].getLocalizedName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,11 +19,7 @@ import team.chisel.ctmlib.Drawing;
|
|||||||
@ThreadSafeISBRH(perThread = false)
|
@ThreadSafeISBRH(perThread = false)
|
||||||
public class RendererCTMPane implements ISimpleBlockRenderingHandler {
|
public class RendererCTMPane implements ISimpleBlockRenderingHandler {
|
||||||
|
|
||||||
public static int id;
|
public static final int id = RenderingRegistry.getNextAvailableRenderId();
|
||||||
|
|
||||||
public RendererCTMPane() {
|
|
||||||
id = RenderingRegistry.getNextAvailableRenderId();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderInventoryBlock(Block block, int meta, int modelID, RenderBlocks renderer) {
|
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);
|
Drawing.drawBlock(block, meta, renderer);
|
||||||
}
|
}
|
||||||
|
|
||||||
class PaneRenderer {
|
static class PaneRenderer {
|
||||||
|
|
||||||
double i0u0;
|
double i0u0;
|
||||||
double i0uh;
|
double i0uh;
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ public class RendererEldritch implements ISimpleBlockRenderingHandler {
|
|||||||
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
|
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
|
@Override
|
||||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
|
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.renderMaxX = 1.0;
|
||||||
renderer.renderMaxY = 1.0;
|
renderer.renderMaxY = 1.0;
|
||||||
renderer.renderMaxZ = 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;
|
return true;
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -40,13 +40,28 @@ public class RendererLayeredGlow implements ISimpleBlockRenderingHandler {
|
|||||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
|
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
|
||||||
RenderBlocks renderer) {
|
RenderBlocks renderer) {
|
||||||
final Tessellator tessellator = Tessellator.instance;
|
final Tessellator tessellator = Tessellator.instance;
|
||||||
tessellator.setColorOpaque_I(Configurations.configColors[world.getBlockMetadata(x, y, z)]);
|
final boolean prevEnableAO = renderer.enableAO;
|
||||||
|
final int tint = Configurations.configColors[world.getBlockMetadata(x, y, z)];
|
||||||
|
tessellator.setColorOpaque_I(tint);
|
||||||
tessellator.setBrightness(0xF000F0);
|
tessellator.setBrightness(0xF000F0);
|
||||||
|
setFullbrightColor(renderer, tint);
|
||||||
Drawing.renderAllFaces(renderer, block, x, y, z, ((BlockCarvableGlow) block).getGlowTexture());
|
Drawing.renderAllFaces(renderer, block, x, y, z, ((BlockCarvableGlow) block).getGlowTexture());
|
||||||
|
renderer.enableAO = prevEnableAO;
|
||||||
renderer.renderStandardBlock(block, x, y, z);
|
renderer.renderStandardBlock(block, x, y, z);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void setFullbrightColor(RenderBlocks renderer, int color) {
|
||||||
|
final float r = (color >> 16 & 255) / 255.0F;
|
||||||
|
final float g = (color >> 8 & 255) / 255.0F;
|
||||||
|
final float b = (color & 255) / 255.0F;
|
||||||
|
renderer.enableAO = true;
|
||||||
|
renderer.colorRedTopLeft = renderer.colorRedBottomLeft = renderer.colorRedBottomRight = renderer.colorRedTopRight = r;
|
||||||
|
renderer.colorGreenTopLeft = renderer.colorGreenBottomLeft = renderer.colorGreenBottomRight = renderer.colorGreenTopRight = g;
|
||||||
|
renderer.colorBlueTopLeft = renderer.colorBlueBottomLeft = renderer.colorBlueBottomRight = renderer.colorBlueTopRight = b;
|
||||||
|
renderer.brightnessTopLeft = renderer.brightnessBottomLeft = renderer.brightnessTopRight = renderer.brightnessBottomRight = 0xF000F0;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean shouldRender3DInInventory(int modelId) {
|
public boolean shouldRender3DInInventory(int modelId) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import net.minecraft.block.Block;
|
|||||||
import net.minecraft.client.renderer.RenderBlocks;
|
import net.minecraft.client.renderer.RenderBlocks;
|
||||||
import net.minecraft.init.Blocks;
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
import net.minecraftforge.client.MinecraftForgeClient;
|
import net.minecraftforge.client.ForgeHooksClient;
|
||||||
|
|
||||||
import com.gtnewhorizons.angelica.api.ThreadSafeISBRH;
|
import com.gtnewhorizons.angelica.api.ThreadSafeISBRH;
|
||||||
|
|
||||||
@@ -28,17 +28,11 @@ public class RendererMultiLayer implements ISimpleBlockRenderingHandler {
|
|||||||
|
|
||||||
final static float bot = -0.001f;
|
final static float bot = -0.001f;
|
||||||
final static float top = 1.0f - bot;
|
final static float top = 1.0f - bot;
|
||||||
public static int id;
|
public static final int id = RenderingRegistry.getNextAvailableRenderId();
|
||||||
|
|
||||||
public RendererMultiLayer() {
|
|
||||||
id = RenderingRegistry.getNextAvailableRenderId();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderInventoryBlock(Block blck, int meta, int modelID, RenderBlocks renderer) {
|
public void renderInventoryBlock(Block blck, int meta, int modelID, RenderBlocks renderer) {
|
||||||
if (blck == null || !(blck instanceof BlockMultiLayerBase)) return;
|
if (!(blck instanceof BlockMultiLayerBase block)) return;
|
||||||
|
|
||||||
BlockMultiLayerBase block = (BlockMultiLayerBase) blck;
|
|
||||||
|
|
||||||
if (block.icon != null) {
|
if (block.icon != null) {
|
||||||
renderer.overrideBlockTexture = block.icon;
|
renderer.overrideBlockTexture = block.icon;
|
||||||
@@ -61,10 +55,9 @@ public class RendererMultiLayer implements ISimpleBlockRenderingHandler {
|
|||||||
@Override
|
@Override
|
||||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block blck, int modelId,
|
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block blck, int modelId,
|
||||||
RenderBlocks renderer) {
|
RenderBlocks renderer) {
|
||||||
if (blck == null || !(blck instanceof BlockMultiLayerBase)) return false;
|
if (!(blck instanceof BlockMultiLayerBase block)) return false;
|
||||||
BlockMultiLayerBase block = (BlockMultiLayerBase) blck;
|
|
||||||
|
|
||||||
if (MinecraftForgeClient.getRenderPass() == 0) {
|
if (ForgeHooksClient.getWorldRenderPass() == 0) {
|
||||||
if (block.icon != null) {
|
if (block.icon != null) {
|
||||||
renderer.overrideBlockTexture = block.icon;
|
renderer.overrideBlockTexture = block.icon;
|
||||||
renderer.renderStandardBlock(block, x, y, z);
|
renderer.renderStandardBlock(block, x, y, z);
|
||||||
|
|||||||
@@ -16,11 +16,7 @@ import team.chisel.ctmlib.Drawing;
|
|||||||
@ThreadSafeISBRH(perThread = false)
|
@ThreadSafeISBRH(perThread = false)
|
||||||
public class RendererStairs implements ISimpleBlockRenderingHandler {
|
public class RendererStairs implements ISimpleBlockRenderingHandler {
|
||||||
|
|
||||||
public static int id;
|
public static final int id = RenderingRegistry.getNextAvailableRenderId();
|
||||||
|
|
||||||
public RendererStairs() {
|
|
||||||
id = RenderingRegistry.getNextAvailableRenderId();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderInventoryBlock(Block block, int meta, int modelID, RenderBlocks renderer) {
|
public void renderInventoryBlock(Block block, int meta, int modelID, RenderBlocks renderer) {
|
||||||
@@ -34,8 +30,7 @@ public class RendererStairs implements ISimpleBlockRenderingHandler {
|
|||||||
@Override
|
@Override
|
||||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block blck, int modelId,
|
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block blck, int modelId,
|
||||||
RenderBlocks renderer) {
|
RenderBlocks renderer) {
|
||||||
if (blck == null || !(blck instanceof BlockCarvableStairs)) return false;
|
if (!(blck instanceof BlockCarvableStairs block)) return false;
|
||||||
BlockCarvableStairs block = (BlockCarvableStairs) blck;
|
|
||||||
|
|
||||||
renderer.renderBlockStairs(block, x, y, z);
|
renderer.renderBlockStairs(block, x, y, z);
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import net.minecraftforge.client.IItemRenderer;
|
|||||||
|
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.FMLLaunchHandler;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import team.chisel.ctmlib.Drawing;
|
import team.chisel.ctmlib.Drawing;
|
||||||
@@ -74,16 +75,10 @@ public class SubmapManagerAntiblock extends SubmapManagerBase {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
private static final ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal = FMLLaunchHandler.side()
|
||||||
private static ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal;
|
.isClient() ? ThreadLocal.withInitial(RenderBlocksCTMFullbright::new) : null;
|
||||||
|
|
||||||
private static void initStatics() {
|
private final String color;
|
||||||
if (renderBlocksThreadLocal == null) {
|
|
||||||
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTMFullbright::new);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private String color;
|
|
||||||
private TextureSubmap submap, submapSmall;
|
private TextureSubmap submap, submapSmall;
|
||||||
|
|
||||||
public SubmapManagerAntiblock(String color) {
|
public SubmapManagerAntiblock(String color) {
|
||||||
@@ -105,7 +100,6 @@ public class SubmapManagerAntiblock extends SubmapManagerBase {
|
|||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||||
initStatics();
|
|
||||||
RenderBlocksCTMFullbright rb = renderBlocksThreadLocal.get();
|
RenderBlocksCTMFullbright rb = renderBlocksThreadLocal.get();
|
||||||
rb.setRenderBoundsFromBlock(block);
|
rb.setRenderBoundsFromBlock(block);
|
||||||
rb.submap = submap;
|
rb.submap = submap;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import net.minecraft.client.renderer.texture.IIconRegister;
|
|||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.FMLLaunchHandler;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import team.chisel.ctmlib.RenderBlocksCTM;
|
import team.chisel.ctmlib.RenderBlocksCTM;
|
||||||
@@ -13,18 +14,12 @@ import team.chisel.ctmlib.TextureSubmap;
|
|||||||
|
|
||||||
public class SubmapManagerCarpetFloor extends SubmapManagerBase {
|
public class SubmapManagerCarpetFloor extends SubmapManagerBase {
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
private static final ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal = FMLLaunchHandler.side()
|
||||||
private static ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal;
|
.isClient() ? ThreadLocal.withInitial(RenderBlocksCTM::new) : null;
|
||||||
|
|
||||||
private static void initStatics() {
|
|
||||||
if (renderBlocksThreadLocal == null) {
|
|
||||||
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTM::new);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private TextureSubmap submap;
|
private TextureSubmap submap;
|
||||||
private TextureSubmap submapSmall;
|
private TextureSubmap submapSmall;
|
||||||
private String color;
|
private final String color;
|
||||||
|
|
||||||
public SubmapManagerCarpetFloor(String color) {
|
public SubmapManagerCarpetFloor(String color) {
|
||||||
this.color = color;
|
this.color = color;
|
||||||
@@ -51,7 +46,6 @@ public class SubmapManagerCarpetFloor extends SubmapManagerBase {
|
|||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||||
initStatics();
|
|
||||||
RenderBlocksCTM rb = renderBlocksThreadLocal.get();
|
RenderBlocksCTM rb = renderBlocksThreadLocal.get();
|
||||||
rb.setRenderBoundsFromBlock(block);
|
rb.setRenderBoundsFromBlock(block);
|
||||||
rb.submap = submap;
|
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;
|
||||||
import com.cricketcraft.chisel.api.rendering.TextureType.AbstractSubmapManager;
|
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.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import team.chisel.ctmlib.RenderBlocksCTM;
|
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) {
|
public Submap(IIcon base, int wh, TextureSubmap[][] submap) {
|
||||||
super(base, wh, wh);
|
super(base, wh, wh);
|
||||||
@@ -98,21 +99,15 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
private final ThreadLocal<RenderBlocksCombinedCTM> renderBlocksThreadLocal = FMLLaunchHandler.side()
|
||||||
private static ThreadLocal<RenderBlocksCombinedCTM> renderBlocksThreadLocal;
|
.isClient() ? ThreadLocal.withInitial(RenderBlocksCombinedCTM::new) : null;
|
||||||
|
|
||||||
private static void initStatics() {
|
|
||||||
if (renderBlocksThreadLocal == null) {
|
|
||||||
renderBlocksThreadLocal = new ThreadLocal<>();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private TextureSubmap submap, smallSubmap;
|
private TextureSubmap submap, smallSubmap;
|
||||||
private int size;
|
private final int size;
|
||||||
private String texturePath;
|
private final String texturePath;
|
||||||
private int meta;
|
private final int meta;
|
||||||
private IIcon defaultIcon;
|
private IIcon defaultIcon;
|
||||||
private TextureType rType;
|
private final TextureType rType;
|
||||||
|
|
||||||
public SubmapManagerCombinedCTM(int meta, String texturePath, TextureType rType) {
|
public SubmapManagerCombinedCTM(int meta, String texturePath, TextureType rType) {
|
||||||
assert rType == TextureType.R16 || rType == TextureType.R9
|
assert rType == TextureType.R16 || rType == TextureType.R9
|
||||||
@@ -124,10 +119,7 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
|
|||||||
this.texturePath = texturePath;
|
this.texturePath = texturePath;
|
||||||
this.size = Integer.parseInt(
|
this.size = Integer.parseInt(
|
||||||
rType.name()
|
rType.name()
|
||||||
.substring(
|
.substring(1)); // >.>
|
||||||
1,
|
|
||||||
rType.name()
|
|
||||||
.length())); // >.>
|
|
||||||
this.rType = rType;
|
this.rType = rType;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -139,12 +131,7 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
|
|||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||||
initStatics();
|
|
||||||
RenderBlocksCombinedCTM rb = renderBlocksThreadLocal.get();
|
RenderBlocksCombinedCTM rb = renderBlocksThreadLocal.get();
|
||||||
if (rb == null) {
|
|
||||||
rb = new RenderBlocksCombinedCTM();
|
|
||||||
renderBlocksThreadLocal.set(rb);
|
|
||||||
}
|
|
||||||
rb.setRenderBoundsFromBlock(block);
|
rb.setRenderBoundsFromBlock(block);
|
||||||
return rb;
|
return rb;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import net.minecraft.util.IIcon;
|
|||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.FMLLaunchHandler;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import team.chisel.ctmlib.ISubmapManager;
|
import team.chisel.ctmlib.ISubmapManager;
|
||||||
@@ -15,19 +16,13 @@ import team.chisel.ctmlib.TextureSubmap;
|
|||||||
|
|
||||||
public class SubmapManagerSlab implements ISubmapManager {
|
public class SubmapManagerSlab implements ISubmapManager {
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
private static final ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal = FMLLaunchHandler.side()
|
||||||
private static ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal;
|
.isClient() ? ThreadLocal.withInitial(RenderBlocksCTM::new) : null;
|
||||||
|
|
||||||
private static void initStatics() {
|
|
||||||
if (renderBlocksThreadLocal == null) {
|
|
||||||
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTM::new);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private TextureSubmap submap;
|
private TextureSubmap submap;
|
||||||
private TextureSubmap submapSmall;
|
private TextureSubmap submapSmall;
|
||||||
private IIcon sideTexture;
|
private IIcon sideTexture;
|
||||||
private String texture;
|
private final String texture;
|
||||||
|
|
||||||
public SubmapManagerSlab(String texture) {
|
public SubmapManagerSlab(String texture) {
|
||||||
this.texture = texture;
|
this.texture = texture;
|
||||||
@@ -55,7 +50,6 @@ public class SubmapManagerSlab implements ISubmapManager {
|
|||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||||
initStatics();
|
|
||||||
RenderBlocksCTM rb = renderBlocksThreadLocal.get();
|
RenderBlocksCTM rb = renderBlocksThreadLocal.get();
|
||||||
rb.setRenderBoundsFromBlock(block);
|
rb.setRenderBoundsFromBlock(block);
|
||||||
rb.submap = submap;
|
rb.submap = submap;
|
||||||
@@ -63,25 +57,11 @@ public class SubmapManagerSlab implements ISubmapManager {
|
|||||||
return rb;
|
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
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void preRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {
|
public void postRenderSide(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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -6,6 +6,7 @@ import net.minecraft.client.renderer.texture.IIconRegister;
|
|||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.FMLLaunchHandler;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import team.chisel.ctmlib.RenderBlocksCTM;
|
import team.chisel.ctmlib.RenderBlocksCTM;
|
||||||
@@ -48,17 +49,11 @@ public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
private static final ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal = FMLLaunchHandler.side()
|
||||||
private static ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal;
|
.isClient() ? ThreadLocal.withInitial(RenderBlocksCTMFullbright::new) : null;
|
||||||
|
|
||||||
private static void initStatics() {
|
private final String color;
|
||||||
if (renderBlocksThreadLocal == null) {
|
private final MaterialType materialType;
|
||||||
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTMFullbright::new);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private String color;
|
|
||||||
private MaterialType materialType;
|
|
||||||
private TextureSubmap submap, submapSmall;
|
private TextureSubmap submap, submapSmall;
|
||||||
|
|
||||||
public SubmapManagerSpecialMaterial(String color, MaterialType materialType) {
|
public SubmapManagerSpecialMaterial(String color, MaterialType materialType) {
|
||||||
@@ -83,7 +78,6 @@ public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
|
|||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||||
initStatics();
|
|
||||||
RenderBlocksCTMFullbright renderBlocksFullbright = renderBlocksThreadLocal.get();
|
RenderBlocksCTMFullbright renderBlocksFullbright = renderBlocksThreadLocal.get();
|
||||||
renderBlocksFullbright.setRenderBoundsFromBlock(block);
|
renderBlocksFullbright.setRenderBoundsFromBlock(block);
|
||||||
renderBlocksFullbright.submap = submap;
|
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.carving.CarvingUtils;
|
||||||
import com.cricketcraft.chisel.api.rendering.TextureType;
|
import com.cricketcraft.chisel.api.rendering.TextureType;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.FMLLaunchHandler;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import team.chisel.ctmlib.ISubmapManager;
|
import team.chisel.ctmlib.ISubmapManager;
|
||||||
@@ -88,8 +89,8 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
private static final ThreadLocal<RenderBlocksVoidstone> renderBlocksThreadLocal = FMLLaunchHandler.side()
|
||||||
private static ThreadLocal<RenderBlocksVoidstone> renderBlocksThreadLocal;
|
.isClient() ? ThreadLocal.withInitial(RenderBlocksVoidstone::new) : null;
|
||||||
|
|
||||||
private ISubmapManager overlay;
|
private ISubmapManager overlay;
|
||||||
private static TextureSubmap base;
|
private static TextureSubmap base;
|
||||||
@@ -123,10 +124,6 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
|
|||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||||
if (renderBlocksThreadLocal == null) {
|
|
||||||
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksVoidstone::new);
|
|
||||||
}
|
|
||||||
|
|
||||||
RenderBlocksVoidstone rb = renderBlocksThreadLocal.get();
|
RenderBlocksVoidstone rb = renderBlocksThreadLocal.get();
|
||||||
RenderBlocks ctx = overlay.createRenderContext(rendererOld, block, world);
|
RenderBlocks ctx = overlay.createRenderContext(rendererOld, block, world);
|
||||||
rb.setRenderBoundsFromBlock(block);
|
rb.setRenderBoundsFromBlock(block);
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ import net.minecraft.client.renderer.entity.RenderManager;
|
|||||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||||
import net.minecraft.client.settings.GameSettings;
|
import net.minecraft.client.settings.GameSettings;
|
||||||
import net.minecraft.entity.item.EntityItem;
|
import net.minecraft.entity.item.EntityItem;
|
||||||
|
import net.minecraft.init.Items;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
@@ -160,66 +161,83 @@ public class RenderAutoChisel extends TileEntitySpecialRenderer implements ISimp
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final Random rand = new Random();
|
private static final Random rand = new Random();
|
||||||
|
private final EntityItem entityItem = new EntityItem(null, 0, 0, 0, new ItemStack(Items.apple));
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float scale) {
|
public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float scale) {
|
||||||
|
|
||||||
// Render Blocks
|
// Render Blocks
|
||||||
TileEntityAutoChisel autoChisel = (TileEntityAutoChisel) tile;
|
try {
|
||||||
EntityItem item = autoChisel.getItemForRendering(TileEntityAutoChisel.TARGET);
|
this.entityItem.setWorld(tile.getWorldObj());
|
||||||
|
TileEntityAutoChisel autoChisel = (TileEntityAutoChisel) tile;
|
||||||
|
EntityItem item = this.getItemForRendering(autoChisel, TileEntityAutoChisel.TARGET);
|
||||||
|
|
||||||
rand.setSeed(tile.xCoord + tile.yCoord + tile.zCoord);
|
rand.setSeed(tile.xCoord + tile.yCoord + tile.zCoord);
|
||||||
rand.nextBoolean();
|
rand.nextBoolean();
|
||||||
|
|
||||||
float max = 0.35f;
|
float max = 0.35f;
|
||||||
|
|
||||||
if (!Minecraft.getMinecraft()
|
if (!Minecraft.getMinecraft()
|
||||||
.isGamePaused()) {
|
.isGamePaused()) {
|
||||||
autoChisel.xRot += (rand.nextFloat() * max) - (max / 2);
|
autoChisel.xRot += (rand.nextFloat() * max) - (max / 2);
|
||||||
autoChisel.yRot += (rand.nextFloat() * max) - (max / 2);
|
autoChisel.yRot += (rand.nextFloat() * max) - (max / 2);
|
||||||
autoChisel.zRot += (rand.nextFloat() * max) - (max / 2);
|
autoChisel.zRot += (rand.nextFloat() * max) - (max / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glPushAttrib(GL_ALL_ATTRIB_BITS);
|
glPushAttrib(GL_ALL_ATTRIB_BITS);
|
||||||
glTranslated(x + 0.5, y + 1.5, z + 0.5);
|
glTranslated(x + 0.5, y + 1.5, z + 0.5);
|
||||||
glRotatef(autoChisel.xRot, 1, 0, 0);
|
glRotatef(autoChisel.xRot, 1, 0, 0);
|
||||||
glRotatef(autoChisel.yRot, 0, 1, 0);
|
glRotatef(autoChisel.yRot, 0, 1, 0);
|
||||||
glRotatef(autoChisel.zRot, 0, 0, 1);
|
glRotatef(autoChisel.zRot, 0, 0, 1);
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
glDepthMask(false);
|
glDepthMask(false);
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA);
|
||||||
renderItem.doRender(item, 0, 0, 0, 0, 0);
|
renderItem.doRender(item, 0, 0, 0, 0, 0);
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
glPopAttrib();
|
glPopAttrib();
|
||||||
}
|
}
|
||||||
|
|
||||||
item = autoChisel.getItemForRendering(TileEntityAutoChisel.BASE);
|
item = this.getItemForRendering(autoChisel, TileEntityAutoChisel.BASE);
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glTranslated(x + 0.35, y + 0.934, z + 0.5);
|
glTranslated(x + 0.35, y + 0.934, z + 0.5);
|
||||||
item.getEntityItem().stackSize = autoChisel.getLastBase() == null ? 1 : autoChisel.getLastBase().stackSize;
|
item.getEntityItem().stackSize = autoChisel.getLastBase() == null ? 1
|
||||||
renderItem.doRender(item, 0, 0, 0, 0, 0);
|
: autoChisel.getLastBase().stackSize;
|
||||||
glPopMatrix();
|
renderItem.doRender(item, 0, 0, 0, 0, 0);
|
||||||
}
|
glPopMatrix();
|
||||||
|
}
|
||||||
|
|
||||||
GameSettings settings = Minecraft.getMinecraft().gameSettings;
|
GameSettings settings = Minecraft.getMinecraft().gameSettings;
|
||||||
item = autoChisel.getItemForRendering(TileEntityAutoChisel.CHISEL);
|
item = this.getItemForRendering(autoChisel, TileEntityAutoChisel.CHISEL);
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glTranslated(x + 0.7, y + 1.01, z + 0.5);
|
glTranslated(x + 0.7, y + 1.01, z + 0.5);
|
||||||
float rot = autoChisel.chiselRot == 0 ? 0
|
float rot = autoChisel.chiselRot == 0 ? 0
|
||||||
: autoChisel.chiseling ? autoChisel.chiselRot + (TileEntityAutoChisel.rotAmnt * scale)
|
: autoChisel.chiseling ? autoChisel.chiselRot + (TileEntityAutoChisel.rotAmnt * scale)
|
||||||
: autoChisel.chiselRot - (TileEntityAutoChisel.rotAmnt * scale);
|
: autoChisel.chiselRot - (TileEntityAutoChisel.rotAmnt * scale);
|
||||||
glRotatef(rot, 0, 0, 1);
|
glRotatef(rot, 0, 0, 1);
|
||||||
glTranslated(-0.12, 0, 0);
|
glTranslated(-0.12, 0, 0);
|
||||||
glScalef(0.9f, 0.9f, 0.9f);
|
glScalef(0.9f, 0.9f, 0.9f);
|
||||||
boolean was = settings.fancyGraphics;
|
boolean was = settings.fancyGraphics;
|
||||||
settings.fancyGraphics = true;
|
settings.fancyGraphics = true;
|
||||||
renderItem.doRender(item, 0, 0, 0, 0, 0);
|
renderItem.doRender(item, 0, 0, 0, 0, 0);
|
||||||
settings.fancyGraphics = was;
|
settings.fancyGraphics = was;
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
this.entityItem.setWorld(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private EntityItem getItemForRendering(TileEntityAutoChisel autoChisel, int slot) {
|
||||||
|
final ItemStack stack = autoChisel.getItemForRendering(slot);
|
||||||
|
if (stack != null) {
|
||||||
|
this.entityItem.setEntityItemStack(stack);
|
||||||
|
return this.entityItem;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@ public class RenderCarvableBeacon extends TileEntityBeaconRenderer implements IS
|
|||||||
|
|
||||||
private static final ResourceLocation texture = new ResourceLocation("textures/entity/beacon_beam.png");
|
private static final ResourceLocation texture = new ResourceLocation("textures/entity/beacon_beam.png");
|
||||||
|
|
||||||
private int renderId;
|
private final int renderId;
|
||||||
|
|
||||||
public RenderCarvableBeacon() {
|
public RenderCarvableBeacon() {
|
||||||
this.renderId = RenderingRegistry.getNextAvailableRenderId();
|
this.renderId = RenderingRegistry.getNextAvailableRenderId();
|
||||||
|
|||||||
@@ -1,25 +1,27 @@
|
|||||||
package team.chisel.compat.fmp;
|
package team.chisel.compat.fmp;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
import com.cricketcraft.chisel.api.carving.IVariationInfo;
|
import com.cricketcraft.chisel.api.carving.IVariationInfo;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
|
||||||
|
import codechicken.lib.data.MCDataInput;
|
||||||
import codechicken.lib.vec.BlockCoord;
|
import codechicken.lib.vec.BlockCoord;
|
||||||
import codechicken.microblock.MicroMaterialRegistry;
|
import codechicken.microblock.MicroMaterialRegistry;
|
||||||
import codechicken.multipart.MultiPartRegistry;
|
import codechicken.multipart.MultiPartRegistry;
|
||||||
import codechicken.multipart.MultiPartRegistry.IPartConverter;
|
import codechicken.multipart.MultiPartRegistry.IPartConverter;
|
||||||
import codechicken.multipart.MultiPartRegistry.IPartFactory;
|
import codechicken.multipart.MultiPartRegistry.IPartFactory2;
|
||||||
import codechicken.multipart.TMultiPart;
|
import codechicken.multipart.TMultiPart;
|
||||||
import team.chisel.client.render.FullBrightMicroMaterial;
|
import team.chisel.client.render.FullBrightMicroMaterial;
|
||||||
import team.chisel.init.ChiselBlocks;
|
import team.chisel.init.ChiselBlocks;
|
||||||
|
|
||||||
public class FMPCompat implements IPartFactory, IPartConverter {
|
public class FMPCompat implements IPartFactory2, IPartConverter {
|
||||||
|
|
||||||
public void init() {
|
public void init() {
|
||||||
MultiPartRegistry.registerConverter(this);
|
MultiPartRegistry.registerConverter(this);
|
||||||
MultiPartRegistry.registerParts(this, new String[] { "chisel_torch" });
|
MultiPartRegistry.registerPartFactory(this, "chisel_torch");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -39,7 +41,21 @@ public class FMPCompat implements IPartFactory, IPartConverter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TMultiPart createPart(String type, boolean client) {
|
public TMultiPart createPart(String type, NBTTagCompound nbt) {
|
||||||
|
return newPart(type);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TMultiPart createPart(String type, MCDataInput packet) {
|
||||||
|
return newPart(type);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TMultiPart createPartForClientPreview(String type, NBTTagCompound nbt) {
|
||||||
|
return newPart(type);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static TMultiPart newPart(String type) {
|
||||||
if (type.equals("chisel_torch")) {
|
if (type.equals("chisel_torch")) {
|
||||||
return new PartChiselTorch();
|
return new PartChiselTorch();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ public class NEIChiselConfig implements IConfigureNEI {
|
|||||||
API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "limestone_slab_top")));
|
API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "limestone_slab_top")));
|
||||||
API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "marble_slab_top")));
|
API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "marble_slab_top")));
|
||||||
API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "marble_pillar_slab_top")));
|
API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "marble_pillar_slab_top")));
|
||||||
|
API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "concrete_slab_top")));
|
||||||
|
|
||||||
RecipeHandlerChisel handler = new RecipeHandlerChisel();
|
RecipeHandlerChisel handler = new RecipeHandlerChisel();
|
||||||
API.registerRecipeHandler(handler);
|
API.registerRecipeHandler(handler);
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import java.util.List;
|
|||||||
|
|
||||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.StatCollector;
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
|
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
@@ -76,7 +77,7 @@ public class RecipeHandlerChisel extends TemplateRecipeHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getRecipeName() {
|
public String getRecipeName() {
|
||||||
return "Chisel";
|
return StatCollector.translateToLocal("chisel.nei.title");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ public class Configurations {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* features */
|
/* features */
|
||||||
for (Features feature : Features.values()) {
|
for (Features feature : Features.VALUES) {
|
||||||
features.put(
|
features.put(
|
||||||
featureName(feature),
|
featureName(feature),
|
||||||
config.get("features", featureName(feature), true)
|
config.get("features", featureName(feature), true)
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import net.minecraft.world.IBlockAccess;
|
|||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
import com.cricketcraft.chisel.api.IConnectable;
|
import com.cricketcraft.chisel.api.IConnectable;
|
||||||
|
import com.cricketcraft.chisel.api.IConnectionAccess;
|
||||||
import com.cricketcraft.chisel.api.IFacade;
|
import com.cricketcraft.chisel.api.IFacade;
|
||||||
import com.google.common.base.Optional;
|
import com.google.common.base.Optional;
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
@@ -191,24 +192,30 @@ public class CTM {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A simple check for if the given block can connect to the given direction on the given side.
|
* A check for if the block being rendered can connect to the given location on the given side. Passes the block
|
||||||
|
* being rendered on to {@link IFacade} blocks, so they can decide per neighbour.
|
||||||
*
|
*
|
||||||
* @param world
|
* @param world
|
||||||
* @param x The x coordinate of the block to check <i>against</i>. This is not the position of your block.
|
* @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 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 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 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 fromX The x coordinate of your block, the block being rendered.
|
||||||
* @param meta The metadata to check against for connection.
|
* @param fromY The y coordinate of your block, the block being rendered.
|
||||||
|
* @param fromZ The z coordinate of your block, the block being rendered.
|
||||||
|
* @param block The block being rendered.
|
||||||
|
* @param meta The metadata of the block being rendered.
|
||||||
* @return True if the given block can connect to the given location on the given side.
|
* @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) {
|
public boolean isConnected(IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY, int fromZ,
|
||||||
|
Block block, int meta) {
|
||||||
ForgeDirection dir = ForgeDirection.VALID_DIRECTIONS[side];
|
ForgeDirection dir = ForgeDirection.VALID_DIRECTIONS[side];
|
||||||
return isConnected(world, x, y, z, dir, block, meta);
|
return isConnected(world, x, y, z, dir, fromX, fromY, fromZ, block, meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A simple check for if the given block can connect to the given direction on the given side.
|
* A check for if the block being rendered can connect to the given location on the given side. Passes the block
|
||||||
|
* being rendered on to {@link IFacade} blocks, so they can decide per neighbour.
|
||||||
*
|
*
|
||||||
* @param world
|
* @param world
|
||||||
* @param x The x coordinate of the block to check <i>against</i>. This is not the position of your block.
|
* @param x The x coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||||
@@ -216,41 +223,72 @@ public class CTM {
|
|||||||
* @param z The z 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
|
* @param dir The {@link ForgeDirection side} of the block to check for connection status. This is <i>not</i> the
|
||||||
* direction to check in.
|
* direction to check in.
|
||||||
* @param block The block to check against for connection.
|
* @param fromX The x coordinate of your block, the block being rendered.
|
||||||
* @param meta The metadata to check against for connection.
|
* @param fromY The y coordinate of your block, the block being rendered.
|
||||||
|
* @param fromZ The z coordinate of your block, the block being rendered.
|
||||||
|
* @param block The block being rendered.
|
||||||
|
* @param meta The metadata of the block being rendered.
|
||||||
* @return True if the given block can connect to the given location on the given side.
|
* @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) {
|
public boolean isConnected(IBlockAccess world, int x, int y, int z, ForgeDirection dir, int fromX, int fromY,
|
||||||
|
int fromZ, Block block, int meta) {
|
||||||
if (CTMLib.chiselLoaded() && connectionBlocked(world, x, y, z, dir.ordinal())) {
|
if (CTMLib.chiselLoaded() && connectionBlocked(world, x, y, z, dir.ordinal())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!matches(world, x, y, z, dir.ordinal(), fromX, fromY, fromZ, block, meta)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (disableObscuredFaceCheck.or(disableObscuredFaceCheckConfig)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// check that we aren't already connected outwards from this side
|
||||||
int x2 = x + dir.offsetX;
|
int x2 = x + dir.offsetX;
|
||||||
int y2 = y + dir.offsetY;
|
int y2 = y + dir.offsetY;
|
||||||
int z2 = z + dir.offsetZ;
|
int z2 = z + dir.offsetZ;
|
||||||
|
return !matches(world, x2, y2, z2, dir.ordinal(), fromX, fromY, fromZ, block, meta);
|
||||||
|
}
|
||||||
|
|
||||||
boolean disableObscured = disableObscuredFaceCheck.or(disableObscuredFaceCheckConfig);
|
/**
|
||||||
|
* Whether the given location shows the block being rendered, as seen from the block being rendered. Asks the world
|
||||||
|
* if it is an {@link IConnectionAccess}, otherwise compares the block or {@link IFacade} at that location.
|
||||||
|
*
|
||||||
|
* @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 being rendered. -1 for unknown.
|
||||||
|
* @param fromX The x coordinate of your block, the block being rendered.
|
||||||
|
* @param fromY The y coordinate of your block, the block being rendered.
|
||||||
|
* @param fromZ The z coordinate of your block, the block being rendered.
|
||||||
|
* @param block The block being rendered.
|
||||||
|
* @param meta The metadata of the block being rendered.
|
||||||
|
* @return True if the given location shows the given block and metadata.
|
||||||
|
*/
|
||||||
|
public boolean matches(IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY, int fromZ,
|
||||||
|
Block block, int meta) {
|
||||||
|
if (CTMLib.chiselLoaded()) {
|
||||||
|
return matchesAccess(world, x, y, z, side, fromX, fromY, fromZ, block, meta);
|
||||||
|
}
|
||||||
|
return block.equals(world.getBlock(x, y, z)) && world.getBlockMetadata(x, y, z) == meta;
|
||||||
|
}
|
||||||
|
|
||||||
Block con = getBlockOrFacade(world, x, y, z, dir.ordinal());
|
private boolean matchesAccess(IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY, int fromZ,
|
||||||
Block obscuring = disableObscured ? null : getBlockOrFacade(world, x2, y2, z2, dir.ordinal());
|
Block block, int meta) {
|
||||||
|
if (world instanceof IConnectionAccess) {
|
||||||
|
return ((IConnectionAccess) world).matches(x, y, z, side, fromX, fromY, fromZ, block, meta);
|
||||||
|
}
|
||||||
|
Block blk = world.getBlock(x, y, z);
|
||||||
|
Block con = getFacade(blk, world, x, y, z, side, fromX, fromY, fromZ, block, meta);
|
||||||
|
|
||||||
// no block or a bad API user
|
// no block or a bad API user
|
||||||
if (con == null) {
|
if (con == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean ret = con.equals(block) && getBlockOrFacadeMetadata(world, x, y, z, dir.ordinal()) == meta;
|
return con.equals(block) && getFacadeMeta(blk, world, x, y, z, side, fromX, fromY, fromZ, block, meta) == 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) {
|
private boolean connectionBlocked(IBlockAccess world, int x, int y, int z, int side) {
|
||||||
@@ -310,4 +348,20 @@ public class CTM {
|
|||||||
}
|
}
|
||||||
return blk;
|
return blk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private int getFacadeMeta(Block blk, IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY,
|
||||||
|
int fromZ, Block fromBlock, int fromMeta) {
|
||||||
|
if (blk instanceof IFacade) {
|
||||||
|
return ((IFacade) blk).getFacadeMetadata(world, x, y, z, side, fromX, fromY, fromZ, fromBlock, fromMeta);
|
||||||
|
}
|
||||||
|
return world.getBlockMetadata(x, y, z);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Block getFacade(Block blk, IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY,
|
||||||
|
int fromZ, Block fromBlock, int fromMeta) {
|
||||||
|
if (blk instanceof IFacade) {
|
||||||
|
blk = ((IFacade) blk).getFacade(world, x, y, z, side, fromX, fromY, fromZ, fromBlock, fromMeta);
|
||||||
|
}
|
||||||
|
return blk;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -2,6 +2,7 @@ package team.chisel.ctmlib;
|
|||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
|
import net.minecraft.client.multiplayer.WorldClient;
|
||||||
import net.minecraft.client.renderer.RenderBlocks;
|
import net.minecraft.client.renderer.RenderBlocks;
|
||||||
import net.minecraft.crash.CrashReport;
|
import net.minecraft.crash.CrashReport;
|
||||||
import net.minecraft.crash.CrashReportCategory;
|
import net.minecraft.crash.CrashReportCategory;
|
||||||
@@ -27,29 +28,38 @@ public class CTMRenderer implements ISimpleBlockRenderingHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
|
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
|
||||||
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
|
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
|
||||||
RenderBlocks rb = getContext(
|
final WorldClient world = Minecraft.getMinecraft().theWorld;
|
||||||
renderer,
|
final RenderBlocks rb = getContext(renderer, block, world, ((ICTMBlock<?>) block).getManager(metadata));
|
||||||
block,
|
boolean clean = false;
|
||||||
Minecraft.getMinecraft().theWorld,
|
if (rb.blockAccess == null) {
|
||||||
((ICTMBlock<?>) block).getManager(metadata),
|
rb.blockAccess = world;
|
||||||
metadata);
|
clean = true;
|
||||||
Drawing.drawBlock(block, metadata, rb);
|
}
|
||||||
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
|
try {
|
||||||
rb.unlockBlockBounds();
|
Drawing.drawBlock(block, metadata, rb);
|
||||||
|
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
|
||||||
|
rb.unlockBlockBounds();
|
||||||
|
} finally {
|
||||||
|
if (clean) rb.blockAccess = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
|
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 {
|
try {
|
||||||
int meta = world.getBlockMetadata(x, y, z);
|
rb.renderAllFaces = renderer.renderAllFaces;
|
||||||
RenderBlocks rb = getContext(
|
|
||||||
rendererOld,
|
|
||||||
block,
|
|
||||||
world,
|
|
||||||
((ICTMBlock<?>) block).getManager(world, x, y, z, meta),
|
|
||||||
meta);
|
|
||||||
rb.renderAllFaces = rendererOld.renderAllFaces;
|
|
||||||
boolean ret = rb.renderStandardBlock(block, x, y, z);
|
boolean ret = rb.renderStandardBlock(block, x, y, z);
|
||||||
rb.unlockBlockBounds();
|
rb.unlockBlockBounds();
|
||||||
rb.renderAllFaces = false;
|
rb.renderAllFaces = false;
|
||||||
@@ -60,15 +70,15 @@ public class CTMRenderer implements ISimpleBlockRenderingHandler {
|
|||||||
crashreportcategory.addCrashSection("Block name", GameRegistry.findUniqueIdentifierFor(block));
|
crashreportcategory.addCrashSection("Block name", GameRegistry.findUniqueIdentifierFor(block));
|
||||||
crashreportcategory.addCrashSection("Block metadata", world.getBlockMetadata(x, y, z));
|
crashreportcategory.addCrashSection("Block metadata", world.getBlockMetadata(x, y, z));
|
||||||
throw new ReportedException(crashreport);
|
throw new ReportedException(crashreport);
|
||||||
|
} finally {
|
||||||
|
if (clean) rb.blockAccess = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected RenderBlocks getContext(RenderBlocks rendererOld, Block block, IBlockAccess world, ISubmapManager manager,
|
private RenderBlocks getContext(RenderBlocks rendererOld, Block block, IBlockAccess world, ISubmapManager manager) {
|
||||||
int meta) {
|
|
||||||
if (!rendererOld.hasOverrideBlockTexture() && manager != null) {
|
if (!rendererOld.hasOverrideBlockTexture() && manager != null) {
|
||||||
RenderBlocks rb = manager.createRenderContext(rendererOld, block, world);
|
RenderBlocks rb = manager.createRenderContext(rendererOld, block, world);
|
||||||
if (rb != null && rb != rendererOld) {
|
if (rb != null && rb != rendererOld) {
|
||||||
rb.blockAccess = world;
|
|
||||||
if (rendererOld.lockBlockBounds) {
|
if (rendererOld.lockBlockBounds) {
|
||||||
rb.overrideBlockBounds(
|
rb.overrideBlockBounds(
|
||||||
rendererOld.renderMinX,
|
rendererOld.renderMinX,
|
||||||
@@ -78,10 +88,8 @@ public class CTMRenderer implements ISimpleBlockRenderingHandler {
|
|||||||
rendererOld.renderMaxY,
|
rendererOld.renderMaxY,
|
||||||
rendererOld.renderMaxZ);
|
rendererOld.renderMaxZ);
|
||||||
}
|
}
|
||||||
if (rb instanceof RenderBlocksCTM) {
|
if (rb instanceof RenderBlocksCTM rbctm) {
|
||||||
RenderBlocksCTM rbctm = (RenderBlocksCTM) rb;
|
|
||||||
rbctm.manager = rbctm.manager == null ? manager : rbctm.manager;
|
rbctm.manager = rbctm.manager == null ? manager : rbctm.manager;
|
||||||
rbctm.rendererOld = rbctm.rendererOld == null ? rendererOld : rbctm.rendererOld;
|
|
||||||
}
|
}
|
||||||
return rb;
|
return rb;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,12 +61,15 @@ public enum Dir {
|
|||||||
public boolean isConnected(CTM inst, IBlockAccess world, int x, int y, int z, int sideIdx, Block block, int meta) {
|
public boolean isConnected(CTM inst, IBlockAccess world, int x, int y, int z, int sideIdx, Block block, int meta) {
|
||||||
ForgeDirection side = getOrientation(sideIdx);
|
ForgeDirection side = getOrientation(sideIdx);
|
||||||
ForgeDirection[] dirs = getNormalizedDirs(side);
|
ForgeDirection[] dirs = getNormalizedDirs(side);
|
||||||
|
int fromX = x;
|
||||||
|
int fromY = y;
|
||||||
|
int fromZ = z;
|
||||||
for (ForgeDirection dir : dirs) {
|
for (ForgeDirection dir : dirs) {
|
||||||
x += dir.offsetX;
|
x += dir.offsetX;
|
||||||
y += dir.offsetY;
|
y += dir.offsetY;
|
||||||
z += dir.offsetZ;
|
z += dir.offsetZ;
|
||||||
}
|
}
|
||||||
return inst.isConnected(world, x, y, z, side, block, meta);
|
return inst.isConnected(world, x, y, z, side, fromX, fromY, fromZ, block, meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
private ForgeDirection[] getNormalizedDirs(ForgeDirection normal) {
|
private ForgeDirection[] getNormalizedDirs(ForgeDirection normal) {
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ import net.minecraft.client.renderer.Tessellator;
|
|||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
|
import com.cricketcraft.chisel.api.IConnectionAccess;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
public class RenderBlocksCTM extends RenderBlocks {
|
public class RenderBlocksCTM extends RenderBlocks {
|
||||||
@@ -102,30 +104,56 @@ public class RenderBlocksCTM extends RenderBlocks {
|
|||||||
XZ_HALF_Y(0.5, 1, 0.5);
|
XZ_HALF_Y(0.5, 1, 0.5);
|
||||||
// @formatter:on
|
// @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.x = x;
|
||||||
this.y = y;
|
this.y = y;
|
||||||
this.z = z;
|
this.z = z;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static double u, v, xDiff, yDiff, zDiff, uDiff, vDiff;
|
double get(int axis) {
|
||||||
|
return axis == 0 ? x : axis == 1 ? y : z;
|
||||||
|
}
|
||||||
|
|
||||||
void render(RenderBlocksCTM inst, ForgeDirection normal, int cacheID) {
|
void render(RenderBlocksCTM inst, SubSide side, int cacheID) {
|
||||||
final Tessellator tessellator = Tessellator.instance;
|
final Tessellator tessellator = Tessellator.instance;
|
||||||
|
final ForgeDirection normal = side.normal;
|
||||||
|
|
||||||
if (inst.enableAO) {
|
if (inst.enableAO) {
|
||||||
tessellator.setColorOpaque_F(inst.redCache[cacheID], inst.grnCache[cacheID], inst.bluCache[cacheID]);
|
tessellator.setColorOpaque_F(inst.redCache[cacheID], inst.grnCache[cacheID], inst.bluCache[cacheID]);
|
||||||
tessellator.setBrightness(inst.lightingCache[cacheID]);
|
tessellator.setBrightness(inst.lightingCache[cacheID]);
|
||||||
}
|
}
|
||||||
|
|
||||||
u = cacheID == 1 || cacheID == 2 ? inst.maxU : inst.minU;
|
double u = cacheID == 1 || cacheID == 2 ? inst.maxU : inst.minU;
|
||||||
v = cacheID < 2 ? inst.maxV : inst.minV;
|
double v = cacheID < 2 ? inst.maxV : inst.minV;
|
||||||
|
|
||||||
uDiff = inst.maxU - inst.minU;
|
if (inst.renderPart) {
|
||||||
vDiff = inst.maxV - inst.minV;
|
// only the part inside the bounds, showing the texture where it lies in the block
|
||||||
|
double px = Math.min(Math.max(x, inst.renderMinX), inst.renderMaxX);
|
||||||
|
double py = Math.min(Math.max(y, inst.renderMinY), inst.renderMaxY);
|
||||||
|
double pz = Math.min(Math.max(z, inst.renderMinZ), inst.renderMaxZ);
|
||||||
|
double uMoved = Math.abs(normal.offsetX != 0 ? pz - z : px - x);
|
||||||
|
double vMoved = Math.abs(normal.offsetY != 0 ? pz - z : py - y);
|
||||||
|
// a sub-side is half a block wide
|
||||||
|
u += (u == inst.minU ? 2 : -2) * (inst.maxU - inst.minU) * uMoved;
|
||||||
|
v += (v == inst.minV ? 2 : -2) * (inst.maxV - inst.minV) * vMoved;
|
||||||
|
if (inst.enableAO) {
|
||||||
|
// the caches hold the light at the sub-side's corners, the vertex moved, so take the light there
|
||||||
|
double lightX = inst.boundsFraction(side.lightAxisX, px, py, pz);
|
||||||
|
double lightY = inst.boundsFraction(side.lightAxisY, px, py, pz);
|
||||||
|
inst.mixLight(side.lightRisingX ? lightX : 1 - lightX, side.lightRisingY ? lightY : 1 - lightY);
|
||||||
|
}
|
||||||
|
tessellator.addVertexWithUV(px, py, pz, u, v);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
if (inst.renderMinX + inst.renderMinY + inst.renderMinZ != 0
|
||||||
|| inst.renderMaxX + inst.renderMaxY + inst.renderMaxZ != 3) {
|
|| inst.renderMaxX + inst.renderMaxY + inst.renderMaxZ != 3) {
|
||||||
boolean uMin = u == inst.minU;
|
boolean uMin = u == inst.minU;
|
||||||
@@ -178,8 +206,11 @@ 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),
|
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);
|
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
|
// @formatter:on
|
||||||
private Vert xmin, xmax, ymin, ymax;
|
private final Vert xmin, xmax, ymin, ymax;
|
||||||
private ForgeDirection normal;
|
private final ForgeDirection normal;
|
||||||
|
/** The block axes the light maps' x and y run along, and whether they run towards 1. */
|
||||||
|
private final int lightAxisX, lightAxisY;
|
||||||
|
private final boolean lightRisingX, lightRisingY;
|
||||||
|
|
||||||
SubSide(Vert xmin, Vert ymin, Vert ymax, Vert xmax) {
|
SubSide(Vert xmin, Vert ymin, Vert ymax, Vert xmax) {
|
||||||
this.xmin = xmin;
|
this.xmin = xmin;
|
||||||
@@ -187,6 +218,15 @@ public class RenderBlocksCTM extends RenderBlocks {
|
|||||||
this.ymax = ymax;
|
this.ymax = ymax;
|
||||||
this.xmax = xmax;
|
this.xmax = xmax;
|
||||||
this.normal = calcNormal();
|
this.normal = calcNormal();
|
||||||
|
// the caches step along the light maps' x from xmin to ymin, and along their y from xmin to xmax
|
||||||
|
this.lightAxisX = axis(xmin, ymin);
|
||||||
|
this.lightAxisY = axis(xmin, xmax);
|
||||||
|
this.lightRisingX = ymin.get(lightAxisX) > xmin.get(lightAxisX);
|
||||||
|
this.lightRisingY = xmax.get(lightAxisY) > xmin.get(lightAxisY);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static int axis(Vert from, Vert to) {
|
||||||
|
return from.x != to.x ? 0 : from.y != to.y ? 1 : 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ForgeDirection calcNormal() {
|
private ForgeDirection calcNormal() {
|
||||||
@@ -204,10 +244,10 @@ public class RenderBlocksCTM extends RenderBlocks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void render(RenderBlocksCTM inst) {
|
void render(RenderBlocksCTM inst) {
|
||||||
xmin.render(inst, normal, 0);
|
xmin.render(inst, this, 0);
|
||||||
ymin.render(inst, normal, 1);
|
ymin.render(inst, this, 1);
|
||||||
ymax.render(inst, normal, 2);
|
ymax.render(inst, this, 2);
|
||||||
xmax.render(inst, normal, 3);
|
xmax.render(inst, this, 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -234,7 +274,6 @@ public class RenderBlocksCTM extends RenderBlocks {
|
|||||||
protected float[] bluCache = new float[4];
|
protected float[] bluCache = new float[4];
|
||||||
public TextureSubmap submap;
|
public TextureSubmap submap;
|
||||||
public TextureSubmap submapSmall;
|
public TextureSubmap submapSmall;
|
||||||
public RenderBlocks rendererOld;
|
|
||||||
public ISubmapManager manager;
|
public ISubmapManager manager;
|
||||||
|
|
||||||
protected int[][] lightmap = new int[3][3];
|
protected int[][] lightmap = new int[3][3];
|
||||||
@@ -247,6 +286,12 @@ public class RenderBlocksCTM extends RenderBlocks {
|
|||||||
@Getter
|
@Getter
|
||||||
protected boolean inWorld = false;
|
protected boolean inWorld = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the render bounds are a part of the block, which shows its part of the block's texture instead of the
|
||||||
|
* whole texture squeezed in. Set when rendering in an {@link IConnectionAccess}.
|
||||||
|
*/
|
||||||
|
protected boolean renderPart = false;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean renderStandardBlock(Block block, int x, int y, int z) {
|
public boolean renderStandardBlock(Block block, int x, int y, int z) {
|
||||||
bx = x;
|
bx = x;
|
||||||
@@ -257,11 +302,10 @@ public class RenderBlocksCTM extends RenderBlocks {
|
|||||||
|
|
||||||
tessellator.setColorOpaque_F(1.0F, 1.0F, 1.0F);
|
tessellator.setColorOpaque_F(1.0F, 1.0F, 1.0F);
|
||||||
tessellator.addTranslation(x, y, z);
|
tessellator.addTranslation(x, y, z);
|
||||||
if (rendererOld != null && rendererOld.hasOverrideBlockTexture()) {
|
|
||||||
setOverrideBlockTexture(rendererOld.overrideBlockTexture);
|
|
||||||
}
|
|
||||||
inWorld = true;
|
inWorld = true;
|
||||||
|
renderPart = CTMLib.chiselLoaded() && blockAccess instanceof IConnectionAccess;
|
||||||
boolean res = super.renderStandardBlock(block, x, y, z);
|
boolean res = super.renderStandardBlock(block, x, y, z);
|
||||||
|
renderPart = false;
|
||||||
inWorld = false;
|
inWorld = false;
|
||||||
tessellator.addTranslation(-x, -y, -z);
|
tessellator.addTranslation(-x, -y, -z);
|
||||||
|
|
||||||
@@ -359,6 +403,39 @@ public class RenderBlocksCTM extends RenderBlocks {
|
|||||||
| ((sunlightBitChannel / lightVals.length) & 0xF00000);
|
| ((sunlightBitChannel / lightVals.length) & 0xF00000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return where the point lies between the render bounds along the axis, from 0 at their min to 1 at their max
|
||||||
|
*/
|
||||||
|
protected double boundsFraction(int axis, double x, double y, double z) {
|
||||||
|
double min = axis == 0 ? renderMinX : axis == 1 ? renderMinY : renderMinZ;
|
||||||
|
double max = axis == 0 ? renderMaxX : axis == 1 ? renderMaxY : renderMaxZ;
|
||||||
|
double pos = axis == 0 ? x : axis == 1 ? y : z;
|
||||||
|
return max > min ? (pos - min) / (max - min) : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the color and brightness at a point of the face, mixed from the corners of the light maps, which are the
|
||||||
|
* corners of the render bounds. The point is given in the maps' x and y, from 0 to 1.
|
||||||
|
*/
|
||||||
|
protected void mixLight(double x, double y) {
|
||||||
|
double w00 = (1 - x) * (1 - y);
|
||||||
|
double w20 = x * (1 - y);
|
||||||
|
double w22 = x * y;
|
||||||
|
double w02 = (1 - x) * y;
|
||||||
|
final Tessellator tessellator = Tessellator.instance;
|
||||||
|
tessellator.setColorOpaque_F(
|
||||||
|
mixColor(redmap, w00, w20, w22, w02),
|
||||||
|
mixColor(grnmap, w00, w20, w22, w02),
|
||||||
|
mixColor(blumap, w00, w20, w22, w02));
|
||||||
|
// vanilla mixes the corners of partial bounds the same way
|
||||||
|
tessellator.setBrightness(
|
||||||
|
mixAoBrightness(lightmap[0][0], lightmap[2][0], lightmap[2][2], lightmap[0][2], w00, w20, w22, w02));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static float mixColor(float[][] map, double w00, double w20, double w22, double w02) {
|
||||||
|
return (float) (map[0][0] * w00 + map[2][0] * w20 + map[2][2] * w22 + map[0][2] * w02);
|
||||||
|
}
|
||||||
|
|
||||||
protected void side(Block block, SubSide side, int iconIndex) {
|
protected void side(Block block, SubSide side, int iconIndex) {
|
||||||
|
|
||||||
// If we have an overridden texture when we're supposed to render a CTM texture,
|
// If we have an overridden texture when we're supposed to render a CTM texture,
|
||||||
@@ -447,7 +524,7 @@ public class RenderBlocksCTM extends RenderBlocks {
|
|||||||
if (!inWorld || submap == null) {
|
if (!inWorld || submap == null) {
|
||||||
super.renderFaceXNeg(block, 0, 0, 0, icon);
|
super.renderFaceXNeg(block, 0, 0, 0, icon);
|
||||||
} else {
|
} else {
|
||||||
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 4);
|
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 4);
|
||||||
|
|
||||||
fillLightmap(brightnessBottomRight, brightnessTopRight, brightnessTopLeft, brightnessBottomLeft);
|
fillLightmap(brightnessBottomRight, brightnessTopRight, brightnessTopLeft, brightnessBottomLeft);
|
||||||
fillColormap(colorRedBottomRight, colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, redmap);
|
fillColormap(colorRedBottomRight, colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, redmap);
|
||||||
@@ -472,7 +549,7 @@ public class RenderBlocksCTM extends RenderBlocks {
|
|||||||
if (!inWorld || submap == null) {
|
if (!inWorld || submap == null) {
|
||||||
super.renderFaceXPos(block, 0, 0, 0, icon);
|
super.renderFaceXPos(block, 0, 0, 0, icon);
|
||||||
} else {
|
} else {
|
||||||
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 5);
|
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 5);
|
||||||
|
|
||||||
fillLightmap(brightnessTopLeft, brightnessBottomLeft, brightnessBottomRight, brightnessTopRight);
|
fillLightmap(brightnessTopLeft, brightnessBottomLeft, brightnessBottomRight, brightnessTopRight);
|
||||||
fillColormap(colorRedTopLeft, colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, redmap);
|
fillColormap(colorRedTopLeft, colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, redmap);
|
||||||
@@ -497,7 +574,7 @@ public class RenderBlocksCTM extends RenderBlocks {
|
|||||||
if (!inWorld || submap == null) {
|
if (!inWorld || submap == null) {
|
||||||
super.renderFaceZNeg(block, 0, 0, 0, icon);
|
super.renderFaceZNeg(block, 0, 0, 0, icon);
|
||||||
} else {
|
} else {
|
||||||
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 2);
|
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 2);
|
||||||
|
|
||||||
fillLightmap(brightnessBottomRight, brightnessTopRight, brightnessTopLeft, brightnessBottomLeft);
|
fillLightmap(brightnessBottomRight, brightnessTopRight, brightnessTopLeft, brightnessBottomLeft);
|
||||||
fillColormap(colorRedBottomRight, colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, redmap);
|
fillColormap(colorRedBottomRight, colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, redmap);
|
||||||
@@ -522,7 +599,7 @@ public class RenderBlocksCTM extends RenderBlocks {
|
|||||||
if (!inWorld || submap == null) {
|
if (!inWorld || submap == null) {
|
||||||
super.renderFaceZPos(block, 0, 0, 0, icon);
|
super.renderFaceZPos(block, 0, 0, 0, icon);
|
||||||
} else {
|
} else {
|
||||||
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 3);
|
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 3);
|
||||||
|
|
||||||
fillLightmap(brightnessBottomLeft, brightnessBottomRight, brightnessTopRight, brightnessTopLeft);
|
fillLightmap(brightnessBottomLeft, brightnessBottomRight, brightnessTopRight, brightnessTopLeft);
|
||||||
fillColormap(colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, colorRedTopLeft, redmap);
|
fillColormap(colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, colorRedTopLeft, redmap);
|
||||||
@@ -547,7 +624,7 @@ public class RenderBlocksCTM extends RenderBlocks {
|
|||||||
if (!inWorld || submap == null) {
|
if (!inWorld || submap == null) {
|
||||||
super.renderFaceYNeg(block, 0, 0, 0, icon);
|
super.renderFaceYNeg(block, 0, 0, 0, icon);
|
||||||
} else {
|
} else {
|
||||||
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 0);
|
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 0);
|
||||||
|
|
||||||
fillLightmap(brightnessBottomLeft, brightnessBottomRight, brightnessTopRight, brightnessTopLeft);
|
fillLightmap(brightnessBottomLeft, brightnessBottomRight, brightnessTopRight, brightnessTopLeft);
|
||||||
fillColormap(colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, colorRedTopLeft, redmap);
|
fillColormap(colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, colorRedTopLeft, redmap);
|
||||||
@@ -572,7 +649,7 @@ public class RenderBlocksCTM extends RenderBlocks {
|
|||||||
if (!inWorld || submap == null) {
|
if (!inWorld || submap == null) {
|
||||||
super.renderFaceYPos(block, 0, 0, 0, icon);
|
super.renderFaceYPos(block, 0, 0, 0, icon);
|
||||||
} else {
|
} else {
|
||||||
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 1);
|
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 1);
|
||||||
|
|
||||||
fillLightmap(brightnessTopRight, brightnessTopLeft, brightnessBottomLeft, brightnessBottomRight);
|
fillLightmap(brightnessTopRight, brightnessTopLeft, brightnessBottomLeft, brightnessBottomRight);
|
||||||
fillColormap(colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, colorRedBottomRight, redmap);
|
fillColormap(colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, colorRedBottomRight, redmap);
|
||||||
|
|||||||
@@ -16,16 +16,15 @@ public class RenderBlocksColumn extends RenderBlocks {
|
|||||||
public IIcon iconTop;
|
public IIcon iconTop;
|
||||||
private boolean inWorld;
|
private boolean inWorld;
|
||||||
|
|
||||||
private IIcon sides[] = new IIcon[6];
|
private final IIcon[] sides = new IIcon[6];
|
||||||
private CTM ctm = CTM.getInstance();
|
private final CTM ctm = CTM.getInstance();
|
||||||
|
|
||||||
public RenderBlocksColumn() {
|
public RenderBlocksColumn() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean connected(IBlockAccess world, int x, int y, int z, Block block, int meta) {
|
boolean connected(IBlockAccess world, int x, int y, int z, int fromX, int fromY, int fromZ, Block block, int meta) {
|
||||||
Block inWorld = ctm.getBlockOrFacade(world, x, y, z, -1);
|
return ctm.matches(world, x, y, z, -1, fromX, fromY, fromZ, block, meta);
|
||||||
return inWorld != null && inWorld.equals(block) && ctm.getBlockOrFacadeMetadata(world, x, y, z, -1) == meta;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -33,8 +32,8 @@ public class RenderBlocksColumn extends RenderBlocks {
|
|||||||
int metadata = blockAccess.getBlockMetadata(x, y, z);
|
int metadata = blockAccess.getBlockMetadata(x, y, z);
|
||||||
inWorld = true;
|
inWorld = true;
|
||||||
|
|
||||||
boolean yp = connected(blockAccess, x, y + 1, z, block, metadata);
|
boolean yp = connected(blockAccess, x, y + 1, z, x, y, z, block, metadata);
|
||||||
boolean yn = connected(blockAccess, x, y - 1, z, block, metadata);
|
boolean yn = connected(blockAccess, x, y - 1, z, x, y, z, block, metadata);
|
||||||
|
|
||||||
if (yp || yn) {
|
if (yp || yn) {
|
||||||
sides[0] = iconTop;
|
sides[0] = iconTop;
|
||||||
@@ -46,13 +45,13 @@ public class RenderBlocksColumn extends RenderBlocks {
|
|||||||
|
|
||||||
sides[3] = sides[4] = sides[5] = sides[2];
|
sides[3] = sides[4] = sides[5] = sides[2];
|
||||||
} else {
|
} else {
|
||||||
boolean xp = connected(blockAccess, x + 1, y, z, block, metadata);
|
boolean xp = connected(blockAccess, x + 1, y, z, x, y, z, block, metadata);
|
||||||
boolean xn = connected(blockAccess, x - 1, y, z, block, metadata);
|
boolean xn = connected(blockAccess, x - 1, y, z, x, y, z, block, metadata);
|
||||||
|
|
||||||
if (xp && (connected(blockAccess, x + 1, y + 1, z, block, metadata)
|
if (xp && (connected(blockAccess, x + 1, y + 1, z, x + 1, y, z, block, metadata)
|
||||||
|| connected(blockAccess, x + 1, y - 1, z, block, metadata))) xp = false;
|
|| connected(blockAccess, x + 1, y - 1, z, x + 1, y, z, block, metadata))) xp = false;
|
||||||
if (xn && (connected(blockAccess, x - 1, y + 1, z, block, metadata)
|
if (xn && (connected(blockAccess, x - 1, y + 1, z, x - 1, y, z, block, metadata)
|
||||||
|| connected(blockAccess, x - 1, y - 1, z, block, metadata))) xn = false;
|
|| connected(blockAccess, x - 1, y - 1, z, x - 1, y, z, block, metadata))) xn = false;
|
||||||
|
|
||||||
if (xp || xn) {
|
if (xp || xn) {
|
||||||
uvRotateEast = 2;
|
uvRotateEast = 2;
|
||||||
@@ -76,17 +75,17 @@ public class RenderBlocksColumn extends RenderBlocks {
|
|||||||
}
|
}
|
||||||
sides[2] = sides[3] = sides[1];
|
sides[2] = sides[3] = sides[1];
|
||||||
} else {
|
} else {
|
||||||
boolean zp = connected(blockAccess, x, y, z + 1, block, metadata);
|
boolean zp = connected(blockAccess, x, y, z + 1, x, y, z, block, metadata);
|
||||||
boolean zn = connected(blockAccess, x, y, z - 1, block, metadata);
|
boolean zn = connected(blockAccess, x, y, z - 1, x, y, z, block, metadata);
|
||||||
|
|
||||||
if (zp && (connected(blockAccess, x, y + 1, z + 1, block, metadata)
|
if (zp && (connected(blockAccess, x, y + 1, z + 1, x, y, z + 1, block, metadata)
|
||||||
|| connected(blockAccess, x, y - 1, z + 1, block, metadata))) zp = false;
|
|| connected(blockAccess, x, y - 1, z + 1, x, y, z + 1, block, metadata))) zp = false;
|
||||||
if (zp && (connected(blockAccess, x + 1, y, z + 1, block, metadata)
|
if (zp && (connected(blockAccess, x + 1, y, z + 1, x, y, z + 1, block, metadata)
|
||||||
|| connected(blockAccess, x - 1, y, z + 1, block, metadata))) zp = false;
|
|| connected(blockAccess, x - 1, y, z + 1, x, y, z + 1, block, metadata))) zp = false;
|
||||||
if (zn && (connected(blockAccess, x, y + 1, z - 1, block, metadata)
|
if (zn && (connected(blockAccess, x, y + 1, z - 1, x, y, z - 1, block, metadata)
|
||||||
|| connected(blockAccess, x, y - 1, z - 1, block, metadata))) zn = false;
|
|| connected(blockAccess, x, y - 1, z - 1, x, y, z - 1, block, metadata))) zn = false;
|
||||||
if (zn && (connected(blockAccess, x + 1, y, z - 1, block, metadata)
|
if (zn && (connected(blockAccess, x + 1, y, z - 1, x, y, z - 1, block, metadata)
|
||||||
|| connected(blockAccess, x - 1, y, z - 1, block, metadata))) zn = false;
|
|| connected(blockAccess, x - 1, y, z - 1, x, y, z - 1, block, metadata))) zn = false;
|
||||||
|
|
||||||
if (zp || zn) {
|
if (zp || zn) {
|
||||||
uvRotateSouth = 1;
|
uvRotateSouth = 1;
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import team.chisel.Chisel;
|
|||||||
import team.chisel.block.BlockCarvable;
|
import team.chisel.block.BlockCarvable;
|
||||||
import team.chisel.block.BlockCarvableBeacon;
|
import team.chisel.block.BlockCarvableBeacon;
|
||||||
import team.chisel.block.BlockCarvableCarpet;
|
import team.chisel.block.BlockCarvableCarpet;
|
||||||
|
import team.chisel.block.BlockCarvableConcreteSlab;
|
||||||
|
import team.chisel.block.BlockCarvableConcreteStairs;
|
||||||
import team.chisel.block.BlockCarvableGlass;
|
import team.chisel.block.BlockCarvableGlass;
|
||||||
import team.chisel.block.BlockCarvableGlowstone;
|
import team.chisel.block.BlockCarvableGlowstone;
|
||||||
import team.chisel.block.BlockCarvableIce;
|
import team.chisel.block.BlockCarvableIce;
|
||||||
@@ -53,6 +55,7 @@ public final class ChiselBlocks {
|
|||||||
public static final BlockCarvable sandstone = null;
|
public static final BlockCarvable sandstone = null;
|
||||||
public static final BlockCarvable sandstone_scribbles = null;
|
public static final BlockCarvable sandstone_scribbles = null;
|
||||||
public static final BlockConcrete concrete = null;
|
public static final BlockConcrete concrete = null;
|
||||||
|
public static final BlockCarvableConcreteSlab concrete_slab = null;
|
||||||
public static final BlockRoadLine road_line = null;
|
public static final BlockRoadLine road_line = null;
|
||||||
public static final BlockCarvable iron_block = null;
|
public static final BlockCarvable iron_block = null;
|
||||||
public static final BlockCarvable gold_block = null;
|
public static final BlockCarvable gold_block = null;
|
||||||
@@ -147,6 +150,7 @@ public final class ChiselBlocks {
|
|||||||
public static BlockCarvableStairs[] limestoneStairs = new BlockCarvableStairs[8];
|
public static BlockCarvableStairs[] limestoneStairs = new BlockCarvableStairs[8];
|
||||||
public static BlockCarvableIceStairs[] iceStairs = new BlockCarvableIceStairs[8];
|
public static BlockCarvableIceStairs[] iceStairs = new BlockCarvableIceStairs[8];
|
||||||
public static BlockCarvablePackedIceStairs[] packediceStairs = new BlockCarvablePackedIceStairs[8];
|
public static BlockCarvablePackedIceStairs[] packediceStairs = new BlockCarvablePackedIceStairs[8];
|
||||||
|
public static BlockCarvableConcreteStairs[] concreteStairs = new BlockCarvableConcreteStairs[6];
|
||||||
|
|
||||||
public static Block[] torches = new BlockCarvableTorch[16];
|
public static Block[] torches = new BlockCarvableTorch[16];
|
||||||
|
|
||||||
@@ -177,5 +181,34 @@ public final class ChiselBlocks {
|
|||||||
public static final BlockCarvable lantern = null;
|
public static final BlockCarvable lantern = null;
|
||||||
public static final BlockCarvable sheetmetal = 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 cast_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;
|
||||||
|
public static final BlockCarvable coral = null;
|
||||||
|
public static final BlockCarvable coral2 = null;
|
||||||
|
public static final BlockCarvable mud = null;
|
||||||
|
public static final BlockCarvable albumblock = null;
|
||||||
|
public static final BlockCarvable albumblock2 = null;
|
||||||
|
public static final BlockCarvable albumblock3 = null;
|
||||||
|
public static final BlockCarvable brickCustom2 = null;
|
||||||
|
public static final BlockCarvable brutalism = null;
|
||||||
|
public static final BlockConcrete road = null;
|
||||||
|
public static final BlockCarvable porcelain = null;
|
||||||
|
public static final BlockCarvable alabaster = null;
|
||||||
|
|
||||||
|
// Architect's Palette Backport
|
||||||
|
|
||||||
private ChiselBlocks() {}
|
private ChiselBlocks() {}
|
||||||
}
|
}
|
||||||
@@ -26,12 +26,12 @@ public class ItemUpgrade extends BaseItem {
|
|||||||
@Override
|
@Override
|
||||||
public IIcon getIconFromDamage(int meta) {
|
public IIcon getIconFromDamage(int meta) {
|
||||||
// using modulo throughout to prevent AIOB
|
// using modulo throughout to prevent AIOB
|
||||||
return this.icons[meta % Upgrade.values().length];
|
return this.icons[meta % Upgrade.VALUES.length];
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void registerIcons(IIconRegister reg) {
|
public void registerIcons(IIconRegister reg) {
|
||||||
Upgrade[] upgrades = Upgrade.values();
|
Upgrade[] upgrades = Upgrade.VALUES;
|
||||||
for (int i = 0; i < upgrades.length; i++) {
|
for (int i = 0; i < upgrades.length; i++) {
|
||||||
this.icons[i] = reg.registerIcon(
|
this.icons[i] = reg.registerIcon(
|
||||||
Chisel.MOD_ID + ":upgrade_"
|
Chisel.MOD_ID + ":upgrade_"
|
||||||
@@ -43,14 +43,14 @@ public class ItemUpgrade extends BaseItem {
|
|||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
@Override
|
@Override
|
||||||
public void getSubItems(Item item, CreativeTabs tab, List list) {
|
public void getSubItems(Item item, CreativeTabs tab, List list) {
|
||||||
for (int i = 0; i < Upgrade.values().length; i++) {
|
for (int i = 0; i < Upgrade.VALUES.length; i++) {
|
||||||
list.add(new ItemStack(item, 1, i));
|
list.add(new ItemStack(item, 1, i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getUnlocalizedName(ItemStack stack) {
|
public String getUnlocalizedName(ItemStack stack) {
|
||||||
Upgrade[] upgrades = Upgrade.values();
|
Upgrade[] upgrades = Upgrade.VALUES;
|
||||||
return upgrades[stack.getItemDamage() % upgrades.length].getUnlocalizedName();
|
return upgrades[stack.getItemDamage() % upgrades.length].getUnlocalizedName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,14 +11,12 @@ import net.minecraftforge.common.MinecraftForge;
|
|||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
|
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
|
||||||
import net.minecraftforge.event.world.BlockEvent;
|
import net.minecraftforge.event.world.BlockEvent;
|
||||||
import net.minecraftforge.event.world.WorldEvent;
|
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
|
|
||||||
import com.cricketcraft.chisel.api.IChiselItem;
|
import com.cricketcraft.chisel.api.IChiselItem;
|
||||||
import com.cricketcraft.chisel.api.carving.ICarvingGroup;
|
import com.cricketcraft.chisel.api.carving.ICarvingGroup;
|
||||||
import com.cricketcraft.chisel.api.carving.ICarvingVariation;
|
import com.cricketcraft.chisel.api.carving.ICarvingVariation;
|
||||||
import com.cricketcraft.chisel.api.carving.IChiselMode;
|
import com.cricketcraft.chisel.api.carving.IChiselMode;
|
||||||
import com.cricketcraft.chisel.api.rendering.TextureType;
|
|
||||||
import com.google.common.collect.Queues;
|
import com.google.common.collect.Queues;
|
||||||
|
|
||||||
import cpw.mods.fml.common.FMLCommonHandler;
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
@@ -33,11 +31,10 @@ public final class ChiselController {
|
|||||||
|
|
||||||
protected static class GuiOpen implements Runnable {
|
protected static class GuiOpen implements Runnable {
|
||||||
|
|
||||||
private EntityPlayer player;
|
private final EntityPlayer player;
|
||||||
private ItemStack stack;
|
private final ItemStack stack;
|
||||||
|
|
||||||
public GuiOpen(EntityPlayer player, ItemStack stack) {
|
public GuiOpen(EntityPlayer player, ItemStack stack) {
|
||||||
super();
|
|
||||||
this.player = player;
|
this.player = player;
|
||||||
this.stack = stack;
|
this.stack = stack;
|
||||||
}
|
}
|
||||||
@@ -55,7 +52,7 @@ public final class ChiselController {
|
|||||||
|
|
||||||
public static final ChiselController INSTANCE = new ChiselController();
|
public static final ChiselController INSTANCE = new ChiselController();
|
||||||
|
|
||||||
Queue<GuiOpen> openQueue = Queues.newArrayDeque();
|
final Queue<GuiOpen> openQueue = Queues.newArrayDeque();
|
||||||
|
|
||||||
private ChiselController() {}
|
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();
|
super();
|
||||||
this.type = type;
|
this.type = type;
|
||||||
setMaxStackSize(1);
|
setMaxStackSize(1);
|
||||||
|
setMaxDamage(Configurations.allowChiselDamage ? type.maxDamage : 0);
|
||||||
setTextureName(
|
setTextureName(
|
||||||
Chisel.MOD_ID + ":chisel_"
|
Chisel.MOD_ID + ":chisel_"
|
||||||
+ type.name()
|
+ 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
|
@Override
|
||||||
public boolean isDamageable() {
|
public boolean isDamageable() {
|
||||||
return Configurations.allowChiselDamage;
|
return Configurations.allowChiselDamage;
|
||||||
|
|||||||
@@ -5,3 +5,7 @@ public net.minecraft.client.renderer.Tessellator field_78417_x
|
|||||||
|
|
||||||
# GUI stuff for item scale
|
# GUI stuff for item scale
|
||||||
protected net.minecraft.client.gui.inventory.GuiContainer func_146977_a(Lnet/minecraft/inventory/Slot;)V # drawSlot
|
protected net.minecraft.client.gui.inventory.GuiContainer func_146977_a(Lnet/minecraft/inventory/Slot;)V # drawSlot
|
||||||
|
|
||||||
|
# Checking if a resource exists
|
||||||
|
public net.minecraft.client.resources.SimpleReloadableResourceManager field_110548_a # domainResourceManagers
|
||||||
|
public net.minecraft.client.resources.FallbackResourceManager field_110540_a # resourcePacks
|
||||||
@@ -101,6 +101,12 @@ tile.diorite.3.desc=Diorite Bricks
|
|||||||
tile.diorite.4.desc=Ornate Diorite
|
tile.diorite.4.desc=Ornate Diorite
|
||||||
tile.diorite.5.desc=Prismatic Diorite
|
tile.diorite.5.desc=Prismatic Diorite
|
||||||
tile.diorite.6.desc=Diorite Small Tiles
|
tile.diorite.6.desc=Diorite Small Tiles
|
||||||
|
tile.diorite.7.desc=Cobbled Diorite
|
||||||
|
tile.diorite.8.desc=Mossy Diorite
|
||||||
|
tile.diorite.9.desc=Modern Diorite
|
||||||
|
tile.diorite.10.desc=Modern Polished Diorite
|
||||||
|
tile.diorite.11.desc=Biotite-Rich Diorite
|
||||||
|
tile.diorite.12.desc=Hornblende-Rich Diorite
|
||||||
|
|
||||||
#Andesite
|
#Andesite
|
||||||
tile.chisel.andesite.name=Andesite
|
tile.chisel.andesite.name=Andesite
|
||||||
@@ -111,6 +117,11 @@ tile.andesite.3.desc=Andesite Bricks
|
|||||||
tile.andesite.4.desc=Ornate Andesite
|
tile.andesite.4.desc=Ornate Andesite
|
||||||
tile.andesite.5.desc=Prismatic Andesite
|
tile.andesite.5.desc=Prismatic Andesite
|
||||||
tile.andesite.6.desc=Andesite Small Tiles
|
tile.andesite.6.desc=Andesite Small Tiles
|
||||||
|
tile.andesite.7.desc=Cobbled Andesite
|
||||||
|
tile.andesite.8.desc=Mossy Andesite
|
||||||
|
tile.andesite.9.desc=Modern Andesite
|
||||||
|
tile.andesite.10.desc=Modern Polished Andesite
|
||||||
|
tile.andesite.11.desc=Weathered Andesite
|
||||||
|
|
||||||
#Granite
|
#Granite
|
||||||
tile.chisel.granite.name=Granite
|
tile.chisel.granite.name=Granite
|
||||||
@@ -121,6 +132,11 @@ tile.granite.3.desc=Granite Bricks
|
|||||||
tile.granite.4.desc=Ornate Granite
|
tile.granite.4.desc=Ornate Granite
|
||||||
tile.granite.5.desc=Prismatic Granite
|
tile.granite.5.desc=Prismatic Granite
|
||||||
tile.granite.6.desc=Granite Small Tiles
|
tile.granite.6.desc=Granite Small Tiles
|
||||||
|
tile.granite.7.desc=Cobbled Granite
|
||||||
|
tile.granite.8.desc=Mossy Granite
|
||||||
|
tile.granite.9.desc=Modern Granite
|
||||||
|
tile.granite.10.desc=Modern Polished Granite
|
||||||
|
tile.granite.11.desc=Granitic Mineral Sand
|
||||||
|
|
||||||
#Auto Chisel
|
#Auto Chisel
|
||||||
tile.chisel.autoChisel.name=Auto Chisel
|
tile.chisel.autoChisel.name=Auto Chisel
|
||||||
@@ -132,6 +148,9 @@ autochisel.slot.stack.tooltip=Stack Upgrade Slot
|
|||||||
autochisel.slot.reversion.tooltip=Reversion Upgrade Slot
|
autochisel.slot.reversion.tooltip=Reversion Upgrade Slot
|
||||||
chisel.autochisel.upgrade.disabled=Upgrades Disabled
|
chisel.autochisel.upgrade.disabled=Upgrades Disabled
|
||||||
|
|
||||||
|
#NEI
|
||||||
|
chisel.nei.title=Chisel
|
||||||
|
|
||||||
#Beacon
|
#Beacon
|
||||||
tile.chisel.beacon.name=Beacon
|
tile.chisel.beacon.name=Beacon
|
||||||
tile.beacon.black.desc=Black Beamed Beacon
|
tile.beacon.black.desc=Black Beamed Beacon
|
||||||
@@ -949,11 +968,24 @@ tile.chisel.present.desc=A pretty present chest
|
|||||||
|
|
||||||
#Brick
|
#Brick
|
||||||
tile.chisel.brickCustom.name=Brick Block
|
tile.chisel.brickCustom.name=Brick Block
|
||||||
|
tile.chisel.brickCustom2.name=Brick Block
|
||||||
tile.brickCustom.1.desc=Large Bricks
|
tile.brickCustom.1.desc=Large Bricks
|
||||||
tile.brickCustom.2.desc=Mortarless Bricks
|
tile.brickCustom.2.desc=Mortarless Bricks
|
||||||
tile.brickCustom.3.desc=Varied Bricks
|
tile.brickCustom.3.desc=Varied Bricks
|
||||||
|
tile.brickCustom.4.desc=Oops! All Mortar!
|
||||||
tile.brickCustom.5.desc=Aged Bricks
|
tile.brickCustom.5.desc=Aged Bricks
|
||||||
tile.brickCustom.6.desc=Yellow Bricks
|
tile.brickCustom.6.desc=Yellow Bricks
|
||||||
|
tile.brickCustom.7.desc=Brick Tile
|
||||||
|
tile.brickCustom.8.desc=Brick Panel
|
||||||
|
tile.brickCustom.9.desc=Brown Bricks
|
||||||
|
tile.brickCustom.10.desc=Modern Bricks
|
||||||
|
tile.brickCustom.11.desc=White Bricks
|
||||||
|
tile.brickCustom.12.desc=Black Bricks
|
||||||
|
tile.brickCustom.13.desc=Sooty Bricks
|
||||||
|
tile.brickCustom.14.desc=Mossy Bricks
|
||||||
|
tile.brickCustom.15.desc=Neutral Bricks
|
||||||
|
tile.brickCustom2.0.desc=Left-Bordered Bricks
|
||||||
|
tile.brickCustom2.1.desc=Right-Bordered Bricks
|
||||||
|
|
||||||
#Chisel 1
|
#Chisel 1
|
||||||
|
|
||||||
@@ -1224,6 +1256,9 @@ tile.diamond.9.desc=Small Diamond Blocks
|
|||||||
tile.diamond.10.desc=Small Ornate Diamond Blocks
|
tile.diamond.10.desc=Small Ornate Diamond Blocks
|
||||||
tile.diamond.11.desc=Zelda Diamond Block
|
tile.diamond.11.desc=Zelda Diamond Block
|
||||||
tile.diamond.12.desc=Diamond Block with Ornate Layer
|
tile.diamond.12.desc=Diamond Block with Ornate Layer
|
||||||
|
tile.diamond.13.desc=Modern Diamond Block
|
||||||
|
tile.diamond.14.desc=Diamond Ore Bricks
|
||||||
|
tile.diamond.15.desc=Chiseled Diamond Ore Bricks
|
||||||
|
|
||||||
#Snakestone
|
#Snakestone
|
||||||
tile.chisel.snakestoneSand.name=Sand Snakestone
|
tile.chisel.snakestoneSand.name=Sand Snakestone
|
||||||
@@ -1250,6 +1285,7 @@ tile.glass.15.desc=Modern Iron Fence
|
|||||||
|
|
||||||
tile.chisel.glass2.name=Glass
|
tile.chisel.glass2.name=Glass
|
||||||
tile.glass2.0.desc=Asymmetrical Leaded Glass
|
tile.glass2.0.desc=Asymmetrical Leaded Glass
|
||||||
|
tile.glass2.1.desc=Modern Glass
|
||||||
|
|
||||||
#Sandstone
|
#Sandstone
|
||||||
tile.chisel.sandstone.name=Sandstone
|
tile.chisel.sandstone.name=Sandstone
|
||||||
@@ -1273,7 +1309,10 @@ tile.sandstone.13.desc=Small Sandstone Blocks
|
|||||||
tile.sandstone.14.desc=Sandstone Mosaic
|
tile.sandstone.14.desc=Sandstone Mosaic
|
||||||
tile.sandstone.15.desc=Stacked Sandstone Tiles
|
tile.sandstone.15.desc=Stacked Sandstone Tiles
|
||||||
tile.sandstone.16.desc=Sandstone Bricks
|
tile.sandstone.16.desc=Sandstone Bricks
|
||||||
tile.sandstone.17.desc=
|
tile.sandstone.17.desc=Smooth Flat Sandstone
|
||||||
|
tile.sandstone.18.desc=Gilded Sandstone
|
||||||
|
tile.sandstone.19.desc=Gilded Sandstone Pillar
|
||||||
|
tile.sandstone.20.desc=Chiseled Gilded Sandstone
|
||||||
|
|
||||||
#Sandstone scribbles
|
#Sandstone scribbles
|
||||||
tile.chisel.sandstone_scribbles.name=Sandstone Scribbles
|
tile.chisel.sandstone_scribbles.name=Sandstone Scribbles
|
||||||
@@ -1293,6 +1332,44 @@ tile.concrete.8.desc=Partly Weathered Concrete
|
|||||||
tile.concrete.9.desc=Partly Weathered Concrete Block
|
tile.concrete.9.desc=Partly Weathered Concrete Block
|
||||||
tile.concrete.10.desc=Asphalt
|
tile.concrete.10.desc=Asphalt
|
||||||
|
|
||||||
|
#Concrete Slabs
|
||||||
|
tile.chisel.concrete_slab.name=Concrete Slab
|
||||||
|
tile.concreteSlab.0.desc=Concrete Slab
|
||||||
|
tile.concreteSlab.1.desc=Concrete Block Slab
|
||||||
|
tile.concreteSlab.2.desc=Concrete Double Slab
|
||||||
|
tile.concreteSlab.3.desc=Small Concrete Block Slab
|
||||||
|
tile.concreteSlab.4.desc=Weathered Concrete Slab
|
||||||
|
tile.concreteSlab.5.desc=Weathered Concrete Block Slab
|
||||||
|
tile.concreteSlab.6.desc=Weathered Concrete Double Slab
|
||||||
|
tile.concreteSlab.7.desc=Small Weathered Block Slab
|
||||||
|
tile.concreteSlab.8.desc=Partly Weathered Concrete Slab
|
||||||
|
tile.concreteSlab.9.desc=Partly Weathered Concrete Block Slab
|
||||||
|
tile.concreteSlab.10.desc=Asphalt
|
||||||
|
|
||||||
|
#Concrete Stairs
|
||||||
|
#The same name goes here 8 different times since stairs take up 8 block positions.
|
||||||
|
#Sorry! It was the only way! Maybe one day it will be fixed...
|
||||||
|
tile.chisel.concrete_stairs.0.name=Concrete Stairs
|
||||||
|
tile.chisel.concrete_stairs.1.name=Concrete Stairs
|
||||||
|
tile.chisel.concrete_stairs.2.name=Concrete Stairs
|
||||||
|
tile.chisel.concrete_stairs.3.name=Concrete Stairs
|
||||||
|
tile.chisel.concrete_stairs.4.name=Concrete Stairs
|
||||||
|
tile.chisel.concrete_stairs.5.name=Concrete Stairs
|
||||||
|
tile.chisel.concrete_stairs.6.name=Concrete Stairs
|
||||||
|
tile.chisel.concrete_stairs.7.name=Concrete Stairs
|
||||||
|
|
||||||
|
tile.concreteStairs.0.desc=Concrete Stairs
|
||||||
|
tile.concreteStairs.1.desc=Concrete Block Stairs
|
||||||
|
tile.concreteStairs.2.desc=Concrete Double Slab Stairs
|
||||||
|
tile.concreteStairs.3.desc=Small Concrete Block Stairs
|
||||||
|
tile.concreteStairs.4.desc=Weathered Concrete Stairs
|
||||||
|
tile.concreteStairs.5.desc=Weathered Concrete Block Stairs
|
||||||
|
tile.concreteStairs.6.desc=Weathered Concrete Double Slab Stairs
|
||||||
|
tile.concreteStairs.7.desc=Small Weathered Block Stairs
|
||||||
|
tile.concreteStairs.8.desc=Partly Weathered Concrete Stairs
|
||||||
|
tile.concreteStairs.9.desc=Partly Weathered Concrete Block Stairs
|
||||||
|
tile.concreteStairs.10.desc=Asphalt Stairs
|
||||||
|
|
||||||
# Road Line
|
# Road Line
|
||||||
tile.chisel.road_line.name=Road Lines
|
tile.chisel.road_line.name=Road Lines
|
||||||
tile.roadLine.0.desc=White
|
tile.roadLine.0.desc=White
|
||||||
@@ -1336,6 +1413,7 @@ tile.gold.11.desc=Gold Block with Star Decoration
|
|||||||
tile.gold.12.desc=Golden Star in Purple Obsidian
|
tile.gold.12.desc=Golden Star in Purple Obsidian
|
||||||
tile.gold.13.desc=Golden Star in Obsidian
|
tile.gold.13.desc=Golden Star in Obsidian
|
||||||
tile.gold.14.desc=Simple Gold Block
|
tile.gold.14.desc=Simple Gold Block
|
||||||
|
tile.gold.15.desc=Modern Gold Block
|
||||||
|
|
||||||
#Glowstone
|
#Glowstone
|
||||||
tile.chisel.glowstone.name=Glowstone
|
tile.chisel.glowstone.name=Glowstone
|
||||||
@@ -1365,6 +1443,7 @@ tile.lapis.5.desc=Lapis Tile
|
|||||||
tile.lapis.6.desc=Lapis Panel
|
tile.lapis.6.desc=Lapis Panel
|
||||||
tile.lapis.7.desc=Smooth Lapis
|
tile.lapis.7.desc=Smooth Lapis
|
||||||
tile.lapis.8.desc=Lapis with Ornate Layer
|
tile.lapis.8.desc=Lapis with Ornate Layer
|
||||||
|
tile.lapis.9.desc=Modern Lapis
|
||||||
|
|
||||||
#Emerald Blocks
|
#Emerald Blocks
|
||||||
tile.chisel.emerald_block.name=Emerald Block
|
tile.chisel.emerald_block.name=Emerald Block
|
||||||
@@ -1379,6 +1458,10 @@ tile.emerald.8.desc=Emerald Bismuth
|
|||||||
tile.emerald.9.desc=Small Emerald Blocks
|
tile.emerald.9.desc=Small Emerald Blocks
|
||||||
tile.emerald.10.desc=Small Ornate Emerald Blocks
|
tile.emerald.10.desc=Small Ornate Emerald Blocks
|
||||||
tile.emerald.11.desc=Ornate Emerald Block
|
tile.emerald.11.desc=Ornate Emerald Block
|
||||||
|
tile.emerald.12.desc=Modern Emerald Block
|
||||||
|
tile.emerald.13.desc=Emerald Ore Bricks
|
||||||
|
tile.emerald.14.desc=Cracked Emerald Ore Bricks
|
||||||
|
tile.emerald.15.desc=Chiseled Emerald Ore Bricks
|
||||||
|
|
||||||
#Nether Brick
|
#Nether Brick
|
||||||
tile.chisel.nether_brick.name=Nether Brick
|
tile.chisel.nether_brick.name=Nether Brick
|
||||||
@@ -2665,7 +2748,7 @@ tile.neonite.5.desc=Fresh Green
|
|||||||
tile.neonite.6.desc=Jungle Green
|
tile.neonite.6.desc=Jungle Green
|
||||||
tile.neonite.7.desc=Mariner
|
tile.neonite.7.desc=Mariner
|
||||||
tile.neonite.8.desc=Congress Blue
|
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.10.desc=Deep Cove
|
||||||
tile.neonite.11.desc=Meteorite
|
tile.neonite.11.desc=Meteorite
|
||||||
tile.neonite.12.desc=Eminence
|
tile.neonite.12.desc=Eminence
|
||||||
@@ -2713,6 +2796,15 @@ tile.lantern.2.desc=Redstone
|
|||||||
tile.lantern.3.desc=Soul
|
tile.lantern.3.desc=Soul
|
||||||
tile.lantern.4.desc=Cursed
|
tile.lantern.4.desc=Cursed
|
||||||
tile.lantern.5.desc=Ender
|
tile.lantern.5.desc=Ender
|
||||||
|
tile.lantern.6.desc=Tuff Lamp
|
||||||
|
tile.lantern.7.desc=Calcite Lamp
|
||||||
|
tile.lantern.9.desc=Dripstone Lamp
|
||||||
|
tile.lantern.8.desc=Oracle Lamp
|
||||||
|
tile.lantern.10.desc=Algal Lamp
|
||||||
|
tile.lantern.11.desc=Abyssal Lamp
|
||||||
|
tile.lantern.12.desc=Charged Abyssal Lamp
|
||||||
|
tile.lantern.13.desc=Hadal Lamp
|
||||||
|
tile.lantern.14.desc=Charged Hadal Lamp
|
||||||
|
|
||||||
#Sheetmetal
|
#Sheetmetal
|
||||||
tile.chisel.sheetmetal.name=Sheetmetal
|
tile.chisel.sheetmetal.name=Sheetmetal
|
||||||
@@ -2727,5 +2819,392 @@ tile.sheetmetal.7.desc=Paneling (Rusty)
|
|||||||
tile.sheetmetal.8.desc=Plating (Rusty)
|
tile.sheetmetal.8.desc=Plating (Rusty)
|
||||||
tile.sheetmetal.9.desc=Treading (Rusty)
|
tile.sheetmetal.9.desc=Treading (Rusty)
|
||||||
|
|
||||||
|
#Moss
|
||||||
|
tile.chisel.moss.name=Moss
|
||||||
|
tile.chisel.moss_carpet.name=Moss Carpet
|
||||||
|
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.castironblock.name=Block of Cast 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.coral.name=Coral
|
||||||
|
tile.coral.0.desc=Brain Coral
|
||||||
|
tile.coral.1.desc=Bubble Coral
|
||||||
|
tile.coral.2.desc=Fire Coral
|
||||||
|
tile.coral.3.desc=Horn Coral
|
||||||
|
tile.coral.4.desc=Tube Coral
|
||||||
|
tile.coral.5.desc=Dead Brain Coral
|
||||||
|
tile.coral.6.desc=Dead Bubble Coral
|
||||||
|
tile.coral.7.desc=Dead Fire Coral
|
||||||
|
tile.coral.8.desc=Dead Horn Coral
|
||||||
|
tile.coral.9.desc=Dead Tube Coral
|
||||||
|
tile.coral.10.desc=Brain Coral Bricks
|
||||||
|
tile.coral.11.desc=Bubble Coral Bricks
|
||||||
|
tile.coral.12.desc=Fire Coral Bricks
|
||||||
|
tile.coral.13.desc=Horn Coral Bricks
|
||||||
|
tile.coral.14.desc=Tube Coral Bricks
|
||||||
|
tile.coral.15.desc=Dead Coral Bricks
|
||||||
|
|
||||||
|
tile.chisel.mud.name=Mud
|
||||||
|
tile.mud.0.desc=Black Mud
|
||||||
|
tile.mud.1.desc=Loamy Mud
|
||||||
|
tile.mud.2.desc=Carbonate Mud (Marl)
|
||||||
|
tile.mud.3.desc=Brown Mud
|
||||||
|
tile.mud.4.desc=Packed Mud
|
||||||
|
tile.mud.5.desc=Rooted Mud
|
||||||
|
tile.mud.6.desc=Mud Bricks
|
||||||
|
|
||||||
|
tile.chisel.albumblock.name=Musical Block
|
||||||
|
tile.chisel.albumblock2.name=Musical Block
|
||||||
|
tile.chisel.albumblock3.name=Musical Block
|
||||||
|
tile.album.0.desc=That Green Gentleman
|
||||||
|
tile.album.1.desc=Pretty Odd
|
||||||
|
tile.album.2.desc=Laminated Denim
|
||||||
|
tile.album.3.desc=Dogmatica
|
||||||
|
tile.album.4.desc=And the Sky Opened Up
|
||||||
|
tile.album.5.desc=Route Guano
|
||||||
|
tile.album.6.desc=A Spell Over the West
|
||||||
|
tile.album.7.desc=I Built With Someone In Fall Out Boy And All I Got Was This Stupid Block Made About Me
|
||||||
|
tile.album.8.desc=Crumbling Castle
|
||||||
|
tile.album.9.desc=Evil Star
|
||||||
|
tile.album.10.desc=Gaia
|
||||||
|
tile.album.11.desc=Spacesick
|
||||||
|
tile.album.12.desc=Reactor
|
||||||
|
tile.album.13.desc=Resignation
|
||||||
|
tile.album.14.desc=Dead!
|
||||||
|
tile.album.15.desc=Having Too Much Fun
|
||||||
|
tile.album2.16.desc=The Cork Tree
|
||||||
|
tile.album2.17.desc=Cooperstown
|
||||||
|
tile.album2.18.desc=The Most Fun a Girl Can Have
|
||||||
|
tile.album2.19.desc=Birdbrain
|
||||||
|
tile.album2.20.desc=Fancy Some More?
|
||||||
|
tile.album2.21.desc=Paper-Mâché
|
||||||
|
tile.album2.22.desc=Girls Like Us
|
||||||
|
tile.album2.23.desc=The Terrors
|
||||||
|
tile.album2.24.desc=Stardust Pharmacy
|
||||||
|
tile.album2.25.desc=Katamari
|
||||||
|
tile.album2.26.desc=Charleston Girl
|
||||||
|
tile.album2.27.desc=Transitional Bird
|
||||||
|
tile.album2.28.desc=Komm, Susser Tod
|
||||||
|
tile.album2.29.desc=You Like Magic?
|
||||||
|
tile.album2.30.desc=Guess
|
||||||
|
tile.album2.31.desc=P-Panda
|
||||||
|
tile.album3.32.desc=Fill Your Lungs
|
||||||
|
tile.album3.33.desc=Paranoid
|
||||||
|
tile.album3.34.desc=Monomi
|
||||||
|
tile.album3.35.desc=Ursine
|
||||||
|
tile.album3.36.desc=Hexie Mountains
|
||||||
|
tile.album3.37.desc=Melancholy Hill
|
||||||
|
tile.album3.38.desc=Triple Blocka
|
||||||
|
tile.album3.39.desc=Ya Ya Ya Ya Ya Ya Ya Ya
|
||||||
|
tile.album3.40.desc=Phantom Island
|
||||||
|
tile.album3.41.desc=Alligator Bites Never Heal
|
||||||
|
tile.album3.42.desc=Chiseled Triple Blocka
|
||||||
|
tile.album3.43.desc=Magnet
|
||||||
|
tile.album3.44.desc=Digital Girl
|
||||||
|
tile.album3.45.desc=Digital World
|
||||||
|
tile.album3.46.desc=Pain
|
||||||
|
|
||||||
|
tile.chisel.brutalism.name=Brutalist Block
|
||||||
|
tile.brutalism.0.desc=Plain Cement
|
||||||
|
tile.brutalism.1.desc=Cement Bricks
|
||||||
|
tile.brutalism.2.desc=Leafy Ecobrutalism
|
||||||
|
tile.brutalism.3.desc=Flowering Ecobrutalism
|
||||||
|
tile.brutalism.4.desc=Faux Window
|
||||||
|
tile.brutalism.5.desc=Heavily Weathered Cement
|
||||||
|
tile.brutalism.6.desc=Heavily Weathered Cement Bricks
|
||||||
|
tile.brutalism.7.desc=Reinforced Cement
|
||||||
|
tile.brutalism.8.desc=Rimmed Cement
|
||||||
|
tile.brutalism.9.desc=Lightly Weathered Cement
|
||||||
|
|
||||||
|
tile.chisel.porcelain.name=Porcelain Block
|
||||||
|
tile.porcelain.0.desc=Plain Porcelain
|
||||||
|
tile.porcelain.1.desc=Cracked Porcelain
|
||||||
|
tile.porcelain.2.desc=Kintsugi
|
||||||
|
tile.porcelain.3.desc=Blue Porcelain Tiles
|
||||||
|
tile.porcelain.4.desc=Red Porcelain Tiles
|
||||||
|
tile.porcelain.5.desc=Blue Porcelain Fish
|
||||||
|
tile.porcelain.6.desc=Blue Porcelain Flower
|
||||||
|
tile.porcelain.7.desc=Red Porcelain Dragon
|
||||||
|
tile.porcelain.9.desc=Red Porcelain Pillar
|
||||||
|
tile.porcelain.10.desc=Red And Blue Porcelain Tiles
|
||||||
|
tile.porcelain.11.desc=Kintsugi Tiles
|
||||||
|
tile.porcelain.12.desc=Polished Porcelain
|
||||||
|
tile.porcelain.13.desc=Faux Ivory
|
||||||
|
|
||||||
|
tile.chisel.alabaster.name=Alabaster Block
|
||||||
|
tile.alabaster.0.desc=Calcite-Rich
|
||||||
|
tile.alabaster.1.desc=Chartreuse
|
||||||
|
tile.alabaster.2.desc=Lavender
|
||||||
|
tile.alabaster.3.desc=Lilac
|
||||||
|
tile.alabaster.4.desc=Mauve
|
||||||
|
tile.alabaster.5.desc=French Grey
|
||||||
|
tile.alabaster.6.desc=Peach
|
||||||
|
tile.alabaster.7.desc=Periwinkle
|
||||||
|
tile.alabaster.8.desc=Sage Green
|
||||||
|
tile.alabaster.9.desc=Sky Blue
|
||||||
|
tile.alabaster.10.desc=Cream
|
||||||
|
|
||||||
|
tile.chisel.topazBlock.name=Block of Topaz
|
||||||
|
tile.chisel.charoiteBlock.name=Block of Charoite
|
||||||
|
tile.chisel.fluoriteBlock.name=Block of Fluorite
|
||||||
|
tile.chisel.jadeBlock.name=Block of Jade
|
||||||
|
tile.chisel.labradoriteBlock.name=Block of Labradorite
|
||||||
|
tile.chisel.netherquartzBlock.name=Block of Nether Quartz
|
||||||
|
tile.chisel.onyxBlock.name=Block of Onyx
|
||||||
|
tile.chisel.opalBlock.name=Block of Opal
|
||||||
|
tile.chisel.rhodochrositeBlock.name=Block of Rhodochrosite
|
||||||
|
tile.chisel.rubyBlock.name=Block of Ruby
|
||||||
|
tile.chisel.spinelBlock.name=Block of Spinel
|
||||||
|
tile.gems.0.desc=Hopper Crystal
|
||||||
|
tile.gems.1.desc=Bordered
|
||||||
|
tile.gems.2.desc=Cell
|
||||||
|
tile.gems.3.desc=Faceted
|
||||||
|
tile.gems.4.desc=Ornate Tiles
|
||||||
|
tile.gems.5.desc=Large Tiles
|
||||||
|
tile.gems.6.desc=Polished
|
||||||
|
tile.gems.7.desc=Raw Mineral
|
||||||
|
tile.gems.8.desc=Smooth
|
||||||
|
tile.gems.9.desc=Spiraling
|
||||||
|
tile.gems.10.desc=Simple Tiles
|
||||||
|
|
||||||
|
tile.chisel.sulfurBlock.name=Block of Sulfur
|
||||||
|
tile.chisel.cinnabarBlock.name=Block of Cinnabar
|
||||||
|
tile.chisel.tuffBlock.name=Tuff
|
||||||
|
tile.chisel.coral2.name=Coralstone
|
||||||
|
tile.chisel.prismarineBlock.name=Prismarine
|
||||||
|
tile.chisel.darkprismarineBlock.name=Dark Prismarine
|
||||||
|
tile.chisel.deepslateBlock.name=Deepslate
|
||||||
|
tile.chisel.dripstoneBlock.name=Dripstone
|
||||||
|
tile.chisel.basaltBlock.name=Basalt
|
||||||
|
tile.stones.0.desc=Raw
|
||||||
|
tile.stones.1.desc=Bricks
|
||||||
|
tile.stones.2.desc=Chiseled
|
||||||
|
tile.stones.3.desc=Cobblestone
|
||||||
|
tile.stones.4.desc=Mossy
|
||||||
|
tile.stones.5.desc=Pillar
|
||||||
|
tile.stones.6.desc=Polished
|
||||||
|
tile.stones.7.desc=Prism
|
||||||
|
tile.stones.8.desc=Tiles
|
||||||
|
tile.stones.9.desc=Ornate
|
||||||
|
tile.tuff.0.desc=Architect's Tuff Bricks
|
||||||
|
tile.tuff.1.desc=Architect's Tuff Pillar
|
||||||
|
tile.dripstone.0.desc=Architect's Dripstone Bricks
|
||||||
|
tile.dripstone.1.desc=Architect's Dripstone Pillar
|
||||||
|
|
||||||
|
tile.sulfur.0.desc=Potent Sulfur
|
||||||
|
|
||||||
|
|
||||||
|
tile.chisel.road.name=Road Block
|
||||||
|
tile.chisel.road2.name=Road Block
|
||||||
|
tile.road.0.desc=Asphalt
|
||||||
|
tile.road.1.desc=Crosswalk
|
||||||
|
tile.road.2.desc=Double White Lines
|
||||||
|
tile.road.3.desc=Double Yellow Lines
|
||||||
|
tile.road.4.desc=Dirt Road
|
||||||
|
tile.road.5.desc=Diverging Lane Marking
|
||||||
|
tile.road.6.desc=Dotted White Line
|
||||||
|
tile.road.7.desc=Dotted Yellow Line
|
||||||
|
tile.road.8.desc=Single Yellow Line - East
|
||||||
|
tile.road.9.desc=Single Yellow Line - North
|
||||||
|
tile.road.10.desc=Single Yellow Line - South
|
||||||
|
tile.road.11.desc=Single Yellow Line - West
|
||||||
|
tile.road.12.desc=Left Lane
|
||||||
|
tile.road.13.desc=Right Lane
|
||||||
|
tile.road.14.desc=Thick White Line
|
||||||
|
tile.road.15.desc=White Outlined Road
|
||||||
|
tile.road.16.desc=Passing Lane - East
|
||||||
|
tile.road.17.desc=Passing Lane - North
|
||||||
|
tile.road.18.desc=Passing Lane - South
|
||||||
|
tile.road.19.desc=Passing Lane - West
|
||||||
|
tile.road.20.desc=Double Yellow Lines With Reflectors
|
||||||
|
tile.road.21.desc=Solid Yellow Line - East/West
|
||||||
|
tile.road.22.desc=Solid Yellow Line - North/South
|
||||||
|
tile.road.23.desc=Converging Lane Marking
|
||||||
|
tile.road.24.desc=White Painted Asphalt
|
||||||
|
tile.road.25.desc=Yellow Painted Asphalt
|
||||||
|
tile.road.26.desc=Gravel Road
|
||||||
|
tile.road.27.desc=Solid White Line - North/South
|
||||||
|
tile.road.28.desc=Solid White Line - East/West
|
||||||
|
tile.road.29.desc=Weathered Asphalt
|
||||||
|
tile.road.30.desc=Weathering Asphalt
|
||||||
|
tile.road.31.desc=Overgrown Dirt Road
|
||||||
|
|
||||||
tile.chisel.amber.name=Block of Amber
|
tile.chisel.amber.name=Block of Amber
|
||||||
tile.chisel.bloodBrick.name=Bloodstone Brick
|
tile.chisel.bloodBrick.name=Bloodstone Brick
|
||||||
|
|
||||||
|
tile.chisel.boneBlock.name=Bone Block
|
||||||
|
tile.chisel.calciteBlock.name=Calcite
|
||||||
|
tile.chisel.flintBlock.name=Flint Block
|
||||||
|
tile.chisel.sunstoneBlock.name=Sunstone
|
||||||
|
tile.chisel.moonstoneBlock.name=Moonstone
|
||||||
|
tile.chisel.sunstoneBlock.name=Sunstone
|
||||||
|
tile.chisel.entwineBlock.name=Pearlescent Ender
|
||||||
|
tile.chisel.oracleBlock.name=Psionic Stone
|
||||||
|
tile.chisel.algalBlock.name=Algae Stone
|
||||||
|
tile.chisel.cerebralBlock.name=Cerebral Stone
|
||||||
|
tile.chisel.nether_brassBlock.name=Nether Brass
|
||||||
|
tile.chisel.esoterrackBlock.name=Esoterrack
|
||||||
|
tile.chisel.wardstoneBlock.name=Wardstone
|
||||||
|
tile.chisel.olivestoneBlock.name=Dunite
|
||||||
|
tile.chisel.visceraBlock.name=Viscera
|
||||||
|
tile.chisel.abyssalineBlock.name=Abyssalline
|
||||||
|
tile.chisel.hadalineBlock.name=Hadalline
|
||||||
|
|
||||||
|
tile.bone_block.0.desc=Architect's Bone
|
||||||
|
tile.bone_block.1.desc=Bone Bricks
|
||||||
|
tile.bone_block.2.desc=Bone Pillar
|
||||||
|
tile.bone_block.3.desc=Skull
|
||||||
|
tile.bone_block.4.desc=Withered Bone Block
|
||||||
|
tile.bone_block.5.desc=Withered Bone Bricks
|
||||||
|
tile.bone_block.6.desc=Withered Bone Pillar
|
||||||
|
tile.bone_block.7.desc=Withered Skull
|
||||||
|
tile.bone_block.8.desc=Evil Scary Glowing Withered Skull
|
||||||
|
tile.bone_block.9.desc=Modern Bone Block
|
||||||
|
|
||||||
|
tile.calcite.0.desc=Calcite Bricks
|
||||||
|
tile.calcite.1.desc=Calcite Pillar
|
||||||
|
tile.calcite.2.desc=Chiseled Calcite
|
||||||
|
|
||||||
|
tile.flint.0.desc=Block of Flint
|
||||||
|
tile.flint.1.desc=Chiseled Flint
|
||||||
|
tile.flint.2.desc=Flint Pillar
|
||||||
|
tile.flint.3.desc=Flint Tiles
|
||||||
|
tile.flint.4.desc=Smooth Flint Block
|
||||||
|
|
||||||
|
tile.sunstone.0.desc=Sunmetal
|
||||||
|
tile.sunstone.1.desc=Sunmetal Pillar
|
||||||
|
tile.sunstone.2.desc=Chiseled Sunmetal
|
||||||
|
tile.sunstone.3.desc=Extinguished Sunstone
|
||||||
|
tile.sunstone.4.desc=Solar Sunstone
|
||||||
|
tile.sunstone.5.desc=Eclipsed Sunstone
|
||||||
|
|
||||||
|
tile.moonstone.0.desc=New Moonstone
|
||||||
|
tile.moonstone.1.desc=Crescent Moonstone
|
||||||
|
tile.moonstone.2.desc=Full Moonstone
|
||||||
|
tile.moonstone.3.desc=Moonshale
|
||||||
|
tile.moonstone.4.desc=Moonshale Bricks
|
||||||
|
tile.moonstone.5.desc=Cracked Moonshale Bricks
|
||||||
|
tile.moonstone.6.desc=Moonshale Flagstone
|
||||||
|
tile.moonstone.7.desc=Chiseled Moonstone
|
||||||
|
tile.moonstone.8.desc=Bordered Moonstone
|
||||||
|
tile.moonstone.9.desc=Cratered Moonshale
|
||||||
|
tile.moonstone.10.desc=Nebulite
|
||||||
|
tile.moonstone.11.desc=Polished Nebulite
|
||||||
|
|
||||||
|
tile.entwine.0.desc=Block of Ender Pearl
|
||||||
|
tile.entwine.1.desc=Pearlescent Ender Block
|
||||||
|
tile.entwine.2.desc=Chiseled Pearlescent Ender
|
||||||
|
tile.entwine.3.desc=Pearlescent Ender Pillar
|
||||||
|
|
||||||
|
tile.oracle.0.desc=Psionic Block
|
||||||
|
tile.oracle.1.desc=Framed Psionic Block
|
||||||
|
tile.oracle.2.desc=Psionic Bricks
|
||||||
|
tile.oracle.3.desc=Dark Psionic Bricks
|
||||||
|
tile.oracle.4.desc=Psionic Pillar
|
||||||
|
tile.oracle.5.desc=Psionic Tiles
|
||||||
|
|
||||||
|
tile.algal.0.desc=Algal Bricks
|
||||||
|
tile.algal.1.desc=Chiseled Algal Bricks
|
||||||
|
tile.algal.2.desc=Cracked Algal Bricks
|
||||||
|
tile.algal.3.desc=Encrusted Algal Bricks
|
||||||
|
|
||||||
|
tile.cerebral.0.desc=Cerebral Stone
|
||||||
|
tile.cerebral.1.desc=Frontal Tiles
|
||||||
|
tile.cerebral.2.desc=Parietal Tiles
|
||||||
|
tile.cerebral.3.desc=Temporal Tiles
|
||||||
|
tile.cerebral.4.desc=Occipital Pillar
|
||||||
|
|
||||||
|
tile.nether_brass.0.desc=Nether Brass
|
||||||
|
tile.nether_brass.1.desc=Cut Nether Brass
|
||||||
|
tile.nether_brass.2.desc=Nether Brass Pillar
|
||||||
|
tile.nether_brass.3.desc=Nether Brass Slabs
|
||||||
|
tile.nether_brass.4.desc=Smooth Nether Brass
|
||||||
|
|
||||||
|
tile.esoterrack.0.desc=Esoterrack
|
||||||
|
tile.esoterrack.1.desc=Esoterrack Bricks
|
||||||
|
tile.esoterrack.2.desc=Esoterrack Pillar
|
||||||
|
tile.esoterrack.3.desc=Variant Esoterrack
|
||||||
|
|
||||||
|
tile.wardstone.0.desc=Wardstone
|
||||||
|
tile.wardstone.1.desc=Warded Bricks
|
||||||
|
tile.wardstone.2.desc=Warded Pillar
|
||||||
|
tile.wardstone.3.desc=Warded Slabs
|
||||||
|
tile.wardstone.4.desc=Chiseled Wardstone
|
||||||
|
tile.wardstone.5.desc=Warded Circle
|
||||||
|
|
||||||
|
tile.olivestone.0.desc=Chiseled Dunite
|
||||||
|
tile.olivestone.1.desc=Cracked Dunite Bricks
|
||||||
|
tile.olivestone.2.desc=Cracked Dunite Tiles
|
||||||
|
tile.olivestone.3.desc=Gilded Dunite
|
||||||
|
tile.olivestone.4.desc=Dunite Bricks
|
||||||
|
tile.olivestone.5.desc=Dunite Pillar
|
||||||
|
tile.olivestone.6.desc=Dunite Tiles
|
||||||
|
tile.olivestone.7.desc=Serpentinized Dunite
|
||||||
|
|
||||||
|
tile.viscera.0.desc=Entrails
|
||||||
|
tile.viscera.1.desc=Block of Rotten Flesh
|
||||||
|
tile.viscera.2.desc=Salmon Log
|
||||||
|
tile.viscera.3.desc=Cod Log
|
||||||
|
|
||||||
|
tile.abyssaline.0.desc=Abyssaline Bricks
|
||||||
|
tile.abyssaline.1.desc=Charged Abyssaline Bricks
|
||||||
|
tile.abyssaline.2.desc=Abyssaline Pillar
|
||||||
|
tile.abyssaline.3.desc=Charged Abyssaline Pillar
|
||||||
|
tile.abyssaline.4.desc=Abyssalline Chevrons
|
||||||
|
tile.abyssaline.5.desc=Charged Abyssalline Chevrons
|
||||||
|
tile.abyssaline.6.desc=Abyssaline Tiles
|
||||||
|
tile.abyssaline.7.desc=Charged Abyssaline Tiles
|
||||||
|
tile.abyssaline.8.desc=Abyssaline Plating
|
||||||
|
tile.abyssaline.9.desc=Charged Abyssaline Plating
|
||||||
|
tile.abyssaline.10.desc=Chiseled Abyssaline Bricks
|
||||||
|
|
||||||
|
tile.hadaline.0.desc=Hadaline Bricks
|
||||||
|
tile.hadaline.1.desc=Charged Hadaline Bricks
|
||||||
|
tile.hadaline.2.desc=Hadaline Pillar
|
||||||
|
tile.hadaline.3.desc=Charged Hadaline Pillar
|
||||||
|
tile.hadaline.4.desc=Hadalline Chevrons
|
||||||
|
tile.hadaline.5.desc=Charged Hadalline Chevrons
|
||||||
|
tile.hadaline.6.desc=Hadaline Tiles
|
||||||
|
tile.hadaline.7.desc=Charged Hadaline Tiles
|
||||||
|
tile.hadaline.8.desc=Hadaline Plating
|
||||||
|
tile.hadaline.9.desc=Charged Hadaline Plating
|
||||||
|
tile.hadaline.10.desc=Chiseled Hadaline Bricks
|
||||||
|
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 288 B |
|
After Width: | Height: | Size: 252 B |
|
After Width: | Height: | Size: 305 B |
|
After Width: | Height: | Size: 333 B |
|
After Width: | Height: | Size: 323 B |
|
After Width: | Height: | Size: 240 B |
|
After Width: | Height: | Size: 328 B |
|
After Width: | Height: | Size: 282 B |
|
After Width: | Height: | Size: 336 B |
|
After Width: | Height: | Size: 288 B |
|
After Width: | Height: | Size: 305 B |
|
After Width: | Height: | Size: 317 B |
|
After Width: | Height: | Size: 300 B |
|
After Width: | Height: | Size: 325 B |
|
After Width: | Height: | Size: 253 B |
|
After Width: | Height: | Size: 243 B |
|
After Width: | Height: | Size: 300 B |
|
After Width: | Height: | Size: 279 B |
|
After Width: | Height: | Size: 304 B |
|
After Width: | Height: | Size: 329 B |
|
After Width: | Height: | Size: 284 B |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.9 KiB |