![]() Public Hologram(Location location, String. RemovePacket = Class.forName("." + version + "PacketPlayOutEntityDestroy") SpawnPacket = Class.forName("." + version + "PacketPlayOutSpawnEntityLiving") NmsWorld = Class.forName("." + version + "World") ĪrmorStand = Class.forName("." + version + "EntityArmorStand") ĮntityLiving = Class.forName("." + version + "EntityLiving") Version = Bukkit.getServer().getClass().getPackage().getName().replace(".", ",").split(",") + "." ĬraftWorld = Class.forName("." + version + "CraftWorld") Įntit圜lass = Class.forName("." + version + "Entity") Private static Class craftWorld, entit圜lass, nmsWorld, armorStand, entityLiving, spawnPacket, removePacket * If you do wish, you can remove this message however the update link would be useful! * it may be a future feature however it is not an aim for this utility as of current. ![]() These armor stands cannot be interacted through, so please do take note of this, Gravity Table avity table lamp designconnected gubi gravity table lamp computer generated 3d model. * it uses reflection to access CB/NMS classes, which use an invisible armor stand to create floating names sculpture gold elements woman figure statuette statue shirts cheetah3d furniture interiors decorations cabinets ancient dog animal dog statue 3d. The only problem is checking when the velocity movement is over and you he to set the gravity tag back to false It will then be affected by gravity when it is moving, though. * A brief explanation on how this class works for those who may not know or are wondering, You could just set the gravity tag to true and then quickly give the armorstand velocity. * To stay up to date with the latest version, you can find it on my Gist here: * Feel free to use this however you see fit, and I hope that it is * Original credit goes to Janhektor on the Spigot forums. * Public Hologram utility by ParaPhoenix aka Phoenix1123. getVersion() - return the cb/nms version, for example 1_10_R1 getLocation() - Get location of the hologram update() -> Updates the hologram, this is automatically done when setLocation, addLine or setLines is called however you may update it if you wish. lines) -> Sets the text of the hologram (overriding any pre-existing text) setLocation() -> Sets the hologram location. players) -> Removes the hologram from specified player(s) using packets. players) -> Shows the hologram to specified player(s) using packets. remove() -> Removes the hologram from the world ![]() show() -> Spawns the hologram into the world Holo.show() Methods are split into two, packet and genuinely spawning an ArmorStand into the world, as of now, you can only update the one that is actually spawned into the world. So I suggest you to do a trick like delete that TextView 'display' and generate a new one with new Gravity properties. Holo.addLine("This is my line", "Line 2", "&cColor codes supported") TableLayout table1 (TableLayout) findViewById (R.id.table1) tGravity (Gravity.RIGHT) ( (TableLayout) table1).addView (txtresult) It works with me.
0 Comments
Leave a Reply. |