Package nl.mtvehicles.core.movement
Class PacketHandler
java.lang.Object
nl.mtvehicles.core.movement.PacketHandler
Packet handling system in different minecraft versions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isObjectPacket(Object object)
Check whether a given object is a valid steering packet (PacketPlayInSteerVehicle).static void
movement_1_12(org.bukkit.entity.Player player)
Packet handler for vehicle steering in versions 1.12-1.12.2static void
movement_1_13(org.bukkit.entity.Player player)
Packet handler for vehicle steering in 1.13.2 and 1.13.1 (NMS version 1_13_R1 is not supported)static void
movement_1_15(org.bukkit.entity.Player player)
Packet handler for vehicle steering in versions 1.15-1.15.2static void
movement_1_16(org.bukkit.entity.Player player)
Packet handler for vehicle steering in 1.16.5 and 1.16.4 (NMS versions 1_16_R2 and 1_16_R1 are not supported)static void
movement_1_17(org.bukkit.entity.Player player)
Packet handler for vehicle steering in 1.17 and 1.17.1static void
movement_1_18_R1(org.bukkit.entity.Player player)
Packet handler for vehicle steering in 1.18 and 1.18.1static void
movement_1_18_R2(org.bukkit.entity.Player player)
Packet handler for vehicle steering in 1.18.2static void
movement_1_19(org.bukkit.entity.Player player)
Packet handler for vehicle steering in 1.19-1.19.2static void
movement_1_19_R2(org.bukkit.entity.Player player)
Packet handler for vehicle steering in 1.19.3static void
movement_1_19_R3(org.bukkit.entity.Player player)
Packet handler for vehicle steering in 1.19.4static void
movement_1_20_R1(org.bukkit.entity.Player player)
Packet handler for vehicle steering in 1.20static void
movement_1_20_R2(org.bukkit.entity.Player player)
Packet handler for vehicle steering in 1.20.2static void
movement_1_20_R3(org.bukkit.entity.Player player)
Packet handler for vehicle steering in 1.20.3 and 1.20.4
-
Constructor Details
-
PacketHandler
public PacketHandler()
-
-
Method Details
-
movement_1_20_R3
public static void movement_1_20_R3(org.bukkit.entity.Player player)Packet handler for vehicle steering in 1.20.3 and 1.20.4- Parameters:
player
- Player whose steering is being regarded
-
movement_1_20_R2
public static void movement_1_20_R2(org.bukkit.entity.Player player)Packet handler for vehicle steering in 1.20.2- Parameters:
player
- Player whose steering is being regarded
-
movement_1_20_R1
public static void movement_1_20_R1(org.bukkit.entity.Player player)Packet handler for vehicle steering in 1.20- Parameters:
player
- Player whose steering is being regarded
-
movement_1_19_R3
public static void movement_1_19_R3(org.bukkit.entity.Player player)Packet handler for vehicle steering in 1.19.4- Parameters:
player
- Player whose steering is being regarded
-
movement_1_19_R2
public static void movement_1_19_R2(org.bukkit.entity.Player player)Packet handler for vehicle steering in 1.19.3- Parameters:
player
- Player whose steering is being regarded
-
movement_1_19
public static void movement_1_19(org.bukkit.entity.Player player)Packet handler for vehicle steering in 1.19-1.19.2- Parameters:
player
- Player whose steering is being regarded
-
movement_1_18_R2
public static void movement_1_18_R2(org.bukkit.entity.Player player)Packet handler for vehicle steering in 1.18.2- Parameters:
player
- Player whose steering is being regarded
-
movement_1_18_R1
public static void movement_1_18_R1(org.bukkit.entity.Player player)Packet handler for vehicle steering in 1.18 and 1.18.1- Parameters:
player
- Player whose steering is being regarded
-
movement_1_17
public static void movement_1_17(org.bukkit.entity.Player player)Packet handler for vehicle steering in 1.17 and 1.17.1- Parameters:
player
- Player whose steering is being regarded
-
movement_1_16
public static void movement_1_16(org.bukkit.entity.Player player)Packet handler for vehicle steering in 1.16.5 and 1.16.4 (NMS versions 1_16_R2 and 1_16_R1 are not supported)- Parameters:
player
- Player whose steering is being regarded
-
movement_1_15
public static void movement_1_15(org.bukkit.entity.Player player)Packet handler for vehicle steering in versions 1.15-1.15.2- Parameters:
player
- Player whose steering is being regarded
-
movement_1_13
public static void movement_1_13(org.bukkit.entity.Player player)Packet handler for vehicle steering in 1.13.2 and 1.13.1 (NMS version 1_13_R1 is not supported)- Parameters:
player
- Player whose steering is being regarded
-
movement_1_12
public static void movement_1_12(org.bukkit.entity.Player player)Packet handler for vehicle steering in versions 1.12-1.12.2- Parameters:
player
- Player whose steering is being regarded
-
isObjectPacket
Check whether a given object is a valid steering packet (PacketPlayInSteerVehicle). If not, return false and send an error to the console.- Parameters:
object
- Checked object (likely a packet)- Returns:
- True if the given object is an instance of the steering packet (PacketPlayInSteerVehicle).
-