Package fr.skytasul.guardianbeam
Class Laser.Packets
java.lang.Object
fr.skytasul.guardianbeam.Laser.Packets
- Enclosing class:
- Laser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectcreateCrystal(org.bukkit.Location location, UUID uuid, int id) static ObjectcreateGuardian(org.bukkit.Location location, UUID uuid, int id) static ObjectcreatePacketEntitySpawnLiving(Object entity) static ObjectcreatePacketEntitySpawnNormal(Object entity) static ObjectcreatePacketMoveEntity(Object entity) static Object[]createPacketsRemoveEntities(int... entitiesId) static ObjectcreatePacketTeamCreate(String teamName, UUID... entities) static ObjectcreateSquid(org.bukkit.Location location, UUID uuid, int id) protected static voidstatic ObjectgetEntityData(Object entity) protected static voidloadReflection(@NotNull fr.skytasul.reflection.ReflectionAccessor reflection, @NotNull fr.skytasul.reflection.Version version) static voidmoveFakeEntity(Object entity, org.bukkit.Location location) static voidsendPackets(org.bukkit.entity.Player p, Object... packets) static voidsetCrystalTarget(Object watcher, org.bukkit.Location target) static voidsetEntityIDs(Object entity, UUID uuid, int id) static voidsetGuardianTarget(Object watcher, int targetId)
-
Constructor Details
-
Packets
protected Packets()
-
-
Method Details
-
ensureInitialized
protected static void ensureInitialized() -
loadReflection
protected static void loadReflection(@NotNull @NotNull fr.skytasul.reflection.ReflectionAccessor reflection, @NotNull @NotNull fr.skytasul.reflection.Version version) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
sendPackets
public static void sendPackets(org.bukkit.entity.Player p, Object... packets) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
createSquid
public static Object createSquid(org.bukkit.Location location, UUID uuid, int id) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
createGuardian
public static Object createGuardian(org.bukkit.Location location, UUID uuid, int id) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
createCrystal
public static Object createCrystal(org.bukkit.Location location, UUID uuid, int id) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
getEntityData
- Throws:
ReflectiveOperationException
-
createPacketEntitySpawnLiving
public static Object createPacketEntitySpawnLiving(Object entity) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
createPacketEntitySpawnNormal
public static Object createPacketEntitySpawnNormal(Object entity) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
setGuardianTarget
public static void setGuardianTarget(Object watcher, int targetId) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
setCrystalTarget
public static void setCrystalTarget(Object watcher, org.bukkit.Location target) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
createPacketsRemoveEntities
public static Object[] createPacketsRemoveEntities(int... entitiesId) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
setEntityIDs
public static void setEntityIDs(Object entity, UUID uuid, int id) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
moveFakeEntity
public static void moveFakeEntity(Object entity, org.bukkit.Location location) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
createPacketMoveEntity
- Throws:
ReflectiveOperationException
-
createPacketTeamCreate
public static Object createPacketTeamCreate(String teamName, UUID... entities) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-