Skip to content

Commit

Permalink
Merge remote-tracking branch 'create/mc1.19/dev' into mc1.19/fabric/dev
Browse files Browse the repository at this point in the history
# Conflicts:
#	gradle.properties
#	src/generated/resources/.cache/8e794e243511ea3d808ffb90a97ef5ee71d8d5f9
#	src/generated/resources/.cache/b256105d8411632b0d585496ea8944a751a08034
#	src/main/java/com/simibubi/create/AllFluids.java
#	src/main/java/com/simibubi/create/AllTags.java
#	src/main/java/com/simibubi/create/compat/computercraft/implementation/ComputerBehaviour.java
#	src/main/java/com/simibubi/create/content/decoration/copycat/CopycatModel.java
#	src/main/java/com/simibubi/create/content/decoration/copycat/CopycatPanelModel.java
#	src/main/java/com/simibubi/create/content/equipment/armor/DivingHelmetItem.java
#	src/main/java/com/simibubi/create/content/equipment/armor/RemainingAirOverlay.java
#	src/main/java/com/simibubi/create/content/processing/basin/BasinBlockEntity.java
#	src/main/java/com/simibubi/create/content/schematics/client/SchematicRenderer.java
#	src/main/java/com/simibubi/create/foundation/events/ClientEvents.java
#	src/main/java/com/simibubi/create/foundation/render/SuperByteBuffer.java
#	src/main/java/com/simibubi/create/infrastructure/gametest/tests/TestFluids.java
  • Loading branch information
TropheusJ committed Jul 8, 2023
2 parents ff09bda + 20fde55 commit 384b92c
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
],
"ingredients": [
{
"item": "hexcasting:akashic_log"
"item": "hexcasting:edified_log"
}
],
"processingTime": 50,
"results": [
{
"item": "hexcasting:akashic_log_stripped"
"item": "hexcasting:stripped_edified_log"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
],
"ingredients": [
{
"item": "hexcasting:akashic_wood"
"item": "hexcasting:edified_wood"
}
],
"processingTime": 50,
"results": [
{
"item": "hexcasting:akashic_wood_stripped"
"item": "hexcasting:stripped_edified_wood"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
],
"ingredients": [
{
"item": "hexcasting:akashic_log_stripped"
"item": "hexcasting:stripped_edified_log"
}
],
"processingTime": 50,
"results": [
{
"count": 6,
"item": "hexcasting:akashic_planks"
"item": "hexcasting:edified_planks"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
],
"ingredients": [
{
"item": "hexcasting:akashic_wood_stripped"
"item": "hexcasting:stripped_edified_wood"
}
],
"processingTime": 50,
"results": [
{
"count": 6,
"item": "hexcasting:akashic_planks"
"item": "hexcasting:edified_planks"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"replace": false,
"values": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"required": false
},
{
"id": "hexcasting:akashic_log_stripped",
"id": "hexcasting:stripped_akashic_log",
"required": false
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"required": false
},
{
"id": "hexcasting:akashic_wood_stripped",
"id": "hexcasting:stripped_akashic_wood",
"required": false
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.simibubi.create.content.equipment.armor;

import java.util.List;

import com.mojang.blaze3d.vertex.PoseStack;
import com.simibubi.create.AllItems;
import com.simibubi.create.foundation.gui.element.GuiGameElement;
Expand All @@ -14,8 +16,6 @@
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.GameType;

import java.util.List;

public class RemainingAirOverlay {
public static void render(PoseStack poseStack, int width, int height) {
Minecraft mc = Minecraft.getInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import com.jozufozu.flywheel.fabric.model.LayerFilteringBakedModel;
import com.jozufozu.flywheel.util.Pair;
import com.mojang.blaze3d.vertex.BufferBuilder;
import com.mojang.blaze3d.vertex.BufferBuilder.RenderedBuffer;
import com.mojang.blaze3d.vertex.DefaultVertexFormat;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexFormat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class CuttingRecipeGen extends ProcessingRecipeGen {
FA = cuttingCompat(Mods.FA, "cherrywood", "mysterywood"),

// Hexcasting (stripped is a suffix here)
HEX = cuttingCompat(Mods.HEX, "akashic"),
HEX = cuttingCompat(Mods.HEX, "edified"),

// Integrated Dynamics (stripped is a suffix here also)
ID = cuttingCompat(Mods.ID, "menril"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public enum Mods {
BSK("blue_skies"),
BTN("botania", b -> b.omitWoodSuffix()),
FA("forbidden_arcanus", b -> b.omitWoodSuffix()),
HEX("hexcasting", b -> b.strippedWoodIsSuffix()),
HEX("hexcasting"),
ID("integrateddynamics", b -> b.strippedWoodIsSuffix()),
BYG("byg"),
SG("silentgear"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.mojang.blaze3d.shaders.FogShape;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.PoseStack;
import com.simibubi.create.AllFluids;
import com.simibubi.create.AllItems;
import com.simibubi.create.AllKeys;
import com.simibubi.create.AllPackets;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import com.jozufozu.flywheel.fabric.model.LayerFilteringBakedModel;
import com.jozufozu.flywheel.util.transform.TransformStack;
import com.mojang.blaze3d.vertex.BufferBuilder;
import com.mojang.blaze3d.vertex.BufferBuilder.RenderedBuffer;
import com.mojang.blaze3d.vertex.DefaultVertexFormat;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.SheetedDecalTextureGenerator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package com.simibubi.create.foundation.render;

import java.nio.ByteBuffer;
import java.util.function.IntPredicate;

import com.jozufozu.flywheel.api.vertex.ShadedVertexList;
import com.jozufozu.flywheel.api.vertex.VertexList;
import com.jozufozu.flywheel.backend.ShadersModHandler;
import com.jozufozu.flywheel.core.model.ShadeSeparatedBufferedData;
import com.jozufozu.flywheel.core.vertex.BlockVertexList;
Expand Down Expand Up @@ -32,7 +36,8 @@

public class SuperByteBuffer implements Transform<SuperByteBuffer>, TStack<SuperByteBuffer> {

private final ShadedVertexList template;
private final VertexList template;
private final IntPredicate shadedPredicate;

// Vertex Position
private final PoseStack transforms = new PoseStack();
Expand Down Expand Up @@ -166,7 +171,7 @@ public void renderInto(PoseStack input, VertexConsumer builder) {
if (disableDiffuseMult) {
builder.color(r, g, b, a);
} else {
float instanceDiffuse = diffuseCalculator.getDiffuse(nx, ny, nz, template.isShaded(i));
float instanceDiffuse = diffuseCalculator.getDiffuse(nx, ny, nz, shadedPredicate.test(i));
int colorR = transformColor(r, instanceDiffuse);
int colorG = transformColor(g, instanceDiffuse);
int colorB = transformColor(b, instanceDiffuse);
Expand Down

0 comments on commit 384b92c

Please sign in to comment.