-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Added links and unfinished chemistry stuff
- Loading branch information
1 parent
54ce8f0
commit d263b4c
Showing
64 changed files
with
1,540 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...assunshine/thework/rendering/blockentities/chemistry/ChemistrySetBlockEntityRenderer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package cassunshine.thework.rendering.blockentities.chemistry; | ||
|
||
import cassunshine.thework.blockentities.chemistry.ChemistrySetBlockEntity; | ||
import net.minecraft.client.render.VertexConsumerProvider; | ||
import net.minecraft.client.render.block.entity.BlockEntityRenderer; | ||
import net.minecraft.client.render.block.entity.BlockEntityRendererFactory; | ||
import net.minecraft.client.util.math.MatrixStack; | ||
|
||
public class ChemistrySetBlockEntityRenderer implements BlockEntityRenderer<ChemistrySetBlockEntity> { | ||
|
||
public ChemistrySetBlockEntityRenderer(BlockEntityRendererFactory.Context context) { | ||
|
||
} | ||
|
||
@Override | ||
public void render(ChemistrySetBlockEntity entity, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay) { | ||
|
||
} | ||
} |
90 changes: 90 additions & 0 deletions
90
src/client/java/cassunshine/thework/rendering/model/ChemistrySetModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
package cassunshine.thework.rendering.model; | ||
|
||
import cassunshine.thework.TheWorkMod; | ||
import net.fabricmc.fabric.api.renderer.v1.model.FabricBakedModel; | ||
import net.fabricmc.fabric.api.renderer.v1.render.RenderContext; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.client.render.model.*; | ||
import net.minecraft.client.render.model.json.ModelOverrideList; | ||
import net.minecraft.client.render.model.json.ModelTransformation; | ||
import net.minecraft.client.texture.Sprite; | ||
import net.minecraft.client.util.SpriteIdentifier; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.util.math.Direction; | ||
import net.minecraft.util.math.random.Random; | ||
import net.minecraft.world.BlockRenderView; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
import java.util.function.Function; | ||
import java.util.function.Supplier; | ||
|
||
public class ChemistrySetModel implements UnbakedModel, BakedModel, FabricBakedModel { | ||
@Override | ||
public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction face, Random random) { | ||
return List.of(); | ||
} | ||
|
||
@Override | ||
public boolean useAmbientOcclusion() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean hasDepth() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean isSideLit() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean isBuiltin() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public Sprite getParticleSprite() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public ModelTransformation getTransformation() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public ModelOverrideList getOverrides() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Collection<Identifier> getModelDependencies() { | ||
return List.of(new Identifier(TheWorkMod.ModID, "block/evaporator")); | ||
} | ||
|
||
@Override | ||
public void setParents(Function<Identifier, UnbakedModel> modelLoader) { | ||
|
||
} | ||
|
||
@Override | ||
public boolean isVanillaAdapter() { | ||
return false; | ||
} | ||
|
||
@Nullable | ||
@Override | ||
public BakedModel bake(Baker baker, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings rotationContainer, Identifier modelId) { | ||
return this; | ||
} | ||
|
||
@Override | ||
public void emitBlockQuads(BlockRenderView blockView, BlockState state, BlockPos pos, Supplier<Random> randomSupplier, RenderContext context) { | ||
TheWorkMod.LOGGER.error("BLEH"); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/client/java/cassunshine/thework/rendering/model/TheWorkModelPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package cassunshine.thework.rendering.model; | ||
|
||
import cassunshine.thework.TheWorkMod; | ||
import net.fabricmc.fabric.api.client.model.loading.v1.ModelLoadingPlugin; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class TheWorkModelPlugin implements ModelLoadingPlugin { | ||
|
||
public static final ChemistrySetModel CHEMISTRY_SET_MODEL = new ChemistrySetModel(); | ||
public static final Identifier CHEMISTRY_SET_MODEL_ID = new Identifier(TheWorkMod.ModID, "block/chemistry_set"); | ||
|
||
@Override | ||
public void onInitializeModelLoader(Context pluginContext) { | ||
/*pluginContext.modifyModelOnLoad().register((original, context) -> { | ||
if (context.id().equals(CHEMISTRY_SET_MODEL_ID)) | ||
return CHEMISTRY_SET_MODEL; | ||
return original; | ||
});*/ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/client/resources/assets/thework/blockstates/chemistry_set.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"variants": { | ||
"" : { | ||
"model" : "thework:block/chemistry_set" | ||
} | ||
} | ||
} |
File renamed without changes.
113 changes: 113 additions & 0 deletions
113
src/client/resources/assets/thework/models/block/evaporator.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"credit": "Made with Blockbench", | ||
"elements": [ | ||
{ | ||
"name": "bottle", | ||
"from": [3, 2, 3], | ||
"to": [13, 8, 13], | ||
"color": 1, | ||
"faces": { | ||
"north": {"uv": [0, 0, 10, 6], "texture": "#missing"}, | ||
"east": {"uv": [0, 0, 10, 6], "texture": "#missing"}, | ||
"south": {"uv": [0, 0, 10, 6], "texture": "#missing"}, | ||
"west": {"uv": [0, 0, 10, 6], "texture": "#missing"}, | ||
"up": {"uv": [0, 0, 10, 10], "texture": "#missing"}, | ||
"down": {"uv": [0, 0, 10, 10], "texture": "#missing"} | ||
} | ||
}, | ||
{ | ||
"name": "tube 1", | ||
"from": [7, 8, 7], | ||
"to": [9, 12, 9], | ||
"color": 3, | ||
"faces": { | ||
"north": {"uv": [0, 0, 2, 4], "texture": "#missing"}, | ||
"east": {"uv": [0, 0, 2, 4], "texture": "#missing"}, | ||
"south": {"uv": [0, 0, 2, 4], "texture": "#missing"}, | ||
"west": {"uv": [0, 0, 2, 4], "texture": "#missing"}, | ||
"up": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"down": {"uv": [0, 0, 2, 2], "texture": "#missing"} | ||
} | ||
}, | ||
{ | ||
"name": "tube 2", | ||
"from": [0, 2, 7], | ||
"to": [2, 10, 9], | ||
"color": 3, | ||
"faces": { | ||
"north": {"uv": [0, 0, 2, 8], "texture": "#missing"}, | ||
"east": {"uv": [0, 0, 2, 8], "texture": "#missing"}, | ||
"south": {"uv": [0, 0, 2, 8], "texture": "#missing"}, | ||
"west": {"uv": [0, 0, 2, 8], "texture": "#missing"}, | ||
"up": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"down": {"uv": [0, 0, 2, 2], "texture": "#missing"} | ||
} | ||
}, | ||
{ | ||
"name": "tube 2", | ||
"from": [0, 10, 7], | ||
"to": [7, 12, 9], | ||
"color": 3, | ||
"faces": { | ||
"north": {"uv": [0, 0, 7, 2], "texture": "#missing"}, | ||
"east": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"south": {"uv": [0, 0, 7, 2], "texture": "#missing"}, | ||
"west": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"up": {"uv": [0, 0, 7, 2], "texture": "#missing"}, | ||
"down": {"uv": [0, 0, 7, 2], "texture": "#missing"} | ||
} | ||
}, | ||
{ | ||
"from": [3, 0, 3], | ||
"to": [5, 2, 5], | ||
"color": 3, | ||
"faces": { | ||
"north": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"east": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"south": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"west": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"up": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"down": {"uv": [0, 0, 2, 2], "texture": "#missing"} | ||
} | ||
}, | ||
{ | ||
"from": [11, 0, 3], | ||
"to": [13, 2, 5], | ||
"color": 3, | ||
"faces": { | ||
"north": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"east": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"south": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"west": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"up": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"down": {"uv": [0, 0, 2, 2], "texture": "#missing"} | ||
} | ||
}, | ||
{ | ||
"from": [11, 0, 11], | ||
"to": [13, 2, 13], | ||
"color": 3, | ||
"faces": { | ||
"north": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"east": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"south": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"west": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"up": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"down": {"uv": [0, 0, 2, 2], "texture": "#missing"} | ||
} | ||
}, | ||
{ | ||
"from": [3, 0, 11], | ||
"to": [5, 2, 13], | ||
"color": 3, | ||
"faces": { | ||
"north": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"east": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"south": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"west": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"up": {"uv": [0, 0, 2, 2], "texture": "#missing"}, | ||
"down": {"uv": [0, 0, 2, 2], "texture": "#missing"} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.