mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-28 15:38:00 +01:00
17 lines
629 B
Java
17 lines
629 B
Java
|
package com.minelittlepony.unicopia;
|
||
|
|
||
|
import net.fabricmc.fabric.api.object.builder.v1.world.poi.PointOfInterestHelper;
|
||
|
import net.minecraft.block.AbstractChestBlock;
|
||
|
import net.minecraft.block.Block;
|
||
|
import net.minecraft.registry.Registries;
|
||
|
import net.minecraft.world.poi.PointOfInterestType;
|
||
|
|
||
|
public interface UPOIs {
|
||
|
PointOfInterestType CHESTS = PointOfInterestHelper.register(Unicopia.id("chests"), 1, 64, Registries.BLOCK.getEntrySet().stream()
|
||
|
.map(entry -> entry.getValue())
|
||
|
.filter(b -> b instanceof AbstractChestBlock)
|
||
|
.toArray(Block[]::new));
|
||
|
|
||
|
static void bootstrap() { }
|
||
|
}
|