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
5d45470
commit f623f4b
Showing
10 changed files
with
211 additions
and
2 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
37 changes: 37 additions & 0 deletions
37
src/main/java/com/portingdeadmods/nautec/content/blockentities/BioReactorBlockEntity.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,37 @@ | ||
package com.portingdeadmods.nautec.content.blockentities; | ||
|
||
import com.portingdeadmods.nautec.api.blockentities.LaserBlockEntity; | ||
import com.portingdeadmods.nautec.capabilities.IOActions; | ||
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.world.level.block.state.BlockState; | ||
import net.neoforged.neoforge.capabilities.BlockCapability; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.Map; | ||
|
||
public class BioReactorBlockEntity extends LaserBlockEntity { | ||
|
||
|
||
public BioReactorBlockEntity(BlockPos blockPos, BlockState blockState) { | ||
super(NTBlockEntityTypes.BIO_REACTOR.get(), blockPos, blockState); | ||
} | ||
|
||
@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(); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/main/java/com/portingdeadmods/nautec/content/blockentities/IncubatorBlockEntity.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,37 @@ | ||
package com.portingdeadmods.nautec.content.blockentities; | ||
|
||
import com.portingdeadmods.nautec.api.blockentities.LaserBlockEntity; | ||
import com.portingdeadmods.nautec.capabilities.IOActions; | ||
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.world.level.block.state.BlockState; | ||
import net.neoforged.neoforge.capabilities.BlockCapability; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.Map; | ||
|
||
public class IncubatorBlockEntity extends LaserBlockEntity { | ||
|
||
|
||
public IncubatorBlockEntity(BlockPos blockPos, BlockState blockState) { | ||
super(NTBlockEntityTypes.INCUBATOR.get(), blockPos, blockState); | ||
} | ||
|
||
@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(); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/main/java/com/portingdeadmods/nautec/content/blockentities/MutatorBlockEntity.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,38 @@ | ||
package com.portingdeadmods.nautec.content.blockentities; | ||
|
||
import com.portingdeadmods.nautec.api.blockentities.LaserBlockEntity; | ||
import com.portingdeadmods.nautec.capabilities.IOActions; | ||
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.world.level.block.entity.BlockEntityType; | ||
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 MutatorBlockEntity extends LaserBlockEntity { | ||
|
||
|
||
public MutatorBlockEntity(BlockPos blockPos, BlockState blockState) { | ||
super(NTBlockEntityTypes.MUTATOR.get(), blockPos, blockState); | ||
} | ||
|
||
@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(); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/portingdeadmods/nautec/content/blocks/BioReactorBlock.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 BioReactorBlock extends LaserBlock { | ||
public BioReactorBlock(Properties properties) { | ||
super(properties); | ||
} | ||
|
||
@Override | ||
public BlockEntityType<? extends ContainerBlockEntity> getBlockEntityType() { | ||
return NTBlockEntityTypes.BIO_REACTOR.get(); | ||
} | ||
|
||
@Override | ||
protected MapCodec<? extends BaseEntityBlock> codec() { | ||
return simpleCodec(BioReactorBlock::new); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/portingdeadmods/nautec/content/blocks/IncubatorBlock.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 IncubatorBlock extends LaserBlock { | ||
public IncubatorBlock(Properties properties) { | ||
super(properties); | ||
} | ||
|
||
@Override | ||
public BlockEntityType<? extends ContainerBlockEntity> getBlockEntityType() { | ||
return NTBlockEntityTypes.INCUBATOR.get(); | ||
} | ||
|
||
@Override | ||
protected MapCodec<? extends BaseEntityBlock> codec() { | ||
return simpleCodec(IncubatorBlock::new); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/portingdeadmods/nautec/content/blocks/MutatorBlock.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 MutatorBlock extends LaserBlock { | ||
public MutatorBlock(Properties properties) { | ||
super(properties); | ||
} | ||
|
||
@Override | ||
public BlockEntityType<? extends ContainerBlockEntity> getBlockEntityType() { | ||
return NTBlockEntityTypes.MUTATOR.get(); | ||
} | ||
|
||
@Override | ||
protected MapCodec<? extends BaseEntityBlock> codec() { | ||
return simpleCodec(MutatorBlock::new); | ||
} | ||
} |
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