API for adding new sign types
See original GitHub issueThe vanilla game is not very open to new types of signs being added. However, doing so is something quite a few mods will want to do, so it should be added to fapi.
I’ve added a single new sign to the game using vanilla systems. Terraform also does something similar. Here’s what I had to do:
- Add an invoker to
SignType.register()
and use it to add my SignType - Inject into
TexturedRenderLayers.getSignTextureId()
to add the namespace to the texture path MakeEDIT: See #684BlockEntityType.Builder.blocks
not finalInject intoBlockEntityType.Builder
ctor and replace the ImmutableSet with a HashSetAdd an accessor toBlockEntityType.blocks
and use it to add my sign and wall sign
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
EnvelopeRecipients Resource | REST API | DocuSign
The EnvelopeRecipients resource enables you manage the recipients of an envelope. All recipient types share a set of core parameters, but some recipient ......
Read more >Add fillable fields to documents for signature using API
Add a signature, text, initials or checkbox fields. The signNow API allows users to transform a static document into a fillable form within...
Read more >Zoho Sign | API Reference
Zoho Sign REST APIs leverage the industry-standard OAuth 2.0 protocol for ... Create Document; Get field types; Add fields and send document for...
Read more >Signing AWS API requests - AWS General Reference
If you use an AWS SDK or AWS command line tool to send API requests to AWS, these tools sign the API requests...
Read more >eSignature API from Dropbox Sign (Formerly ... - HelloSign
Dropbox Sign API offers various branding options to create a seamless, fully branded experience for your signers. Read guide. Right arrow icon. Transparent ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Imho, this seems out of the scope of Fabric API. The goal of Fabric API is not the be the behemoth that some other modding frameworks are, but simply near the bare minimum necessary to develop on the platform and allow mods to play nice with one another. The fact that multiple mods can already add sign types without a conflict and that there are libraries like Terraform available for the job indicate that it is not necessary for Fabric API to have such an api.
Discussion a while ago in discord led to the conclusion that the existing sign block entity is not extensible enough to handle this. Player’s suggestion was to whip up a your own sign.
Fabric API may look into a generic sign access interface for these types of modded signs, the shape of that API will need further discussion.