Class PatternShapeMatch.PerWorld

java.lang.Object
at.petrak.hexcasting.api.casting.PatternShapeMatch
at.petrak.hexcasting.api.casting.PatternShapeMatch.PerWorld
Enclosing class:
PatternShapeMatch

public static final class PatternShapeMatch.PerWorld extends PatternShapeMatch
The pattern is the right shape to be one of the per-world patterns.

On the server, certain means whether this is an exact match, or if it's just the right shape. (In other words it should only actually be casted if it is true.)

On the client, it is always false.

  • Field Details

    • key

      public final net.minecraft.resources.ResourceKey<ActionRegistryEntry> key
    • certain

      public final boolean certain
  • Constructor Details

    • PerWorld

      public PerWorld(net.minecraft.resources.ResourceKey<ActionRegistryEntry> key, boolean certain)