toggle menu
VentureLibs
1.0
main
switch theme
search in API
VentureLibs
/
net.blockventuremc.modules.structures.impl
/
Train
Train
class
Train
(
name
:
String
,
val
trackRide
:
TrackRide
,
var
startPosition
:
Double
=
0.0
)
(
source
)
Members
Constructors
Train
Link copied to clipboard
constructor
(
name
:
String
,
trackRide
:
TrackRide
,
startPosition
:
Double
=
0.0
)
Properties
carts
Link copied to clipboard
val
carts
:
MutableList
<
Cart
>
current
Position
Link copied to clipboard
var
currentPosition
:
Double
start
Position
Link copied to clipboard
var
startPosition
:
Double
ticks
Lived
Link copied to clipboard
var
ticksLived
:
Int
total
Length
Link copied to clipboard
val
totalLength
:
Float
track
Ride
Link copied to clipboard
val
trackRide
:
TrackRide
uuid
Link copied to clipboard
val
uuid
:
UUID
velocity
Link copied to clipboard
var
velocity
:
Float
Functions
add
Cart
Link copied to clipboard
fun
addCart
(
cart
:
Cart
)
add
Carts
Link copied to clipboard
fun
addCarts
(
carts
:
List
<
Cart
>
)
adjust
Position
Link copied to clipboard
fun
adjustPosition
(
position
:
Float
)
:
Float
initialize
Link copied to clipboard
fun
initialize
(
)
lerp
Link copied to clipboard
fun
lerp
(
start
:
Double
,
target
:
Double
,
t
:
Double
)
:
Double
fun
lerp
(
start
:
Float
,
target
:
Float
,
t
:
Double
)
:
Float
lerp
Track
Nodes
Link copied to clipboard
fun
lerpTrackNodes
(
node1
:
TrackNode
,
node2
:
TrackNode
,
t
:
Double
)
:
TrackNode
remove
Link copied to clipboard
fun
remove
(
)
sounds
Link copied to clipboard
fun
sounds
(
)
track
Node
At
Distance
Link copied to clipboard
fun
trackNodeAtDistance
(
distance
:
Double
)
:
TrackNode
update
Link copied to clipboard
fun
update
(
)