Interface DimensionPredicate

All Superinterfaces:
MinecraftPredicate<MinecraftPredicateContext>, Predicate<MinecraftPredicateContext>

@GeyserProvided public interface DimensionPredicate extends MinecraftPredicate<MinecraftPredicateContext>
A predicate that tests for a Minecraft dimension.
Since:
2.9.3
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    The dimension to check for.
    boolean
     

    Methods inherited from interface org.geysermc.geyser.api.predicate.MinecraftPredicate

    and, negate, or

    Methods inherited from interface java.util.function.Predicate

    test
  • Method Details

    • dimension

      Identifier dimension()
      The dimension to check for. This can be a vanilla Minecraft dimension, or a custom one. Here are examples:
      • minecraft:nether
      • my_mod:aether
      Returns:
      the dimension to test for
      Since:
      2.9.3
    • negated

      boolean negated()
      Returns:
      whether this predicate is negated
      Since:
      2.9.3