use of org.spongepowered.common.world.teleport.SurfaceOnlyTeleportHelperFilter in project SpongeCommon by SpongePowered.
the class TeleportHelperFilterRegistryModule method registerDefaults.
@Override
public void registerDefaults() {
this.filterMap.put("config", new ConfigTeleportHelperFilter());
this.filterMap.put("default", new DefaultTeleportHelperFilter());
this.filterMap.put("flying", new FlyingTeleportHelperFilter());
this.filterMap.put("no_portal", new NoPortalTeleportHelperFilter());
this.filterMap.put("surface_only", new SurfaceOnlyTeleportHelperFilter());
this.filterMap.forEach((key, value) -> this.idMap.put(value.getId().toLowerCase(Locale.ENGLISH), value));
}
use of org.spongepowered.common.world.teleport.SurfaceOnlyTeleportHelperFilter in project SpongeCommon by SpongePowered.
the class SpongeRegistryLoaders method teleportHelperFilter.
public static RegistryLoader<TeleportHelperFilter> teleportHelperFilter() {
return RegistryLoader.of(l -> {
l.add(TeleportHelperFilters.CONFIG, k -> new ConfigTeleportHelperFilter());
l.add(TeleportHelperFilters.DEFAULT, k -> new DefaultTeleportHelperFilter());
l.add(TeleportHelperFilters.FLYING, k -> new FlyingTeleportHelperFilter());
l.add(TeleportHelperFilters.NO_PORTAL, k -> new NoPortalTeleportHelperFilter());
l.add(TeleportHelperFilters.SURFACE_ONLY, k -> new SurfaceOnlyTeleportHelperFilter());
});
}
Aggregations