-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made sure macerator can process ores without issue
- Loading branch information
Showing
4 changed files
with
86 additions
and
43 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
common/src/main/java/trinsdar/gt4r/blockentity/single/BlockEntityMacerator.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,26 @@ | ||
package trinsdar.gt4r.blockentity.single; | ||
|
||
import muramasa.antimatter.blockentity.BlockEntityMachine; | ||
import muramasa.antimatter.capability.machine.MachineRecipeHandler; | ||
import muramasa.antimatter.machine.types.Machine; | ||
import muramasa.antimatter.recipe.map.IRecipeMap; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
import trinsdar.gt4r.data.RecipeMaps; | ||
import trinsdar.gt4r.machine.UpgradeableMachine; | ||
|
||
import static muramasa.antimatter.machine.Tier.LV; | ||
import static muramasa.antimatter.machine.Tier.MV; | ||
|
||
public class BlockEntityMacerator extends BlockEntityUpgradeableMachine<BlockEntityMacerator> { | ||
public BlockEntityMacerator(UpgradeableMachine type, BlockPos pos, BlockState state) { | ||
super(type, pos, state); | ||
recipeHandler.set(() -> new MachineRecipeHandler<>(this){ | ||
@Override | ||
protected IRecipeMap getRecipeMap() { | ||
if (tile.getMachineTier() == LV) return RecipeMaps.MACERATING; | ||
return super.getRecipeMap(); | ||
} | ||
}); | ||
} | ||
} |
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.