Interface IForgeBoat

All Known Implementing Classes:
Boat, ChestBoat

public interface IForgeBoat
  • Method Details

    • self

      private Boat self()
    • canBoatInFluid

      default boolean canBoatInFluid(FluidState state)
      Returns whether the boat can be used on the fluid.
      Parameters:
      state - the state of the fluid
      Returns:
      true if the boat can be used, false otherwise
    • canBoatInFluid

      default boolean canBoatInFluid(FluidType type)
      Returns whether the boat can be used on the fluid.
      Parameters:
      type - the type of the fluid
      Returns:
      true if the boat can be used, false otherwise
    • shouldUpdateFluidWhileRiding

      default boolean shouldUpdateFluidWhileRiding(FluidState state, Entity rider)
      When false, the fluid will no longer update its height value while within a boat while it is not within a fluid (Boat.isUnderWater().
      Parameters:
      state - the state of the fluid the rider is within
      rider - the rider of the boat
      Returns:
      true if the fluid height should be updated, false otherwise