[Fix] Reduced Radius for Eternal Portal Search
This commit is contained in:
parent
8b845a0a8f
commit
1356a91e77
5 changed files with 102 additions and 54 deletions
|
@ -1,28 +0,0 @@
|
|||
package org.betterx.betterend.registry;
|
||||
|
||||
import org.betterx.bclib.api.v2.poi.BCLPoiType;
|
||||
import org.betterx.bclib.api.v2.poi.PoiRegistry;
|
||||
import org.betterx.bclib.blocks.BlockProperties;
|
||||
import org.betterx.betterend.BetterEnd;
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class EndPoiTypes {
|
||||
public static final BCLPoiType ETERNAL_PORTAL = PoiRegistry
|
||||
.register(
|
||||
BetterEnd.makeID("eternal_portal"),
|
||||
() -> BCLPoiType
|
||||
.getBlockStates(EndBlocks.FLAVOLITE_RUNED_ETERNAL)
|
||||
.stream().filter(state -> !state.getValue(BlockProperties.ACTIVE))
|
||||
.collect(Collectors.toSet()),
|
||||
0, 1
|
||||
);
|
||||
|
||||
private static void bootstrap() {
|
||||
//This basically ensures that our static structures are loaded and registered
|
||||
}
|
||||
|
||||
public static void register() {
|
||||
PoiRegistry.registerForBootstrap(EndPoiTypes::bootstrap);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue