Search in sources :

Example 1 with SurroundingPlaneArmorStand

use of com.loohp.interactionvisualizer.entityholders.SurroundingPlaneArmorStand in project InteractionVisualizer by LOOHP.

the class BeaconDisplay method spawnArmorStands.

public Map<String, ArmorStand> spawnArmorStands(Block block) {
    Map<String, ArmorStand> map = new HashMap<>();
    Location origin = block.getLocation().add(0.5, 0.25, 0.5);
    SurroundingPlaneArmorStand line1 = new SurroundingPlaneArmorStand(origin.clone().add(0.0, 0.25, 0.0), 0.7, pathType);
    setStand(line1);
    SurroundingPlaneArmorStand line2 = new SurroundingPlaneArmorStand(origin.clone(), 0.7, pathType);
    setStand(line2);
    SurroundingPlaneArmorStand line3 = new SurroundingPlaneArmorStand(origin.clone().add(0.0, -0.25, 0.0), 0.7, pathType);
    setStand(line3);
    map.put("1", line1);
    map.put("2", line2);
    map.put("3", line3);
    PacketManager.sendArmorStandSpawn(InteractionVisualizerAPI.getPlayerModuleList(Modules.HOLOGRAM, KEY), line1);
    PacketManager.sendArmorStandSpawn(InteractionVisualizerAPI.getPlayerModuleList(Modules.HOLOGRAM, KEY), line2);
    PacketManager.sendArmorStandSpawn(InteractionVisualizerAPI.getPlayerModuleList(Modules.HOLOGRAM, KEY), line3);
    return map;
}
Also used : SurroundingPlaneArmorStand(com.loohp.interactionvisualizer.entityholders.SurroundingPlaneArmorStand) ArmorStand(com.loohp.interactionvisualizer.entityholders.ArmorStand) SurroundingPlaneArmorStand(com.loohp.interactionvisualizer.entityholders.SurroundingPlaneArmorStand) HashMap(java.util.HashMap) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) Location(org.bukkit.Location)

Example 2 with SurroundingPlaneArmorStand

use of com.loohp.interactionvisualizer.entityholders.SurroundingPlaneArmorStand in project InteractionVisualizer by LOOHP.

the class SpawnerDisplay method spawnArmorStands.

public Map<String, ArmorStand> spawnArmorStands(Block block) {
    Map<String, ArmorStand> map = new HashMap<>();
    Location origin = block.getLocation();
    Location loc = origin.clone().add(0.5, 0.2, 0.5);
    SurroundingPlaneArmorStand slot1 = new SurroundingPlaneArmorStand(loc.clone(), 0.7, pathType);
    setStand(slot1);
    map.put("1", slot1);
    PacketManager.sendArmorStandSpawn(InteractionVisualizerAPI.getPlayerModuleList(Modules.HOLOGRAM, KEY), slot1);
    return map;
}
Also used : SurroundingPlaneArmorStand(com.loohp.interactionvisualizer.entityholders.SurroundingPlaneArmorStand) ArmorStand(com.loohp.interactionvisualizer.entityholders.ArmorStand) SurroundingPlaneArmorStand(com.loohp.interactionvisualizer.entityholders.SurroundingPlaneArmorStand) HashMap(java.util.HashMap) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) Location(org.bukkit.Location)

Example 3 with SurroundingPlaneArmorStand

use of com.loohp.interactionvisualizer.entityholders.SurroundingPlaneArmorStand in project InteractionVisualizer by LOOHP.

the class ConduitDisplay method spawnArmorStands.

public Map<String, ArmorStand> spawnArmorStands(Block block) {
    Map<String, ArmorStand> map = new HashMap<>();
    Location origin = block.getLocation().add(0.5, 0.001, 0.5);
    SurroundingPlaneArmorStand line1 = new SurroundingPlaneArmorStand(origin.clone().add(0.0, 0.28, 0.0), 0.4, pathType);
    setStand(line1);
    SurroundingPlaneArmorStand line2 = new SurroundingPlaneArmorStand(origin.clone(), 0.4, pathType);
    setStand(line2);
    map.put("1", line1);
    map.put("2", line2);
    PacketManager.sendArmorStandSpawn(InteractionVisualizerAPI.getPlayerModuleList(Modules.HOLOGRAM, KEY), line1);
    PacketManager.sendArmorStandSpawn(InteractionVisualizerAPI.getPlayerModuleList(Modules.HOLOGRAM, KEY), line2);
    return map;
}
Also used : SurroundingPlaneArmorStand(com.loohp.interactionvisualizer.entityholders.SurroundingPlaneArmorStand) ArmorStand(com.loohp.interactionvisualizer.entityholders.ArmorStand) SurroundingPlaneArmorStand(com.loohp.interactionvisualizer.entityholders.SurroundingPlaneArmorStand) HashMap(java.util.HashMap) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) Location(org.bukkit.Location)

Aggregations

ArmorStand (com.loohp.interactionvisualizer.entityholders.ArmorStand)3 SurroundingPlaneArmorStand (com.loohp.interactionvisualizer.entityholders.SurroundingPlaneArmorStand)3 HashMap (java.util.HashMap)3 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)3 Location (org.bukkit.Location)3