Comments (5)
Try the latest release and let me know if it still gives you the same error.
from holoeasy.
Try the latest release and let me know if it still gives you the same error.
yes
from holoeasy.
Try the latest release and let me know if it still gives you the same error.
yes
still?
from holoeasy.
now it's working, how can I update the hologram lines? Because i'm trying to add a counter on the hologram and i want to update it. I have tried with line.update(player) but it doesn't work
from holoeasy.
public void updateTextLine(Hologram hologram) {
/* You have four ways to manage lines:
1) keep ILine<?>.
2) cast ILine<?> to the ITextLine.
3) cast directly to the implementation(impl could be TextLine, ClickableTextLine or TextALine).
If you don't know the type you have the various getType and getEType methods of ILine interface.
*/
ITextLine line = (ITextLine) hologram.getLines().get(0);
// update the text.
line.setObj("Updated");
// now you need to update this hologram line for all seeing players of the hologram.
line.update(hologram.getSeeingPlayers());
}
I hope I have clarified any doubts.
from holoeasy.
Related Issues (20)
- Text always above itemstack HOT 1
- Find alternative to fastutil HOT 2
- Custom collection classes HOT 1
- Concurrent modification exception HOT 2
- Disable Always Displaying to Players HOT 2
- FieldAccessException HOT 3
- Hologram is invisible HOT 1
- Does not work correctly on Paper 1.18.2
- Hologram spawning issue with 1.16.5
- HologramLib 3 HOT 19
- Use too much recent java things for 1.13
- Changing the text of an holo that already haves text bugs it HOT 1
- Doesn't work in 1.8.0 -1.8.8 HOT 2
- Doesn't work in 1.19.4 (and maybe other 1.19 versions) HOT 1
- Add option to use DisplayEntity as Hologram. HOT 6
- Add info on how to build sources HOT 2
- Still doesn't work in 1.8 to 1.8.8 HOT 2
- Plans on Holoeasy
- Support for ItemLine for 1.8.8 (as armorstand helmet) HOT 1
- Mutablestateof with delegated read/write system(like jetpack compose)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from holoeasy.