-
Notifications
You must be signed in to change notification settings - Fork 22
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
Showing
19 changed files
with
1,206 additions
and
6 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
7 changes: 7 additions & 0 deletions
7
src/main/generated/assets/oritech/blockstates/centrifuge_block.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": "oritech:block/centrifuge_block" | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/main/generated/assets/oritech/models/item/centrifuge_block.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": "oritech:block/centrifuge_block" | ||
} |
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/rearth/oritech/block/blocks/machines/processing/CentrifugeBlock.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 rearth.oritech.block.blocks.machines.processing; | ||
|
||
import net.minecraft.block.BlockEntityProvider; | ||
import net.minecraft.block.entity.BlockEntity; | ||
import org.jetbrains.annotations.NotNull; | ||
import rearth.oritech.block.base.block.MultiblockMachine; | ||
import rearth.oritech.block.entity.machines.processing.CentrifugeBlockEntity; | ||
import rearth.oritech.block.entity.machines.processing.FoundryBlockEntity; | ||
|
||
public class CentrifugeBlock extends MultiblockMachine implements BlockEntityProvider { | ||
|
||
public CentrifugeBlock(Settings settings) { | ||
super(settings); | ||
} | ||
|
||
@Override | ||
public @NotNull Class<? extends BlockEntity> getBlockEntityType() { | ||
return CentrifugeBlockEntity.class; | ||
} | ||
} |
71 changes: 71 additions & 0 deletions
71
src/main/java/rearth/oritech/block/entity/machines/processing/CentrifugeBlockEntity.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,71 @@ | ||
package rearth.oritech.block.entity.machines.processing; | ||
|
||
import net.minecraft.block.BlockState; | ||
import net.minecraft.screen.ScreenHandlerType; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.util.math.Vec3i; | ||
import rearth.oritech.block.base.entity.MultiblockMachineEntity; | ||
import rearth.oritech.client.init.ModScreens; | ||
import rearth.oritech.init.BlockEntitiesContent; | ||
import rearth.oritech.init.recipes.OritechRecipeType; | ||
import rearth.oritech.init.recipes.RecipeContent; | ||
import rearth.oritech.util.InventorySlotAssignment; | ||
|
||
import java.util.List; | ||
|
||
public class CentrifugeBlockEntity extends MultiblockMachineEntity { | ||
|
||
public CentrifugeBlockEntity(BlockPos pos, BlockState state) { | ||
super(BlockEntitiesContent.CENTRIFUGE_ENTITY, pos, state, 32); | ||
} | ||
|
||
@Override | ||
protected OritechRecipeType getOwnRecipeType() { | ||
return RecipeContent.CENTRIFUGE; | ||
} | ||
|
||
@Override | ||
public InventorySlotAssignment getSlots() { | ||
return new InventorySlotAssignment(0, 1, 1, 3); | ||
} | ||
|
||
@Override | ||
public List<GuiSlot> getGuiSlots() { | ||
return List.of( | ||
new GuiSlot(0, 80, 11), | ||
new GuiSlot(1, 60, 59), | ||
new GuiSlot(2, 80, 59), | ||
new GuiSlot(3, 100, 59)); | ||
} | ||
|
||
@Override | ||
public ScreenHandlerType<?> getScreenHandlerType() { | ||
return ModScreens.CENTRIFUGE_SCREEN; | ||
} | ||
|
||
@Override | ||
public int getInventorySize() { | ||
return 4; | ||
} | ||
|
||
@Override | ||
public List<Vec3i> getCorePositions() { | ||
return List.of( | ||
new Vec3i(0, 1,0) | ||
); | ||
} | ||
|
||
@Override | ||
public boolean inputOptionsEnabled() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public List<Vec3i> getAddonSlots() { | ||
|
||
return List.of( | ||
new Vec3i(0, 0,-1), | ||
new Vec3i(0, 0,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
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.