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;
}
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;
}
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;
}
Aggregations