mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-25 06:34:35 +00:00
Compare commits
15
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a6076d9cd | ||
|
|
39b96c5ec0 | ||
|
|
d81198fa0a | ||
|
|
5b169882bc | ||
|
|
30ad41cc57 | ||
|
|
4588690780 | ||
|
|
a00cd59d4c | ||
|
|
e5f830ebb1 | ||
|
|
6fc3505ae7 | ||
|
|
51883263d7 | ||
|
|
97fd3003e3 | ||
|
|
14f6a09b9a | ||
|
|
40144a0fa5 | ||
|
|
4ce0134bed | ||
|
|
21caa10d34 |
No files matched your search
+5
-5
@@ -1,14 +1,14 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.3:dev")
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.66-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:ForgeMultipart:1.6.7:dev")
|
||||
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.7:dev")
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.8.21-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:ForgeMultipart:1.7.0:dev")
|
||||
|
||||
compileOnly("org.projectlombok:lombok:1.18.24")
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.24")
|
||||
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.8.12:dev") {
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.9.7:dev") {
|
||||
transitive = false
|
||||
}
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:WailaHarvestability:1.3.4-GTNH:dev")
|
||||
@@ -17,7 +17,7 @@ dependencies {
|
||||
transitive = false
|
||||
}
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:Angelica:1.0.0-beta53:api") {
|
||||
compileOnly("com.github.GTNewHorizons:Angelica:1.0.0-beta62:api") {
|
||||
transitive = false
|
||||
}
|
||||
}
|
||||
+3
-1
@@ -96,7 +96,9 @@ usesMixinDebug = false
|
||||
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
|
||||
mixinPlugin =
|
||||
|
||||
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
|
||||
# Specify the package that contains all of your Mixins. The package must exist or
|
||||
# the build will fail. If you have a package property defined in your mixins.<modid>.json,
|
||||
# it must match with this or the build will fail.
|
||||
mixinsPackage =
|
||||
|
||||
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.41'
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.46'
|
||||
}
|
||||
|
||||
|
||||
@@ -3501,8 +3501,10 @@ public enum Features {
|
||||
// "Stone snake block head");
|
||||
// LanguageRegistry.addName(new ItemStack(snakestone, 1, 13),
|
||||
// "Stone snake block body");
|
||||
Carving.chisel.addVariation("stonebrick", stone_snakestone, 1, 100);
|
||||
Carving.chisel.addVariation("stonebrick", stone_snakestone, 13, 101);
|
||||
|
||||
Carving.chisel.addVariation("stonebricksmooth", stone_snakestone, 1, 20);
|
||||
Carving.chisel.addVariation("stonebricksmooth", stone_snakestone, 13, 21);
|
||||
|
||||
// Carving.chisel.registerOre("snakestoneStone", "snakestoneStone");
|
||||
}
|
||||
},
|
||||
@@ -4062,23 +4064,25 @@ public enum Features {
|
||||
.setHardness(5.0F)
|
||||
.setResistance(10.0F);
|
||||
voidstone2.carverHelper
|
||||
.addVariation("tile.voidstone.0.desc", 0, new SubmapManagerVoidstone("voidstone/animated/raw", 0));
|
||||
voidstone2.carverHelper
|
||||
.addVariation("tile.voidstone.1.desc", 1, new SubmapManagerVoidstone("voidstone/animated/quarters", 1));
|
||||
voidstone2.carverHelper
|
||||
.addVariation("tile.voidstone.2.desc", 2, new SubmapManagerVoidstone("voidstone/animated/smooth", 2));
|
||||
voidstone2.carverHelper
|
||||
.addVariation("tile.voidstone.3.desc", 3, new SubmapManagerVoidstone("voidstone/animated/skulls", 3));
|
||||
voidstone2.carverHelper
|
||||
.addVariation("tile.voidstone.4.desc", 4, new SubmapManagerVoidstone("voidstone/animated/rune", 4));
|
||||
.addVariation("tile.voidstone2.0.desc", 0, new SubmapManagerVoidstone("voidstone/animated/raw", 0));
|
||||
voidstone2.carverHelper.addVariation(
|
||||
"tile.voidstone.5.desc",
|
||||
"tile.voidstone2.1.desc",
|
||||
1,
|
||||
new SubmapManagerVoidstone("voidstone/animated/quarters", 1));
|
||||
voidstone2.carverHelper
|
||||
.addVariation("tile.voidstone2.2.desc", 2, new SubmapManagerVoidstone("voidstone/animated/smooth", 2));
|
||||
voidstone2.carverHelper
|
||||
.addVariation("tile.voidstone2.3.desc", 3, new SubmapManagerVoidstone("voidstone/animated/skulls", 3));
|
||||
voidstone2.carverHelper
|
||||
.addVariation("tile.voidstone2.4.desc", 4, new SubmapManagerVoidstone("voidstone/animated/rune", 4));
|
||||
voidstone2.carverHelper.addVariation(
|
||||
"tile.voidstone2.5.desc",
|
||||
5,
|
||||
new SubmapManagerVoidstone("voidstone/animated/metalborder", 5));
|
||||
voidstone2.carverHelper
|
||||
.addVariation("tile.voidstone.6.desc", 6, new SubmapManagerVoidstone("voidstone/animated/eye", 6));
|
||||
.addVariation("tile.voidstone2.6.desc", 6, new SubmapManagerVoidstone("voidstone/animated/eye", 6));
|
||||
voidstone2.carverHelper
|
||||
.addVariation("tile.voidstone.7.desc", 7, new SubmapManagerVoidstone("voidstone/animated/bevel", 7));
|
||||
.addVariation("tile.voidstone2.7.desc", 7, new SubmapManagerVoidstone("voidstone/animated/bevel", 7));
|
||||
|
||||
voidstone2.carverHelper.registerAll(voidstone2, "voidstone2");
|
||||
Carving.chisel.registerOre("voidstone2", "voidstone2");
|
||||
|
||||
@@ -75,7 +75,13 @@ public class SubmapManagerAntiblock extends SubmapManagerBase {
|
||||
};
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private RenderBlocksCTMFullbright rb;
|
||||
private static ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal;
|
||||
|
||||
private static void initStatics() {
|
||||
if (renderBlocksThreadLocal == null) {
|
||||
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTMFullbright::new);
|
||||
}
|
||||
}
|
||||
|
||||
private String color;
|
||||
private TextureSubmap submap, submapSmall;
|
||||
@@ -99,9 +105,8 @@ public class SubmapManagerAntiblock extends SubmapManagerBase {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||
if (rb == null) {
|
||||
rb = new RenderBlocksCTMFullbright();
|
||||
}
|
||||
initStatics();
|
||||
RenderBlocksCTMFullbright rb = renderBlocksThreadLocal.get();
|
||||
rb.setRenderBoundsFromBlock(block);
|
||||
rb.submap = submap;
|
||||
rb.submapSmall = submapSmall;
|
||||
|
||||
@@ -14,7 +14,13 @@ import team.chisel.ctmlib.TextureSubmap;
|
||||
public class SubmapManagerCarpetFloor extends SubmapManagerBase {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private RenderBlocksCTM rb;
|
||||
private static ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal;
|
||||
|
||||
private static void initStatics() {
|
||||
if (renderBlocksThreadLocal == null) {
|
||||
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTM::new);
|
||||
}
|
||||
}
|
||||
|
||||
private TextureSubmap submap;
|
||||
private TextureSubmap submapSmall;
|
||||
@@ -45,9 +51,8 @@ public class SubmapManagerCarpetFloor extends SubmapManagerBase {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||
if (rb == null) {
|
||||
rb = new RenderBlocksCTM();
|
||||
}
|
||||
initStatics();
|
||||
RenderBlocksCTM rb = renderBlocksThreadLocal.get();
|
||||
rb.setRenderBoundsFromBlock(block);
|
||||
rb.submap = submap;
|
||||
rb.submapSmall = submapSmall;
|
||||
|
||||
@@ -99,7 +99,13 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private RenderBlocksCTM rb;
|
||||
private static ThreadLocal<RenderBlocksCombinedCTM> renderBlocksThreadLocal;
|
||||
|
||||
private static void initStatics() {
|
||||
if (renderBlocksThreadLocal == null) {
|
||||
renderBlocksThreadLocal = new ThreadLocal<>();
|
||||
}
|
||||
}
|
||||
|
||||
private TextureSubmap submap, smallSubmap;
|
||||
private int size;
|
||||
@@ -133,8 +139,11 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||
initStatics();
|
||||
RenderBlocksCombinedCTM rb = renderBlocksThreadLocal.get();
|
||||
if (rb == null) {
|
||||
rb = new RenderBlocksCombinedCTM();
|
||||
renderBlocksThreadLocal.set(rb);
|
||||
}
|
||||
rb.setRenderBoundsFromBlock(block);
|
||||
return rb;
|
||||
|
||||
@@ -16,7 +16,13 @@ import team.chisel.ctmlib.TextureSubmap;
|
||||
public class SubmapManagerSlab implements ISubmapManager {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private RenderBlocksCTM rb;
|
||||
private static ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal;
|
||||
|
||||
private static void initStatics() {
|
||||
if (renderBlocksThreadLocal == null) {
|
||||
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTM::new);
|
||||
}
|
||||
}
|
||||
|
||||
private TextureSubmap submap;
|
||||
private TextureSubmap submapSmall;
|
||||
@@ -49,9 +55,8 @@ public class SubmapManagerSlab implements ISubmapManager {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||
if (rb == null) {
|
||||
rb = new RenderBlocksCTM();
|
||||
}
|
||||
initStatics();
|
||||
RenderBlocksCTM rb = renderBlocksThreadLocal.get();
|
||||
rb.setRenderBoundsFromBlock(block);
|
||||
rb.submap = submap;
|
||||
rb.submapSmall = submapSmall;
|
||||
|
||||
@@ -48,7 +48,14 @@ public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
|
||||
}
|
||||
};
|
||||
|
||||
private RenderBlocksCTMFullbright renderBlocksFullbright;
|
||||
@SideOnly(Side.CLIENT)
|
||||
private static ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal;
|
||||
|
||||
private static void initStatics() {
|
||||
if (renderBlocksThreadLocal == null) {
|
||||
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTMFullbright::new);
|
||||
}
|
||||
}
|
||||
|
||||
private String color;
|
||||
private MaterialType materialType;
|
||||
@@ -76,9 +83,8 @@ public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||
if (renderBlocksFullbright == null) {
|
||||
renderBlocksFullbright = new RenderBlocksCTMFullbright();
|
||||
}
|
||||
initStatics();
|
||||
RenderBlocksCTMFullbright renderBlocksFullbright = renderBlocksThreadLocal.get();
|
||||
renderBlocksFullbright.setRenderBoundsFromBlock(block);
|
||||
renderBlocksFullbright.submap = submap;
|
||||
renderBlocksFullbright.submapSmall = submapSmall;
|
||||
|
||||
@@ -26,7 +26,7 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
|
||||
@Override
|
||||
public void renderFaceXNeg(Block block, double x, double y, double z, IIcon icon) {
|
||||
super.renderFaceXNeg(block, x, y, z, icon);
|
||||
renderMinX += 0.001;
|
||||
renderMinX += 0.005;
|
||||
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.WEST.ordinal()));
|
||||
super.renderFaceXNeg(block, x, y, z, null);
|
||||
clearOverrideBlockTexture();
|
||||
@@ -36,7 +36,7 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
|
||||
public void renderFaceXPos(Block block, double x, double y, double z, IIcon icon) {
|
||||
super.renderFaceXPos(block, x, y, z, icon);
|
||||
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.EAST.ordinal()));
|
||||
renderMaxX -= 0.001;
|
||||
renderMaxX -= 0.005;
|
||||
super.renderFaceXPos(block, x, y, z, null);
|
||||
clearOverrideBlockTexture();
|
||||
}
|
||||
@@ -45,7 +45,7 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
|
||||
public void renderFaceYNeg(Block block, double x, double y, double z, IIcon icon) {
|
||||
super.renderFaceYNeg(block, x, y, z, icon);
|
||||
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.DOWN.ordinal()));
|
||||
renderMinY += 0.001;
|
||||
renderMinY += 0.005;
|
||||
super.renderFaceYNeg(block, x, y, z, null);
|
||||
clearOverrideBlockTexture();
|
||||
}
|
||||
@@ -54,7 +54,7 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
|
||||
public void renderFaceYPos(Block block, double x, double y, double z, IIcon icon) {
|
||||
super.renderFaceYPos(block, x, y, z, icon);
|
||||
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.UP.ordinal()));
|
||||
renderMaxY -= 0.001;
|
||||
renderMaxY -= 0.005;
|
||||
super.renderFaceYPos(block, x, y, z, null);
|
||||
clearOverrideBlockTexture();
|
||||
}
|
||||
@@ -63,7 +63,7 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
|
||||
public void renderFaceZNeg(Block block, double x, double y, double z, IIcon icon) {
|
||||
super.renderFaceZNeg(block, x, y, z, icon);
|
||||
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.NORTH.ordinal()));
|
||||
renderMinZ += 0.001;
|
||||
renderMinZ += 0.005;
|
||||
super.renderFaceZNeg(block, x, y, z, null);
|
||||
clearOverrideBlockTexture();
|
||||
}
|
||||
@@ -72,14 +72,24 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
|
||||
public void renderFaceZPos(Block block, double x, double y, double z, IIcon icon) {
|
||||
super.renderFaceZPos(block, x, y, z, icon);
|
||||
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.SOUTH.ordinal()));
|
||||
renderMaxZ -= 0.001;
|
||||
renderMaxZ -= 0.005;
|
||||
super.renderFaceZPos(block, x, y, z, null);
|
||||
clearOverrideBlockTexture();
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
this.submap = null;
|
||||
}
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private RenderBlocksVoidstone rb;
|
||||
private static ThreadLocal<RenderBlocksVoidstone> renderBlocksThreadLocal;
|
||||
|
||||
private static void initStatics() {
|
||||
if (renderBlocksThreadLocal == null) {
|
||||
renderBlocksThreadLocal = new ThreadLocal<>();
|
||||
}
|
||||
}
|
||||
|
||||
private ISubmapManager overlay;
|
||||
private TextureSubmap base;
|
||||
@@ -123,9 +133,12 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||
initStatics();
|
||||
RenderBlocksVoidstone rb = renderBlocksThreadLocal.get();
|
||||
if (rb == null) {
|
||||
rb = new RenderBlocksVoidstone();
|
||||
}
|
||||
renderBlocksThreadLocal.set(rb);
|
||||
} else rb.reset();
|
||||
RenderBlocks ctx = overlay.createRenderContext(rendererOld, block, world);
|
||||
rb.setRenderBoundsFromBlock(block);
|
||||
if (ctx instanceof RenderBlocksCTM) {
|
||||
|
||||
Reference in new issue
Block a user