generated from NeoForgeMDKs/MDK-1.21-NeoGradle
-
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.
- Loading branch information
1 parent
a762635
commit 08ec792
Showing
38 changed files
with
891 additions
and
51 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
19 changes: 19 additions & 0 deletions
19
src/generated/resources/assets/nautec/blockstates/bacterial_analyzer.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,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "nautec:block/bacterial_analyzer", | ||
"y": 90 | ||
}, | ||
"facing=north": { | ||
"model": "nautec:block/bacterial_analyzer" | ||
}, | ||
"facing=south": { | ||
"model": "nautec:block/bacterial_analyzer", | ||
"y": 180 | ||
}, | ||
"facing=west": { | ||
"model": "nautec:block/bacterial_analyzer", | ||
"y": 270 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/generated/resources/assets/nautec/blockstates/bacterial_analyzer_top.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,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "nautec:block/bacterial_analyzer_top", | ||
"y": 90 | ||
}, | ||
"facing=north": { | ||
"model": "nautec:block/bacterial_analyzer_top" | ||
}, | ||
"facing=south": { | ||
"model": "nautec:block/bacterial_analyzer_top", | ||
"y": 180 | ||
}, | ||
"facing=west": { | ||
"model": "nautec:block/bacterial_analyzer_top", | ||
"y": 270 | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/generated/resources/assets/nautec/blockstates/bacterial_containment_shield.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": "nautec:block/bacterial_containment_shield" | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/generated/resources/assets/nautec/blockstates/bio_reactor.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,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "nautec:block/bio_reactor", | ||
"y": 90 | ||
}, | ||
"facing=north": { | ||
"model": "nautec:block/bio_reactor" | ||
}, | ||
"facing=south": { | ||
"model": "nautec:block/bio_reactor", | ||
"y": 180 | ||
}, | ||
"facing=west": { | ||
"model": "nautec:block/bio_reactor", | ||
"y": 270 | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/generated/resources/assets/nautec/models/block/bacterial_containment_shield.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,6 @@ | ||
{ | ||
"parent": "minecraft:block/cube_all", | ||
"textures": { | ||
"all": "nautec:block/bacterial_containment_shield" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/generated/resources/assets/nautec/models/block/bio_reactor.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 @@ | ||
{ | ||
"parent": "minecraft:block/cube_top", | ||
"textures": { | ||
"side": "nautec:block/polished_prismarine", | ||
"top": "nautec:block/bio_reactor_top" | ||
} | ||
} |
3 changes: 0 additions & 3 deletions
3
src/generated/resources/assets/nautec/models/item/bacterial_analyzer.json
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
src/generated/resources/assets/nautec/models/item/bacterial_containment_shield.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,3 @@ | ||
{ | ||
"parent": "nautec:block/bacterial_containment_shield" | ||
} |
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
20 changes: 20 additions & 0 deletions
20
src/main/java/com/portingdeadmods/nautec/api/client/renderer/blockentities/NTBERenderer.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 com.portingdeadmods.nautec.api.client.renderer.blockentities; | ||
|
||
import com.mojang.blaze3d.vertex.PoseStack; | ||
import net.minecraft.client.renderer.MultiBufferSource; | ||
import net.minecraft.client.renderer.blockentity.BlockEntityRenderer; | ||
import net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider; | ||
import net.minecraft.world.level.block.entity.BlockEntity; | ||
|
||
public abstract class NTBERenderer<T extends BlockEntity> implements BlockEntityRenderer<T> { | ||
protected final BlockEntityRendererProvider.Context context; | ||
|
||
public NTBERenderer(BlockEntityRendererProvider.Context context) { | ||
this.context = context; | ||
} | ||
|
||
@Override | ||
public void render(T blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay) { | ||
|
||
} | ||
} |
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
33 changes: 33 additions & 0 deletions
33
...com/portingdeadmods/nautec/client/renderer/blockentities/BacterialAnalyzerBERenderer.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,33 @@ | ||
package com.portingdeadmods.nautec.client.renderer.blockentities; | ||
|
||
import com.mojang.blaze3d.vertex.PoseStack; | ||
import com.mojang.math.Axis; | ||
import com.portingdeadmods.nautec.api.client.renderer.blockentities.NTBERenderer; | ||
import com.portingdeadmods.nautec.content.blockentities.BacterialAnalyzerBlockEntity; | ||
import com.portingdeadmods.nautec.content.blocks.BacterialAnalyzerBlock; | ||
import net.minecraft.client.renderer.MultiBufferSource; | ||
import net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider; | ||
import net.minecraft.world.item.ItemDisplayContext; | ||
import net.minecraft.world.item.ItemStack; | ||
|
||
public class BacterialAnalyzerBERenderer extends NTBERenderer<BacterialAnalyzerBlockEntity> { | ||
public BacterialAnalyzerBERenderer(BlockEntityRendererProvider.Context context) { | ||
super(context); | ||
} | ||
|
||
@Override | ||
public void render(BacterialAnalyzerBlockEntity blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay) { | ||
ItemStack stack = blockEntity.getItemHandler().getStackInSlot(0); | ||
|
||
poseStack.pushPose(); | ||
{ | ||
poseStack.translate(0.5, 1.14f, 0.5); | ||
poseStack.mulPose(Axis.YP.rotationDegrees(blockEntity.getBlockState().getValue(BacterialAnalyzerBlock.FACING).getOpposite().toYRot())); | ||
poseStack.mulPose(Axis.XP.rotationDegrees(90)); | ||
poseStack.scale(0.35f, 0.35f, 0.35f); | ||
context.getItemRenderer() | ||
.renderStatic(stack, ItemDisplayContext.FIXED, packedLight, packedOverlay, poseStack, bufferSource, blockEntity.getLevel(), 42); | ||
} | ||
poseStack.popPose(); | ||
} | ||
} |
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
Oops, something went wrong.