接口 IForgeAbstractMinecart
- 所有已知实现类:
AbstractMinecart
,AbstractMinecartContainer
,Minecart
,MinecartChest
,MinecartCommandBlock
,MinecartFurnace
,MinecartHopper
,MinecartSpawner
,MinecartTNT
public interface IForgeAbstractMinecart
-
字段概要
字段修饰符和类型字段说明static final double
static final float
static final float
-
方法概要
修饰符和类型方法说明boolean
Returns true if this cart can currently use rails.default int
Called from Detector Rails to retrieve a redstone power level for comparators.float
Returns the current speed cap for the cart when traveling on rails.default BlockPos
Internal, returns the current spot to look for the attached rail.double
default float
Returns the carts max speed when traveling on rails.float
float
double
private AbstractMinecart
self()
void
setCanUseRail
(boolean use) Set whether the minecart can use rails.void
setCurrentCartSpeedCapOnRail
(float value) void
setDragAir
(double value) void
setMaxSpeedAirLateral
(float value) void
setMaxSpeedAirVertical
(float value)
-
字段详细资料
-
DEFAULT_MAX_SPEED_AIR_LATERAL
static final float DEFAULT_MAX_SPEED_AIR_LATERAL- 另请参阅:
-
DEFAULT_MAX_SPEED_AIR_VERTICAL
static final float DEFAULT_MAX_SPEED_AIR_VERTICAL- 另请参阅:
-
DEFAULT_AIR_DRAG
static final double DEFAULT_AIR_DRAG- 另请参阅:
-
-
方法详细资料
-
self
-
getCurrentRailPosition
Internal, returns the current spot to look for the attached rail. -
getMaxSpeedWithRail
double getMaxSpeedWithRail() -
canUseRail
boolean canUseRail()Returns true if this cart can currently use rails. This function is mainly used to gracefully detach a minecart from a rail.- 返回:
- True if the minecart can use rails.
-
setCanUseRail
void setCanUseRail(boolean use) Set whether the minecart can use rails. This function is mainly used to gracefully detach a minecart from a rail.- 参数:
use
- Whether the minecart can currently use rails.
-
getMaxCartSpeedOnRail
default float getMaxCartSpeedOnRail()Returns the carts max speed when traveling on rails. Carts going faster than 1.1 cause issues with chunk loading. Carts cant traverse slopes or corners at greater than 0.5 - 0.6. This value is compared with the rails max speed and the carts current speed cap to determine the carts current max speed. A normal rail's max speed is 0.4.- 返回:
- Carts max speed.
-
getCurrentCartSpeedCapOnRail
float getCurrentCartSpeedCapOnRail()Returns the current speed cap for the cart when traveling on rails. This functions differs from getMaxCartSpeedOnRail() in that it controls current movement and cannot be overridden. The value however can never be higher than getMaxCartSpeedOnRail(). -
setCurrentCartSpeedCapOnRail
void setCurrentCartSpeedCapOnRail(float value) -
getMaxSpeedAirLateral
float getMaxSpeedAirLateral() -
setMaxSpeedAirLateral
void setMaxSpeedAirLateral(float value) -
getMaxSpeedAirVertical
float getMaxSpeedAirVertical() -
setMaxSpeedAirVertical
void setMaxSpeedAirVertical(float value) -
getDragAir
double getDragAir() -
setDragAir
void setDragAir(double value) -
getComparatorLevel
default int getComparatorLevel()Called from Detector Rails to retrieve a redstone power level for comparators.
-