Search in sources :

Example 1 with FlyingTeleportHelperFilter

use of org.spongepowered.common.world.teleport.FlyingTeleportHelperFilter 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));
}
Also used : DefaultTeleportHelperFilter(org.spongepowered.common.world.teleport.DefaultTeleportHelperFilter) FlyingTeleportHelperFilter(org.spongepowered.common.world.teleport.FlyingTeleportHelperFilter) ConfigTeleportHelperFilter(org.spongepowered.common.world.teleport.ConfigTeleportHelperFilter) NoPortalTeleportHelperFilter(org.spongepowered.common.world.teleport.NoPortalTeleportHelperFilter) SurfaceOnlyTeleportHelperFilter(org.spongepowered.common.world.teleport.SurfaceOnlyTeleportHelperFilter)

Example 2 with FlyingTeleportHelperFilter

use of org.spongepowered.common.world.teleport.FlyingTeleportHelperFilter 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());
    });
}
Also used : DefaultTeleportHelperFilter(org.spongepowered.common.world.teleport.DefaultTeleportHelperFilter) FlyingTeleportHelperFilter(org.spongepowered.common.world.teleport.FlyingTeleportHelperFilter) ConfigTeleportHelperFilter(org.spongepowered.common.world.teleport.ConfigTeleportHelperFilter) NoPortalTeleportHelperFilter(org.spongepowered.common.world.teleport.NoPortalTeleportHelperFilter) SurfaceOnlyTeleportHelperFilter(org.spongepowered.common.world.teleport.SurfaceOnlyTeleportHelperFilter)

Aggregations

ConfigTeleportHelperFilter (org.spongepowered.common.world.teleport.ConfigTeleportHelperFilter)2 DefaultTeleportHelperFilter (org.spongepowered.common.world.teleport.DefaultTeleportHelperFilter)2 FlyingTeleportHelperFilter (org.spongepowered.common.world.teleport.FlyingTeleportHelperFilter)2 NoPortalTeleportHelperFilter (org.spongepowered.common.world.teleport.NoPortalTeleportHelperFilter)2 SurfaceOnlyTeleportHelperFilter (org.spongepowered.common.world.teleport.SurfaceOnlyTeleportHelperFilter)2