Comments (1)
Incorporating this would definitely be a good idea. Just one tiny little nitpick – repeatedly calling toJSONString()
on the same FancyMessage object doesn't actually yield much overhead as long as you don't modify the object in between calls, since the object internally caches the JSON string on the first such call. Subsequent calls then return the cached string, as long as the object hasn't been made "dirty" by modifications in the meantime.
Oddly enough, I developed the caching functionality to address the problem of performance when sending to multiple players – but never once thought to do the convenient thing and just include a method like the one you've described above :|
from fanciful.
Related Issues (20)
- Can't mvn deploy HOT 17
- Is it possible to use this library to align text in the 1.8 action bar? HOT 2
- itemTooltip(ItemStack) doesn't seem to respect damage values for items HOT 1
- Seems to be broken for latest 1.8.3 Spigot HOT 3
- Add replace function HOT 3
- GSON Missing? HOT 2
- Maven Repo down? HOT 4
- Can't load FancyMessage from String HOT 1
- Sending FancyMessage's HOT 3
- Spigot 1.7.10 - \n cartridge return? HOT 1
- Spigot 1.7.10 - \n cartridge return? HOT 2
- "NumberFormatException" HOT 10
- IllegalArgumentException when using fm.text() HOT 2
- Caused by: java.lang.IllegalArgumentException: The value must be specified. HOT 5
- Text alignment HOT 1
- .itemTooltip() no longer in fanciful? HOT 4
- Invalid Item shown in tooltip in chat with high item quantity
- Lack of Feature: Urls are not parsed into clickables
- Handling of Bukkit ChatColor HOT 1
- Shutting down Maven repo HOT 3
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 fanciful.