Package devs.beer.nativepackets.api
Interface SynchronizedPacketAccess
public interface SynchronizedPacketAccess
Bukkit-owned state exposed only inside a suspended packet callback.
-
Method Summary
Modifier and TypeMethodDescriptionblock(int x, int y, int z) Returns a block in the synchronized world/region, ornullwhen its chunk is not loaded.chunk(int x, int z) Returns a loaded chunk in the synchronized world/region without loading it.entity(int entityId) Looks up an entity in the synchronized world/region.location(double x, double y, double z) Creates a Bukkit location in the synchronized world.player()Returns the connection's Bukkit player, ornullbefore play.
-
Method Details
-
player
Object player()Returns the connection's Bukkit player, ornullbefore play. -
entity
Looks up an entity in the synchronized world/region. -
location
Creates a Bukkit location in the synchronized world. -
block
Returns a block in the synchronized world/region, ornullwhen its chunk is not loaded. -
chunk
Returns a loaded chunk in the synchronized world/region without loading it.
-