Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added horse entity and bug fixes #278

Open
wants to merge 277 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
277 commits
Select commit Hold shift + click to select a range
f16fcc4
Bump mc support version to 1.21.1
gabber235 Sep 5, 2024
832f22f
Include github token
gabber235 Sep 5, 2024
ebd316e
[Docs] Small changes
Marten-Mrfc Sep 5, 2024
22aae5b
[Docs] Navbar changes
Marten-Mrfc Sep 5, 2024
753e1fd
[Docs] Forgot to remove debug messages 😅
Marten-Mrfc Sep 5, 2024
47b1697
[Docs] Made browser do not open in dev mode
Marten-Mrfc Sep 6, 2024
756afd9
Make sure an npc doesn't go through negative nodes
gabber235 Sep 6, 2024
f11ebee
Rename thread when tied to task
gabber235 Sep 6, 2024
29027be
Only cancel dialogue by command interuption when in dialogue
gabber235 Sep 6, 2024
8ca2bbd
Update only the thread name when it has changed
gabber235 Sep 6, 2024
0f7d463
Add a new command to indicate to users that they need to us the quest…
gabber235 Sep 6, 2024
a22a8a7
Fix broken link issue on manifest page
gabber235 Sep 7, 2024
530f405
Create extensions directory
gabber235 Sep 7, 2024
98d0dd1
Rename variable
gabber235 Sep 7, 2024
2cb0d3f
Read Player messages for chat history
gabber235 Sep 7, 2024
e874b45
[Docs] Add playit.gg documentation
Marten-Mrfc Sep 8, 2024
84d5942
Fix Page name/ID bugs (renaming and displaying)
gabber235 Sep 8, 2024
eb9c7c7
Ensure creating page file
gabber235 Sep 8, 2024
3f96fd2
Fix magma cube height
gabber235 Sep 8, 2024
8739152
Clean after testing
gabber235 Sep 8, 2024
d1b8a61
Continue if tag failed
gabber235 Sep 8, 2024
8cff9e1
Make publish directory when not created
gabber235 Sep 8, 2024
b20f913
Make Generic Scale Data
gabber235 Sep 9, 2024
0ed0c38
Add Game Time & Weather Cinematic Entries
gabber235 Sep 9, 2024
8f1549a
Create ScaleData Entry
gabber235 Sep 9, 2024
48fa72b
Fix routing after creating a page
gabber235 Sep 9, 2024
6688602
Change capitalisation in panel
gabber235 Sep 11, 2024
f423513
Fixed issue in Enum blueprint also counting other interfaces
gabber235 Sep 11, 2024
5f758f1
Changed Float Range Editor to generic Closed Range Editor
gabber235 Sep 11, 2024
00f5689
Entity Instance Can now be Sound Emitters
gabber235 Sep 11, 2024
5206c75
Create Ambient Sound Activity
gabber235 Sep 11, 2024
d2e2911
Fix layout issue in fake node
gabber235 Sep 11, 2024
e410931
Bump express from 4.19.2 to 4.20.0 in /documentation
dependabot[bot] Sep 11, 2024
69dee93
Add unselect for sound id
gabber235 Sep 11, 2024
fc16743
Add empty list indication
gabber235 Sep 11, 2024
f9a733b
Add Simple message without speaker
gabber235 Sep 11, 2024
f928c83
Allow for reverse proxies
gabber235 Sep 11, 2024
25ee94b
We don't need to set the title when creating a task as it will alread…
gabber235 Sep 11, 2024
480fa03
Improve interation and packet handling
gabber235 Sep 11, 2024
9456c98
Create MythicMobKillPlayerEventEntry
gabber235 Sep 11, 2024
b8d2321
Fix flutter beta deprecations
gabber235 Sep 11, 2024
a66b7fd
Made a typo in the url builder
gabber235 Sep 11, 2024
5a7f7eb
Fix skin texture breaking when incorrect
gabber235 Sep 12, 2024
4e02385
Fix null deserialisation in GSON
gabber235 Sep 12, 2024
95d6a55
Animate options
gabber235 Sep 12, 2024
b5c73ce
updated to 0.6 update + added llama and trader llama (updated to 0.6)…
Kerzinator24 Sep 12, 2024
2464efa
fix(docs): expired discord invites
AV3RG Sep 14, 2024
ccf96b8
[Docs] Changed version 0.5.0 to 0.5.1
Marten-Mrfc Sep 15, 2024
ed32a6c
[Docs] Fix playbar not showing
Marten-Mrfc Sep 15, 2024
c2b24c4
[Docs] Really really small fix
Marten-Mrfc Sep 16, 2024
72458ad
Fix WithRotation Modifier
gabber235 Sep 13, 2024
41ae7dc
Fix GSON null serialisation
gabber235 Sep 20, 2024
e1670fe
Update Item Data Type and Serialisation
gabber235 Sep 20, 2024
5c3644c
Improve error handling
gabber235 Sep 20, 2024
544c288
Cache snippets for memory savings
gabber235 Sep 20, 2024
f3eeafb
Fix page names in ui
gabber235 Sep 20, 2024
e31d132
Create RemovePotionEffectActionEntry
gabber235 Sep 20, 2024
5faad39
Fix content mode keeping items in inventory after editing
gabber235 Sep 20, 2024
4a1ed7a
Path Stream avoid negative nodes
gabber235 Sep 22, 2024
c149325
Update Upload Artifact version
gabber235 Sep 22, 2024
4e9517e
Fix artifact extension jar path
gabber235 Sep 22, 2024
47f1932
[Readme] Upload demo video for further editing
Marten-Mrfc Sep 22, 2024
52afca8
README Update
Marten-Mrfc Sep 24, 2024
e67a5f4
Add Extension Verifiers
gabber235 Sep 26, 2024
8ba61a9
Fix empty staging folder
gabber235 Sep 26, 2024
05fb25a
Move to support rank
gabber235 Sep 26, 2024
ccbc561
Fix Default annotation in engine
gabber235 Sep 26, 2024
88a254e
Add SkipCinematicEnty
gabber235 Sep 26, 2024
5563c54
Fix issue with passengers for player entities
gabber235 Sep 26, 2024
989e17f
Fix issue with blank commands in Command Entries
gabber235 Sep 26, 2024
43f6288
Dialogue Continue first completes animation
gabber235 Sep 29, 2024
1d82635
Fix drag and drop disconnect entry reference when non-list field
gabber235 Sep 29, 2024
fda0f93
Fix Capturing patrol activity
gabber235 Sep 29, 2024
b6f9d58
Fix Entity Cinematic Entity equipment not showing
gabber235 Sep 29, 2024
0bfa858
Remove rename page inputfield submit
gabber235 Sep 29, 2024
56d44af
Serialized Item allow to specify amount
gabber235 Sep 29, 2024
7e25d10
Created ActionBar Dialogue
gabber235 Sep 29, 2024
ce95d87
Create BlockCommandCinematicEntry
gabber235 Sep 29, 2024
a31f8e7
Update default data
gabber235 Sep 29, 2024
34c19e8
Fix arm swing staying
gabber235 Sep 30, 2024
6afc27d
Add has message check for chat history
gabber235 Oct 8, 2024
fce2415
Add import for shadowjar
gabber235 Oct 9, 2024
3d7a76d
[Docs] Small changes
Marten-Mrfc Oct 9, 2024
843645a
[Docs] Updated give item page
Marten-Mrfc Oct 9, 2024
0562fa6
[Docs] PlaceholderAPI troubleshooting update
Marten-Mrfc Oct 9, 2024
bc9037c
Unfocus in search on a entry focuses the search bar instead of closin…
gabber235 Oct 11, 2024
1891213
Fix issue where drag & drop was not accepting valid entry
gabber235 Oct 12, 2024
86c6de8
Disable <newline> in minimessages as it is handled by most things dif…
gabber235 Oct 12, 2024
2841f4d
Add Weather Audience Entry
gabber235 Oct 13, 2024
2bd30c8
Change chapter dialogue now shows page name instead of page id
gabber235 Oct 13, 2024
d548475
Play step sound for entity cinematic
gabber235 Oct 13, 2024
b4cae9c
Add flight duration instead of power
gabber235 Oct 13, 2024
6706866
Fix Page drag & drop
gabber235 Oct 13, 2024
b7cd325
added LookAtBlockActivity, LookAtPitchYawActivity, RandomPatrolActivity
Kerzinator24 Sep 29, 2024
eff9ade
Add child activity example
gabber235 Oct 2, 2024
352a99d
implemented the child activity logic into LookAtBlockActivity and Ran…
Kerzinator24 Oct 4, 2024
0d0bac4
Update extensions/EntityExtension/src/main/kotlin/com/typewritermc/en…
gabber235 Oct 7, 2024
8e29e40
resolved the issues coderabbit found
Kerzinator24 Oct 9, 2024
e38c678
Cleanup
gabber235 Oct 13, 2024
0e98719
added InteractionEntity
Kerzinator24 Oct 11, 2024
aa6a04e
Cleanup Interaction Entity
gabber235 Oct 13, 2024
41a4c1a
added InteractionEntity
Kerzinator24 Oct 11, 2024
9478b3d
added PillagerEntity and VindicatorEntity
Kerzinator24 Oct 13, 2024
98f94f2
Delete InteractionEntity.kt
gabber235 Oct 13, 2024
009b32d
added valid icons
Kerzinator24 Oct 13, 2024
ecd39cd
Add show edge distance option
gabber235 Oct 13, 2024
465e837
Add default minecraft formatting if formatting is not supplied
gabber235 Oct 13, 2024
59e8435
Fix icon
gabber235 Oct 13, 2024
59f0696
Add intake pipeline for winston
gabber235 Oct 14, 2024
e64f3d9
Add AI to Winston
gabber235 Oct 16, 2024
66f0022
Show page name in the page editor
gabber235 Oct 16, 2024
757d307
Ignore create channel on winston added
gabber235 Oct 17, 2024
c788d6e
Update examples to indicate that intake is mandatory
gabber235 Oct 19, 2024
9da6867
Clearify intake close message
gabber235 Oct 19, 2024
b514b74
Added new content to README
Marten-Mrfc Oct 20, 2024
d87f503
Reduce Winstons allowed messages
gabber235 Oct 22, 2024
c20ce9f
Add additional examples
gabber235 Oct 22, 2024
5778985
Fix eye height for entities with scale data
gabber235 Oct 23, 2024
18b2258
Add colored and placeholder modifiers
gabber235 Oct 23, 2024
903b9b5
Bump mermaid from 10.9.1 to 10.9.3 in /documentation
dependabot[bot] Oct 22, 2024
73a0a7b
Bump http-proxy-middleware from 2.0.6 to 2.0.7 in /documentation
dependabot[bot] Oct 24, 2024
62c6b8c
[Github] Added Issue template
Marten-Mrfc Oct 29, 2024
ace7c0a
Add additional remiders for uncompleted intake
gabber235 Oct 29, 2024
f7e2b4e
Add hosting example
gabber235 Oct 31, 2024
1ca2d19
Add error log when world cannot be found
gabber235 Oct 31, 2024
45617d8
Check example attachment for contributer instead of support
gabber235 Oct 31, 2024
e6018b6
[Bot] Add entity example
Marten-Mrfc Oct 31, 2024
e55c5b2
[Docs] Rewrote External Server Providers section
Marten-Mrfc Oct 31, 2024
71e16dd
[Bot] More ai examples
Marten-Mrfc Nov 2, 2024
9a273b8
[ReadMe] Added video tag
Marten-Mrfc Nov 3, 2024
5732b5f
[Docs] Updated docusaurus. #Lowerbuildtimes!
Marten-Mrfc Nov 4, 2024
de97b15
Update dependencies
gabber235 Nov 5, 2024
b1cc20f
Recorlor random patrol activity
gabber235 Nov 5, 2024
b0c5192
Ambient Sound with multiple sounds breaks weighted random
gabber235 Nov 5, 2024
4425c65
Empty Staging folder gets created sometimes when starting up the server
gabber235 Nov 5, 2024
ebcf525
Pumpking Cinematic not set when wearing Helmet
gabber235 Nov 5, 2024
e950c38
@OnlyTags not being registered
gabber235 Nov 5, 2024
47f9afe
Stop recording entity cinematic without arctifact
gabber235 Nov 5, 2024
fbe73a5
Disable pumpkin cinematic during simulation
gabber235 Nov 5, 2024
f14758d
Fix typo's
gabber235 Nov 5, 2024
4a8086b
Disable link with to link an entry with itself
gabber235 Nov 7, 2024
da5f25c
Make sure never to delete page files
gabber235 Nov 7, 2024
fd92068
Improve order of operations
gabber235 Nov 8, 2024
da05cb4
Add safeguards for when overriding something with nothing
gabber235 Nov 8, 2024
e9d58fa
Remove the registing of events in the plugin
gabber235 Nov 8, 2024
7f720cc
Create Build and Publish Release workflow
gabber235 Nov 9, 2024
f386445
Update documentation to v0.6
gabber235 Nov 9, 2024
e50890e
Update Dependencies
gabber235 Nov 9, 2024
8a52891
Bump path-to-regexp from 1.8.0 to 1.9.0 in /documentation
dependabot[bot] Nov 9, 2024
a5c47e8
Bump micromatch from 4.0.7 to 4.0.8 in /documentation
dependabot[bot] Nov 9, 2024
a9efd19
Reset gradle build for extensiona
gabber235 Nov 9, 2024
d774b92
Remove the maven repo push because it is already happening
gabber235 Nov 9, 2024
5920091
Achieve resoved thread from 3 days to 1
gabber235 Nov 9, 2024
0b9a5a5
[Git] Change .gitattributes
Marten-Mrfc Nov 10, 2024
94a012f
Additionall suggestion
gabber235 Nov 10, 2024
4c214b1
Lower long press delay for Entry drag & drop
gabber235 Nov 10, 2024
2ca5acf
Create Duplicate Entry action
gabber235 Nov 10, 2024
534d2db
Create dynamic variables
gabber235 Nov 8, 2024
bdde68d
Make Entries allow for Variables
gabber235 Nov 10, 2024
fc19155
Fix complex blueprint serialization
gabber235 Nov 10, 2024
9188437
Write variable documentation
gabber235 Nov 10, 2024
3af2d4e
Make auto resolving take 2 days instead of 1
gabber235 Nov 12, 2024
5f265b4
Disable ping to support when completing manually
gabber235 Nov 12, 2024
729312f
Improve entry deprecation notice
gabber235 Nov 12, 2024
9ed9e37
Allow headers to inherit actions from a child
gabber235 Nov 12, 2024
ba42848
Implemented skin variable
gabber235 Nov 12, 2024
d2e33c6
Add Ranged Variable
gabber235 Nov 13, 2024
786b8b7
Make sure all options are animated before debouncing
gabber235 Nov 13, 2024
65c8301
Fixed actions not triggering next actions
gabber235 Nov 13, 2024
d7e69e8
Only disable command api when loaded
gabber235 Nov 13, 2024
792410f
Deploying to develop from @ gabber235/TypeWriter@d7e69e8e88801b72026d…
gabber235 Nov 13, 2024
0861b0e
Fixed staging not auto saving
gabber235 Nov 13, 2024
0a34cf8
Reload the webpanel data when reloading typewriter
gabber235 Nov 13, 2024
de9e0af
Recaluclating the roadnetwork creates 1 snapshot per world instead of…
gabber235 Nov 13, 2024
8932be3
Fix coordinate with null
gabber235 Nov 15, 2024
32646bd
Rename location to position
gabber235 Nov 15, 2024
822e15e
Limit intake to 1 message of winston
gabber235 Nov 18, 2024
ff0f1fa
Make lines concurrent safe
gabber235 Nov 18, 2024
1b76847
[Docs] Fixed dev building not working
Marten-Mrfc Nov 18, 2024
d6d21fb
Bump cross-spawn from 7.0.3 to 7.0.6 in /documentation
dependabot[bot] Nov 18, 2024
12d55f0
[Docs] PacketEvents troubleshooting added
Marten-Mrfc Nov 18, 2024
0bd0eb5
Merge pull request #274 from gabber235/dependabot/npm_and_yarn/docume…
Marten-Mrfc Nov 18, 2024
1e21585
[Docs] Added shortcuts
Marten-Mrfc Nov 18, 2024
e908ee7
[Docs] Typo fix
Marten-Mrfc Nov 18, 2024
93daf67
[Docs] Add warning entity extension
Marten-Mrfc Nov 18, 2024
5a5870f
[Docs] Added conditional npc showing page
Marten-Mrfc Nov 18, 2024
b7730ca
[Docs] Quick bug fix
Marten-Mrfc Nov 18, 2024
0d46926
[docs] Quick fix #2
Marten-Mrfc Nov 18, 2024
868b0c5
Remove Winston Intake
gabber235 Nov 19, 2024
cb80fe1
Remove limit on search
gabber235 Nov 19, 2024
74514f1
Make Eye Height shift fixed
gabber235 Nov 19, 2024
24f1f4d
Catch Packet Events errors to not block dialogue
gabber235 Nov 20, 2024
cb14b99
Drop items if inventory is full
gabber235 Nov 20, 2024
fa62886
Make sure that subtypes also have default values for primary constructor
gabber235 Nov 20, 2024
42dbebc
Prevent invalid commands from blocking Typewriter startup
gabber235 Nov 20, 2024
1e5c436
[Bot] Test bot commit
Marten-Mrfc Nov 20, 2024
7f3c298
[Bot] rename command
Marten-Mrfc Nov 20, 2024
8093f15
Allow to change the named entity background color
gabber235 Nov 20, 2024
2599569
Add inspect and query command for facts
gabber235 Nov 21, 2024
5a41054
Allow entry placeholders to have parameters
gabber235 Nov 21, 2024
efb423c
added ArmorStandEntity, EnderDragonEntity, ParrotEntity, WolfEntity a…
Kerzinator24 Nov 22, 2024
ef47599
Fix issues
gabber235 Nov 24, 2024
2cfb979
Add additional docs
gabber235 Nov 24, 2024
060b30d
[Docs] Update + change to 0.6.1
Marten-Mrfc Nov 24, 2024
f38e97d
[Blog] Added new blog posts
Marten-Mrfc Nov 24, 2024
e6b2871
Fix physical interaction not triggering
gabber235 Nov 24, 2024
456ebb6
Create LookingDirectionVariable
gabber235 Nov 24, 2024
252ae0b
Fix checkboxes for boolean not updating
gabber235 Nov 24, 2024
dea9f70
[Docs] Bug fix
Marten-Mrfc Nov 24, 2024
26315d9
Add sudo option to the player command entry
gabber235 Nov 24, 2024
fe26b67
Create CalculatedFact with evaluated expression and placeholders
gabber235 Nov 24, 2024
e7aaf2b
Add %typewriter_<entry id>:remaining:<number>% parameter
gabber235 Nov 24, 2024
72acc84
Create block display entity
gabber235 Nov 24, 2024
cd7e82d
Count item in cursor
gabber235 Nov 24, 2024
944aa11
Create WorldAudience Entry
gabber235 Nov 24, 2024
a9c74c6
Create WeightedRandomTriggerGate
gabber235 Nov 24, 2024
0ffee31
Create BulkFactsResetActionEntry
gabber235 Nov 24, 2024
923d41a
Create PotionEffectAudience
gabber235 Nov 24, 2024
191c63d
Create FactValueVariable
gabber235 Nov 24, 2024
2590227
Add no elements to map editor
gabber235 Nov 24, 2024
d03b8f4
Bump module plugin version
gabber235 Nov 24, 2024
f50fd75
When clicking on a block to create a node, creates the node at the block
gabber235 Nov 26, 2024
ff15144
Made Pathstream list concurrent
gabber235 Nov 28, 2024
8d3b5fd
Allow for click on air
gabber235 Nov 28, 2024
bbf4821
Prevent desync between recording and playback
gabber235 Nov 28, 2024
fc9dae4
When no child is not parsable, just return null
gabber235 Nov 28, 2024
cd598c0
Make the default value also the default when no value is present
gabber235 Nov 28, 2024
92bb76a
Deploying to develop from @ gabber235/TypeWriter@cd598c03011183803498…
gabber235 Nov 29, 2024
9c8bb8c
Fix with rotation for positions
gabber235 Nov 30, 2024
9455a9c
Rewrite Header calculation
gabber235 Dec 4, 2024
8027c80
Fix block place with location
gabber235 Dec 4, 2024
aa0f0f9
Revert Looking Direction Variable to use a vector scalar
gabber235 Dec 4, 2024
b6f8290
Allow rotation for PlayerWorldPositionVariable
gabber235 Dec 4, 2024
664bb64
Implement World Editor
gabber235 Dec 4, 2024
78db1d4
Allow InteractionIndicatorDefinition to spawn child definition
gabber235 Dec 4, 2024
475bb38
Fix Stacked Entity to not ride itself
gabber235 Dec 4, 2024
d284c57
Fix Map with Ref key being usable
gabber235 Dec 4, 2024
bb2923e
Show Map Ref keys as triggers and delete from map when entry gets del…
gabber235 Dec 4, 2024
45e4201
Prevent errors when sound has no files
gabber235 Dec 4, 2024
f22eff0
Fix Placeholder Typo
gabber235 Dec 4, 2024
9fd37c2
Fix empty (de)serialization for SerializedItem
gabber235 Dec 4, 2024
8677fd2
Partially send messages when it is not needed to resend full history
gabber235 Dec 4, 2024
77124d0
Teleport player async and load in chuncks before
gabber235 Dec 4, 2024
f68261c
Add Rotation data for display entities
gabber235 Dec 4, 2024
a0d5449
Update entitylib
gabber235 Dec 4, 2024
80f6a20
Fix bedrock dialogue speaker name
gabber235 Dec 4, 2024
ae5e5bc
Have the interaction indicator definition show the indicator for itself.
gabber235 Dec 4, 2024
8134688
Deploying to develop from @ gabber235/TypeWriter@ae5e5bccb29d3f4bcf01…
gabber235 Dec 5, 2024
36c2635
Added horse entity and bug fixes
myiume Dec 6, 2024
60586b5
Added horse eating data to horse entity
myiume Dec 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Docs] Forgot to remove debug messages 😅
Marten-Mrfc authored and gabber235 committed Nov 9, 2024
commit 753e1fd53ea1c9473a4e5ef61445d108a81a9b4e
54 changes: 27 additions & 27 deletions documentation/plugins/code-snippets/snippets.json
Original file line number Diff line number Diff line change
@@ -1,98 +1,98 @@
{
"initializer": {
"file": "src/main/kotlin/com/typewritermc/example/ExampleInitializer.kt",
"content": "import com.typewritermc.core.extension.Initializable\nimport com.typewritermc.core.extension.annotations.Initializer\n\n@Initializer\nobject ExampleInitializer : Initializable {\n override fun initialize() {\n // Do something when the extension is initialized\n }\n\n override fun shutdown() {\n // Do something when the extension is shutdown\n }\n}"
},
"cinematic_entry": {
"file": "src/main/kotlin/com/typewritermc/example/entries/cinematic/ExampleCinematicEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\cinematic\\ExampleCinematicEntry.kt",
"content": "@Entry(\"example_cinematic\", \"An example cinematic entry\", Colors.BLUE, \"material-symbols:cinematic-blur\")\nclass ExampleCinematicEntry(\n override val id: String = \"\",\n override val name: String = \"\",\n override val criteria: List<Criteria> = emptyList(),\n @Segments(Colors.BLUE, \"material-symbols:cinematic-blur\")\n val segments: List<ExampleSegment> = emptyList(),\n) : CinematicEntry {\n override fun create(player: Player): CinematicAction {\n return ExampleCinematicAction(player, this)\n }\n}"
},
"cinematic_segment_with_min_max": {
"file": "src/main/kotlin/com/typewritermc/example/entries/cinematic/ExampleCinematicEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\cinematic\\ExampleCinematicEntry.kt",
"content": " @Segments(Colors.BLUE, \"material-symbols:cinematic-blur\")\n @InnerMin(Min(10))\n @InnerMax(Max(20))\n val segments: List<ExampleSegment> = emptyList(),"
},
"cinematic_create_actions": {
"file": "src/main/kotlin/com/typewritermc/example/entries/cinematic/ExampleCinematicEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\cinematic\\ExampleCinematicEntry.kt",
"content": " // This will be used when the cinematic is normally displayed to the player.\n override fun create(player: Player): CinematicAction {\n return DefaultCinematicAction(player, this)\n }\n\n // This is used during content mode to display the cinematic to the player.\n // It may be null to not show it during simulation.\n override fun createSimulating(player: Player): CinematicAction? {\n return SimulatedCinematicAction(player, this)\n }\n\n // This is used during content mode to record the cinematic.\n // It may be null to not record it during simulation.\n override fun createRecording(player: Player): CinematicAction? {\n return RecordingCinematicAction(player, this)\n }"
},
"cinematic_segment": {
"file": "src/main/kotlin/com/typewritermc/example/entries/cinematic/ExampleCinematicEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\cinematic\\ExampleCinematicEntry.kt",
"content": "data class ExampleSegment(\n override val startFrame: Int = 0,\n override val endFrame: Int = 0,\n) : Segment"
},
"cinematic_action": {
"file": "src/main/kotlin/com/typewritermc/example/entries/cinematic/ExampleCinematicEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\cinematic\\ExampleCinematicEntry.kt",
"content": "class ExampleCinematicAction(\n val player: Player,\n val entry: ExampleCinematicEntry,\n) : CinematicAction {\n override suspend fun setup() {\n // Initialize variables, spawn entities, etc.\n }\n\n override suspend fun tick(frame: Int) {\n val segment = entry.segments activeSegmentAt frame\n // Can be null if no segment is active\n\n // The `frame` parameter is not necessarily next frame: `frame != old(frame)+1`\n\n // Execute tick logic for the segment\n }\n\n override suspend fun teardown() {\n // Remove entities, etc.\n }\n\n override fun canFinish(frame: Int): Boolean = entry.segments canFinishAt frame\n}"
},
"cinematic_simple_action": {
"file": "src/main/kotlin/com/typewritermc/example/entries/cinematic/ExampleCinematicEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\cinematic\\ExampleCinematicEntry.kt",
"content": "class ExampleSimpleCinematicAction(\n val player: Player,\n entry: ExampleCinematicEntry,\n) : SimpleCinematicAction<ExampleSegment>() {\n override val segments: List<ExampleSegment> = entry.segments\n\n override suspend fun startSegment(segment: ExampleSegment) {\n super.startSegment(segment) // Keep this\n // Called when a segment starts\n }\n\n override suspend fun tickSegment(segment: ExampleSegment, frame: Int) {\n super.tickSegment(segment, frame) // Keep this\n // Called every tick while the segment is active\n // Will always be called after startSegment and never after stopSegment\n\n // The `frame` parameter is not necessarily next frame: `frame != old(frame)+1`\n }\n\n override suspend fun stopSegment(segment: ExampleSegment) {\n super.stopSegment(segment) // Keep this\n // Called when the segment ends\n // Will also be called if the cinematic is stopped early\n }\n}"
},
"audience_entry": {
"file": "src/main/kotlin/com/typewritermc/example/entries/manifest/ExampleAudienceEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\manifest\\ExampleAudienceEntry.kt",
"content": "@Entry(\"example_audience\", \"An example audience entry.\", Colors.GREEN, \"material-symbols:chat-rounded\")\nclass ExampleAudienceEntry(\n override val id: String,\n override val name: String,\n) : AudienceEntry {\n override fun display(): AudienceDisplay {\n return ExampleAudienceDisplay()\n }\n}"
},
"audience_display": {
"file": "src/main/kotlin/com/typewritermc/example/entries/manifest/ExampleAudienceEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\manifest\\ExampleAudienceEntry.kt",
"content": "class ExampleAudienceDisplay : AudienceDisplay() {\n override fun initialize() {\n // This is called when the first player is added to the audience.\n super.initialize()\n // Do something when the audience is initialized\n }\n\n override fun onPlayerAdd(player: Player) {\n // Do something when a player gets added to the audience\n }\n\n override fun onPlayerRemove(player: Player) {\n // Do something when a player gets removed from the audience\n }\n\n override fun dispose() {\n super.dispose()\n // Do something when the audience is disposed\n // It will always call onPlayerRemove for all players.\n // So no player cleanup is needed here.\n }\n}"
},
"tickable_audience_display": {
"file": "src/main/kotlin/com/typewritermc/example/entries/manifest/ExampleAudienceEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\manifest\\ExampleAudienceEntry.kt",
"content": "// highlight-next-line\nclass TickableAudienceDisplay : AudienceDisplay(), TickableDisplay {\n override fun onPlayerAdd(player: Player) {}\n override fun onPlayerRemove(player: Player) {}\n\n // highlight-start\n override fun tick() {\n // Do something when the audience is ticked\n players.forEach { player ->\n // Do something with the player\n }\n\n // This is running asynchronously\n // If you need to do something on the main thread\n ThreadType.SYNC.launch {\n // Though this will run a tick later, to sync with the bukkit scheduler.\n }\n }\n // highlight-end\n}"
},
"audience_display_with_events": {
"file": "src/main/kotlin/com/typewritermc/example/entries/manifest/ExampleAudienceEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\manifest\\ExampleAudienceEntry.kt",
"content": "class AudienceDisplayWithEvents : AudienceDisplay() {\n override fun onPlayerAdd(player: Player) {}\n override fun onPlayerRemove(player: Player) {}\n\n // highlight-start\n @EventHandler\n fun onSomeEvent(event: SomeBukkitEvent) {\n // Do something when the event is triggered\n // This will trigger for all players, not just the ones in the audience.\n // So we need to check if the player is in the audience.\n if (event.player in this) {\n // Do something with the player\n }\n }\n // highlight-end\n}"
},
"artifact_entry": {
"file": "src/main/kotlin/com/typewritermc/example/entries/static/ExampleArtifactEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\static\\ExampleArtifactEntry.kt",
"content": "@Entry(\"example_artifact\", \"An example artifact entry.\", Colors.BLUE, \"material-symbols:home-storage-rounded\")\nclass ExampleArtifactEntry(\n override val id: String = \"\",\n override val name: String = \"\",\n override val artifactId: String = \"\",\n) : ArtifactEntry"
},
"artifact_access": {
"file": "src/main/kotlin/com/typewritermc/example/entries/static/ExampleArtifactEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\static\\ExampleArtifactEntry.kt",
"content": "suspend fun accessArtifactData(ref: Ref<out ArtifactEntry>) {\n val assetManager = KoinJavaComponent.get<AssetManager>(AssetManager::class.java)\n val entry = ref.get() ?: return\n val content: String? = assetManager.fetchAsset(entry)\n // Do something with the content\n}"
},
"asset_entry": {
"file": "src/main/kotlin/com/typewritermc/example/entries/static/ExampleAssetEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\static\\ExampleAssetEntry.kt",
"content": "@Entry(\"example_asset\", \"An example asset entry.\", Colors.BLUE, \"material-symbols:home-storage-rounded\")\nclass ExampleAssetEntry(\n override val id: String = \"\",\n override val name: String = \"\",\n override val path: String = \"\",\n) : AssetEntry"
},
"asset_access": {
"file": "src/main/kotlin/com/typewritermc/example/entries/static/ExampleAssetEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\static\\ExampleAssetEntry.kt",
"content": "suspend fun accessAssetData(ref: Ref<out AssetEntry>) {\n val assetManager = KoinJavaComponent.get<AssetManager>(AssetManager::class.java)\n val entry = ref.get() ?: return\n val content: String? = assetManager.fetchAsset(entry)\n // Do something with the content\n}"
},
"sound_id_entry": {
"file": "src/main/kotlin/com/typewritermc/example/entries/static/ExampleSoundIdEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\static\\ExampleSoundIdEntry.kt",
"content": "@Entry(\"example_sound\", \"An example sound entry.\", Colors.BLUE, \"icon-park-solid:volume-up\")\nclass ExampleSoundIdEntry(\n override val id: String = \"\",\n override val name: String = \"\",\n override val soundId: String = \"\",\n) : SoundIdEntry"
},
"sound_source_entry": {
"file": "src/main/kotlin/com/typewritermc/example/entries/static/ExampleSoundSourceEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\static\\ExampleSoundSourceEntry.kt",
"content": "@Entry(\"example_sound_source\", \"An example sound source entry.\", Colors.BLUE, \"ic:round-spatial-audio-off\")\nclass ExampleSoundSourceEntry(\n override val id: String = \"\",\n override val name: String = \"\",\n) : SoundSourceEntry {\n override fun getEmitter(): Sound.Emitter {\n // Return the emitter that should be used for the sound.\n // A bukkit entity can be used here.\n return Sound.Emitter.self()\n }\n}"
},
"speaker_entry": {
"file": "src/main/kotlin/com/typewritermc/example/entries/static/ExampleSpeakerEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\static\\ExampleSpeakerEntry.kt",
"content": "@Entry(\"example_speaker\", \"An example speaker entry.\", Colors.BLUE, \"ic:round-spatial-audio-off\")\nclass ExampleSpeakerEntry(\n override val id: String = \"\",\n override val name: String = \"\",\n override val displayName: String = \"\",\n override val sound: Sound = Sound.EMPTY,\n) : SpeakerEntry"
},
"action_entry": {
"file": "src/main/kotlin/com/typewritermc/example/entries/trigger/ExampleActionEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\trigger\\ExampleActionEntry.kt",
"content": "@Entry(\"example_action\", \"An example action entry.\", Colors.RED, \"material-symbols:touch-app-rounded\")\nclass ExampleActionEntry(\n override val id: String = \"\",\n override val name: String = \"\",\n override val criteria: List<Criteria> = emptyList(),\n override val modifiers: List<Modifier> = emptyList(),\n override val triggers: List<Ref<TriggerableEntry>> = emptyList(),\n) : ActionEntry {\n override fun execute(player: Player) {\n super.execute(player) // This will apply all the modifiers.\n // Do something with the player\n }\n}"
},
"custom_triggering_action_entry": {
"file": "src/main/kotlin/com/typewritermc/example/entries/trigger/ExampleCustomTriggeringActionEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\trigger\\ExampleCustomTriggeringActionEntry.kt",
"content": "@Entry(\n \"example_custom_triggering_action\",\n \"An example custom triggering entry.\",\n Colors.RED,\n \"material-symbols:touch-app-rounded\"\n)\nclass ExampleCustomTriggeringActionEntry(\n override val id: String = \"\",\n override val name: String = \"\",\n override val criteria: List<Criteria> = emptyList(),\n override val modifiers: List<Modifier> = emptyList(),\n @SerializedName(\"triggers\")\n override val customTriggers: List<Ref<TriggerableEntry>> = emptyList(),\n) : CustomTriggeringActionEntry {\n override fun execute(player: Player) {\n super.execute(player) // This will apply the modifiers.\n // Do something with the player\n player.triggerCustomTriggers() // Can be called later to trigger the next entries.\n }\n}"
},
"dialogue_entry": {
"file": "src/main/kotlin/com/typewritermc/example/entries/trigger/ExampleDialogueEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\trigger\\ExampleDialogueEntry.kt",
"content": "@Entry(\"example_dialogue\", \"An example dialogue entry.\", Colors.BLUE, \"material-symbols:chat-rounded\")\nclass ExampleDialogueEntry(\n override val id: String = \"\",\n override val name: String = \"\",\n override val criteria: List<Criteria> = emptyList(),\n override val modifiers: List<Modifier> = emptyList(),\n override val triggers: List<Ref<TriggerableEntry>> = emptyList(),\n override val speaker: Ref<SpeakerEntry> = emptyRef(),\n @MultiLine\n @Placeholder\n @Colored\n @Help(\"The text to display to the player.\")\n val text: String = \"\",\n) : DialogueEntry"
},
"dialogue_messenger": {
"file": "src/main/kotlin/com/typewritermc/example/entries/trigger/ExampleDialogueEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\trigger\\ExampleDialogueEntry.kt",
"content": "@Messenger(ExampleDialogueEntry::class)\nclass ExampleDialogueDialogueMessenger(player: Player, entry: ExampleDialogueEntry) :\n DialogueMessenger<ExampleDialogueEntry>(player, entry) {\n\n companion object : MessengerFilter {\n override fun filter(player: Player, entry: DialogueEntry): Boolean = true\n }\n\n // Called every game tick (20 times per second).\n // The cycle is a parameter that is incremented every tick, starting at 0.\n override fun tick(playTime: Duration) {\n super.tick(playTime)\n if (state != MessengerState.RUNNING) return\n\n player.sendMessage(\"${entry.speakerDisplayName}: ${entry.text}\".parsePlaceholders(player).asMini())\n\n // When we want the dialogue to end, we can set the state to FINISHED.\n state = MessengerState.FINISHED\n }\n}"
},
"event_entry": {
"file": "src/main/kotlin/com/typewritermc/example/entries/trigger/ExampleEventEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\trigger\\ExampleEventEntry.kt",
"content": "@Entry(\"example_event\", \"An example event entry.\", Colors.YELLOW, \"material-symbols:bigtop-updates\")\nclass ExampleEventEntry(\n override val id: String = \"\",\n override val name: String = \"\",\n override val triggers: List<Ref<TriggerableEntry>> = emptyList(),\n) : EventEntry"
},
"event_entry_listener": {
"file": "src/main/kotlin/com/typewritermc/example/entries/trigger/ExampleEventEntry.kt",
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\entries\\trigger\\ExampleEventEntry.kt",
"content": "// Must be scoped to be public\n@EntryListener(ExampleEventEntry::class)\nfun onEvent(event: SomeBukkitEvent, query: Query<ExampleEventEntry>) {\n // Do something\n val entries = query.find() // Find all the entries of this type, for more information see the Query section\n // Do something with the entries, for example trigger them\n entries triggerAllFor event.player\n}"
},
"initializer": {
"file": "src\\main\\kotlin\\com\\typewritermc\\example\\ExampleInitializer.kt",
"content": "import com.typewritermc.core.extension.Initializable\nimport com.typewritermc.core.extension.annotations.Initializer\n\n@Initializer\nobject ExampleInitializer : Initializable {\n override fun initialize() {\n // Do something when the extension is initialized\n }\n\n override fun shutdown() {\n // Do something when the extension is shutdown\n }\n}"
}
}
5 changes: 0 additions & 5 deletions documentation/src/theme/NavbarItem/DocSidebarNavbarItem.tsx
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ import {
useActiveDocContext,
useLayoutDocsSidebar,
useActiveVersion,
useLatestVersion,
} from '@docusaurus/plugin-content-docs/client';
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
import type {Props} from '@theme/NavbarItem/DocSidebarNavbarItem';
@@ -26,10 +25,6 @@ export default function DocSidebarNavbarItem({
}

// Adjust label based on the active version
console.log(activeVersion);
console.log(label);
console.log(activeVersion <= '0.5.0');
console.log(sidebarLink.path);
const adjustedLabel =
label === 'Extensions' && activeVersion && activeVersion <= '0.5.0'
? 'Adapters'