Skip to content

Commit

Permalink
fix: loot stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed May 25, 2024
1 parent ed3169d commit 46e4358
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
import net.minecraft.world.flag.FeatureFlags;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.ItemLike;
import net.minecraft.world.level.block.Block;
import net.zepalesque.redux.Redux;
import net.zepalesque.redux.block.ReduxBlocks;
import net.zepalesque.redux.data.prov.loot.ReduxBlockLootProvider;

import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import java.util.stream.Stream;

Expand All @@ -22,8 +25,13 @@ public ReduxBlockLoot() {

@Override
protected void generate() {

Redux.WOOD_SETS.forEach(set -> set.lootData(this));
// TODO
this.dropNone(ReduxBlocks.SHORT_AETHER_GRASS.get());
}

@Override
public Iterable<Block> getKnownBlocks() {
return ReduxBlocks.BLOCKS.getEntries().stream().map(Supplier::get).collect(Collectors.toList());
}
}

0 comments on commit 46e4358

Please sign in to comment.