Class Pond

java.lang.Object
com.minecolonies.api.util.Pond

public final class Pond extends Object
Utility class to search for fisher ponds.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
    The minimum pond requirements.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    checkPond(@NotNull net.minecraft.world.level.BlockGetter world, @NotNull net.minecraft.core.BlockPos water, @Nullable net.minecraft.core.BlockPos.MutableBlockPos problematicPosition)
    Checks if on position "water" really is water, if the water is connected to land and if the pond is big enough (bigger then 20).
    checkWaterForFishing(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos)
    Checks if the water is fine for fishing, see vanilla FishingHook checks

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • WATER_POOL_WIDTH_REQUIREMENT

      public static final int WATER_POOL_WIDTH_REQUIREMENT
      The minimum pond requirements.
      See Also:
    • WATER_DEPTH_REQUIREMENT

      public static final int WATER_DEPTH_REQUIREMENT
      See Also:
  • Constructor Details

    • Pond

      public Pond()
  • Method Details

    • checkPond

      public static Pond.PondState checkPond(@NotNull @NotNull net.minecraft.world.level.BlockGetter world, @NotNull @NotNull net.minecraft.core.BlockPos water, @Nullable @Nullable net.minecraft.core.BlockPos.MutableBlockPos problematicPosition)
      Checks if on position "water" really is water, if the water is connected to land and if the pond is big enough (bigger then 20).
      Parameters:
      world - The world the player is in.
      water - The coordinate to check.
      problematicPosition - Will contain position of problematic block (if not null invalid input: '&'invalid input: '&' pond was not found).
      Returns:
      true if water.
    • checkWaterForFishing

      public static Pond.PondState checkWaterForFishing(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos)
      Checks if the water is fine for fishing, see vanilla FishingHook checks
      Parameters:
      world -
      pos -
      Returns: