接口 IForgeAbstractBoat
- 所有已知实现类:
AbstractBoat
,AbstractChestBoat
,Boat
,ChestBoat
,ChestRaft
,Raft
public interface IForgeAbstractBoat
-
方法概要
修饰符和类型方法说明default boolean
canBoatInFluid
(FluidState state) Returns whether the boat can be used on the fluid.default boolean
canBoatInFluid
(FluidType type) Returns whether the boat can be used on the fluid.private AbstractBoat
self()
default boolean
shouldUpdateFluidWhileRiding
(FluidState state, Entity rider) Whenfalse
, the fluid will no longer update its height value while within a boat while it is not within a fluid (AbstractBoat.isUnderWater()
.
-
方法详细资料
-
self
-
canBoatInFluid
Returns whether the boat can be used on the fluid.- 参数:
state
- the state of the fluid- 返回:
true
if the boat can be used,false
otherwise
-
canBoatInFluid
Returns whether the boat can be used on the fluid.- 参数:
type
- the type of the fluid- 返回:
true
if the boat can be used,false
otherwise
-
shouldUpdateFluidWhileRiding
Whenfalse
, the fluid will no longer update its height value while within a boat while it is not within a fluid (AbstractBoat.isUnderWater()
.- 参数:
state
- the state of the fluid the rider is withinrider
- the rider of the boat- 返回:
true
if the fluid height should be updated,false
otherwise
-