mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
83698cb73c
commit
84c2239244
561 files changed
+8872
-9300
No files matched your search
@@ -1,12 +1,15 @@
|
||||
package tconstruct.plugins.mfr;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.*;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import powercrystals.minefactoryreloaded.api.*;
|
||||
|
||||
public class HarvestableOreBerry implements IFactoryHarvestable {
|
||||
|
||||
private final Block _sourceBlock;
|
||||
private final Item _berryItem;
|
||||
private final int _metaOffset;
|
||||
@@ -38,9 +41,9 @@ public class HarvestableOreBerry implements IFactoryHarvestable {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ItemStack> getDrops(
|
||||
World world, Random rand, Map<String, Boolean> harvesterSettings, int x, int y, int z) {
|
||||
ItemStack[] returnItems = {new ItemStack(_berryItem, 1, world.getBlockMetadata(x, y, z) % 4 + _metaOffset)};
|
||||
public List<ItemStack> getDrops(World world, Random rand, Map<String, Boolean> harvesterSettings, int x, int y,
|
||||
int z) {
|
||||
ItemStack[] returnItems = { new ItemStack(_berryItem, 1, world.getBlockMetadata(x, y, z) % 4 + _metaOffset) };
|
||||
return Arrays.asList(returnItems);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user