Package nl.mtvehicles.core.listeners
Class VehicleEntityListener
java.lang.Object
nl.mtvehicles.core.infrastructure.models.MTVListener
nl.mtvehicles.core.listeners.VehicleEntityListener
- All Implemented Interfaces:
org.bukkit.event.Listener
On vehicle left click - damaging, opening a trunk, fueling
-
Field Summary
Fields inherited from class nl.mtvehicles.core.infrastructure.models.MTVListener
event, player
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Damage a vehicle.void
onPlayerInteractAtEntity(org.bukkit.event.entity.EntityDamageByEntityEvent event)
Methods inherited from class nl.mtvehicles.core.infrastructure.models.MTVListener
callAPI, callAPI, getAPI, isCancelled, setAPI
-
Field Details
-
speed
-
-
Constructor Details
-
VehicleEntityListener
public VehicleEntityListener()
-
-
Method Details
-
onPlayerInteractAtEntity
public void onPlayerInteractAtEntity(org.bukkit.event.entity.EntityDamageByEntityEvent event) -
damage
Damage a vehicle.- Parameters:
license
- The vehicle's license plate
-