Package com.minecolonies.api.util
Class Pond
java.lang.Object
com.minecolonies.api.util.Pond
Utility class to search for fisher ponds.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intThe minimum pond requirements. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Pond.PondStatecheckPond(@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).static Pond.PondStatecheckWaterForFishing(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos) Checks if the water is fine for fishing, see vanilla FishingHook checks
-
Field Details
-
WATER_POOL_WIDTH_REQUIREMENT
public static final int WATER_POOL_WIDTH_REQUIREMENTThe 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 && 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:
-