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
d1a24b5
commit 9f6d26e
Showing
21 changed files
with
256 additions
and
7 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
4 changes: 2 additions & 2 deletions
4
src/generated/resources/.cache/c622617f6fabf890a00b9275cd5f643584a8a2c8
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// 1.21.1 2024-12-15T20:55:07.97208459 Languages: en_us | ||
02e2bf78f797075e71df78423d05779abc093c05 assets/nautec/lang/en_us.json | ||
// 1.21.1 2024-12-16T12:56:36.5452448 Languages: en_us | ||
cb59c9cda54c192d94a6d91598a550f3a0a55062 assets/nautec/lang/en_us.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
3 changes: 3 additions & 0 deletions
3
src/generated/resources/assets/nautec/models/item/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,3 @@ | ||
{ | ||
"parent": "nautec:block/bacterial_analyzer" | ||
} |
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
25 changes: 25 additions & 0 deletions
25
src/main/java/com/portingdeadmods/nautec/client/screen/BacterialAnalyzerScreen.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,25 @@ | ||
package com.portingdeadmods.nautec.client.screen; | ||
|
||
import com.portingdeadmods.nautec.Nautec; | ||
import com.portingdeadmods.nautec.api.client.screen.NTAbstractContainerScreen; | ||
import com.portingdeadmods.nautec.api.menu.NTAbstractContainerMenu; | ||
import com.portingdeadmods.nautec.content.blockentities.BacterialAnalyzerBlockEntity; | ||
import com.portingdeadmods.nautec.content.blockentities.multiblock.part.AugmentationStationExtensionBlockEntity; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.entity.player.Inventory; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class BacterialAnalyzerScreen extends NTAbstractContainerScreen<BacterialAnalyzerBlockEntity> { | ||
public static final ResourceLocation TEXTURE = ResourceLocation.fromNamespaceAndPath(Nautec.MODID, "textures/gui/bacterial_analyzer.png"); | ||
|
||
public BacterialAnalyzerScreen(NTAbstractContainerMenu<BacterialAnalyzerBlockEntity> menu, Inventory playerInventory, Component title) { | ||
super(menu, playerInventory, title); | ||
this.titleLabelY = 4; | ||
} | ||
|
||
@Override | ||
public @NotNull ResourceLocation getBackgroundTexture() { | ||
return TEXTURE; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/com/portingdeadmods/nautec/client/screen/BioReactorScreen.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,25 @@ | ||
package com.portingdeadmods.nautec.client.screen; | ||
|
||
import com.portingdeadmods.nautec.Nautec; | ||
import com.portingdeadmods.nautec.api.client.screen.NTAbstractContainerScreen; | ||
import com.portingdeadmods.nautec.api.menu.NTAbstractContainerMenu; | ||
import com.portingdeadmods.nautec.content.blockentities.BioReactorBlockEntity; | ||
import com.portingdeadmods.nautec.content.blockentities.multiblock.part.AugmentationStationExtensionBlockEntity; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.entity.player.Inventory; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class BioReactorScreen extends NTAbstractContainerScreen<BioReactorBlockEntity> { | ||
public static final ResourceLocation TEXTURE = ResourceLocation.fromNamespaceAndPath(Nautec.MODID, "textures/gui/bio_reactor.png"); | ||
|
||
public BioReactorScreen(NTAbstractContainerMenu<BioReactorBlockEntity> menu, Inventory playerInventory, Component title) { | ||
super(menu, playerInventory, title); | ||
this.titleLabelY = 4; | ||
} | ||
|
||
@Override | ||
public @NotNull ResourceLocation getBackgroundTexture() { | ||
return TEXTURE; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/com/portingdeadmods/nautec/client/screen/IncubatorScreen.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,25 @@ | ||
package com.portingdeadmods.nautec.client.screen; | ||
|
||
import com.portingdeadmods.nautec.Nautec; | ||
import com.portingdeadmods.nautec.api.client.screen.NTAbstractContainerScreen; | ||
import com.portingdeadmods.nautec.api.menu.NTAbstractContainerMenu; | ||
import com.portingdeadmods.nautec.content.blockentities.IncubatorBlockEntity; | ||
import com.portingdeadmods.nautec.content.blockentities.multiblock.part.AugmentationStationExtensionBlockEntity; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.entity.player.Inventory; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class IncubatorScreen extends NTAbstractContainerScreen<IncubatorBlockEntity> { | ||
public static final ResourceLocation TEXTURE = ResourceLocation.fromNamespaceAndPath(Nautec.MODID, "textures/gui/incubator.png"); | ||
|
||
public IncubatorScreen(NTAbstractContainerMenu<IncubatorBlockEntity> menu, Inventory playerInventory, Component title) { | ||
super(menu, playerInventory, title); | ||
this.titleLabelY = 4; | ||
} | ||
|
||
@Override | ||
public @NotNull ResourceLocation getBackgroundTexture() { | ||
return TEXTURE; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/com/portingdeadmods/nautec/client/screen/MutatorScreen.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,25 @@ | ||
package com.portingdeadmods.nautec.client.screen; | ||
|
||
import com.portingdeadmods.nautec.Nautec; | ||
import com.portingdeadmods.nautec.api.client.screen.NTAbstractContainerScreen; | ||
import com.portingdeadmods.nautec.api.menu.NTAbstractContainerMenu; | ||
import com.portingdeadmods.nautec.content.blockentities.MutatorBlockEntity; | ||
import com.portingdeadmods.nautec.content.blockentities.multiblock.part.AugmentationStationExtensionBlockEntity; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.entity.player.Inventory; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class MutatorScreen extends NTAbstractContainerScreen<MutatorBlockEntity> { | ||
public static final ResourceLocation TEXTURE = ResourceLocation.fromNamespaceAndPath(Nautec.MODID, "textures/gui/mutator.png"); | ||
|
||
public MutatorScreen(NTAbstractContainerMenu<MutatorBlockEntity> menu, Inventory playerInventory, Component title) { | ||
super(menu, playerInventory, title); | ||
this.titleLabelY = 4; | ||
} | ||
|
||
@Override | ||
public @NotNull ResourceLocation getBackgroundTexture() { | ||
return TEXTURE; | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
...n/java/com/portingdeadmods/nautec/content/blockentities/BacterialAnalyzerBlockEntity.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,55 @@ | ||
package com.portingdeadmods.nautec.content.blockentities; | ||
|
||
import com.portingdeadmods.nautec.api.blockentities.LaserBlockEntity; | ||
import com.portingdeadmods.nautec.capabilities.IOActions; | ||
import com.portingdeadmods.nautec.content.menus.BacterialAnalyzerMenu; | ||
import com.portingdeadmods.nautec.content.menus.MutatorMenu; | ||
import com.portingdeadmods.nautec.registries.NTBlockEntityTypes; | ||
import it.unimi.dsi.fastutil.Pair; | ||
import it.unimi.dsi.fastutil.objects.ObjectSet; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.core.Direction; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.MenuProvider; | ||
import net.minecraft.world.entity.player.Inventory; | ||
import net.minecraft.world.entity.player.Player; | ||
import net.minecraft.world.inventory.AbstractContainerMenu; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
import net.neoforged.neoforge.capabilities.BlockCapability; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.Map; | ||
|
||
public class BacterialAnalyzerBlockEntity extends LaserBlockEntity implements MenuProvider { | ||
|
||
|
||
public BacterialAnalyzerBlockEntity(BlockPos blockPos, BlockState blockState) { | ||
super(NTBlockEntityTypes.BACTERIAL_ANALYZER.get(), blockPos, blockState); | ||
addItemHandler(1); | ||
} | ||
|
||
@Override | ||
public ObjectSet<Direction> getLaserInputs() { | ||
return ObjectSet.of(Direction.UP, Direction.DOWN); | ||
} | ||
|
||
@Override | ||
public ObjectSet<Direction> getLaserOutputs() { | ||
return ObjectSet.of(); | ||
} | ||
|
||
@Override | ||
public <T> Map<Direction, Pair<IOActions, int[]>> getSidedInteractions(BlockCapability<T, @Nullable Direction> capability) { | ||
return Map.of(); | ||
} | ||
|
||
@Override | ||
public Component getDisplayName() { | ||
return Component.literal("Bacterial Analyzer"); | ||
} | ||
|
||
@Override | ||
public @Nullable AbstractContainerMenu createMenu(int containerId, Inventory playerInventory, Player player) { | ||
return new BacterialAnalyzerMenu(containerId, playerInventory, this); | ||
} | ||
} |
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
24 changes: 24 additions & 0 deletions
24
src/main/java/com/portingdeadmods/nautec/content/blocks/BacterialAnalyzerBlock.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,24 @@ | ||
package com.portingdeadmods.nautec.content.blocks; | ||
|
||
import com.mojang.serialization.MapCodec; | ||
import com.portingdeadmods.nautec.api.blockentities.ContainerBlockEntity; | ||
import com.portingdeadmods.nautec.api.blocks.blockentities.LaserBlock; | ||
import com.portingdeadmods.nautec.registries.NTBlockEntityTypes; | ||
import net.minecraft.world.level.block.BaseEntityBlock; | ||
import net.minecraft.world.level.block.entity.BlockEntityType; | ||
|
||
public class BacterialAnalyzerBlock extends LaserBlock { | ||
public BacterialAnalyzerBlock(Properties properties) { | ||
super(properties); | ||
} | ||
|
||
@Override | ||
public BlockEntityType<? extends ContainerBlockEntity> getBlockEntityType() { | ||
return NTBlockEntityTypes.BACTERIAL_ANALYZER.get(); | ||
} | ||
|
||
@Override | ||
protected MapCodec<? extends BaseEntityBlock> codec() { | ||
return simpleCodec(BacterialAnalyzerBlock::new); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/main/java/com/portingdeadmods/nautec/content/menus/BacterialAnalyzerMenu.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,31 @@ | ||
package com.portingdeadmods.nautec.content.menus; | ||
|
||
import com.portingdeadmods.nautec.api.menu.NTAbstractContainerMenu; | ||
import com.portingdeadmods.nautec.content.blockentities.BacterialAnalyzerBlockEntity; | ||
import com.portingdeadmods.nautec.content.blockentities.MutatorBlockEntity; | ||
import com.portingdeadmods.nautec.registries.NTMenuTypes; | ||
import net.minecraft.network.FriendlyByteBuf; | ||
import net.minecraft.world.entity.player.Inventory; | ||
import net.neoforged.neoforge.items.SlotItemHandler; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class BacterialAnalyzerMenu extends NTAbstractContainerMenu<BacterialAnalyzerBlockEntity> { | ||
public BacterialAnalyzerMenu(int containerId, Inventory inv, FriendlyByteBuf extraData) { | ||
this(containerId, inv, (BacterialAnalyzerBlockEntity) inv.player.level().getBlockEntity(extraData.readBlockPos())); | ||
} | ||
|
||
public BacterialAnalyzerMenu(int containerId, @NotNull Inventory inv, @NotNull BacterialAnalyzerBlockEntity blockEntity) { | ||
super(NTMenuTypes.BACTERIAL_ANALYZER.get(), containerId, inv, blockEntity); | ||
|
||
// Catalyst | ||
addSlot(new SlotItemHandler(blockEntity.getItemHandler(), 0, 80, 35)); | ||
|
||
addPlayerInventory(inv, 84); | ||
addPlayerHotbar(inv, 142); | ||
} | ||
|
||
@Override | ||
protected int getMergeableSlotCount() { | ||
return 1; | ||
} | ||
} |
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
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
Oops, something went wrong.