Skip to content

Commit

Permalink
test 404
Browse files Browse the repository at this point in the history
  • Loading branch information
iChun committed May 30, 2021
1 parent 5c24aec commit bbdedc6
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/advanced/eventinit.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Setting Default Variables
=========================
Defaults: Setting Variables on Load
=======================================

This is an extension of [Event Configuration](../../intermediate/configspecifics/)

Expand Down
2 changes: 2 additions & 0 deletions docs/components/config/EventConfiguration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Event Configuration
===================
8 changes: 8 additions & 0 deletions docs/components/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Components: The Parts That Make CCI Tick
============================================

This section is allocated to the many different components of CCI: `EventConfiguration`, `Condition`, `Outcome`, `Listener`, etc.

This is more so the "documentation" part of things. Less so "guide", more so "reference".

Considering I was 3 years and 33 releases late on this, enjoy, I guess?
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 10 additions & 1 deletion docs/expert/gamehooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ These three Classes will be outlined better in on their documentation page. This

## The Helpers, and How to Use Them

I find that the best way to show how these work, is by walking you through an example. You will need a Forge dev environment, and **CCI 1.9.0 or later**. I personally use [IntelliJ IDEA](https://www.jetbrains.com/idea/) and MCP mappings.
I find that the best way to show how these work, is by walking you through an example. You will need a Forge dev environment, and **CCI 1.9.0 or later**. I personally use [IntelliJ IDEA](https://www.jetbrains.com/idea/) and MCP mappings. It would be advisable to have the Java Console open as you test this.

### The Flow of Code

Expand Down Expand Up @@ -285,6 +285,7 @@ Here's the [JSON file generated](./files/gamehooks/gamehooks.json) if you're int
]
}
```
<br/>

### Takeaways From The Example

Expand All @@ -297,3 +298,11 @@ So, what did we learn from the Example:
* How to create Objects using ObjectAccessors
* How to create primitives in ParamInjectors
* How to cancel cancelable Forge Events

I just wanted to make a list. That was a long and difficult guide to write.

## Final Note

There's a reason Game Event Hooks is in the Expert section. This featureset requires extensive knowledge of modding with Forge and the game's code base.

I do also realise, that this essentially lets you call code directly. There are a lot of different ways this can go wrong. Please use this feature responsibly.
7 changes: 3 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ nav:
- 'Libraries&#58; Not The Book Kind': 'advanced/libraries.md'
- Debugging When Debugging Fails: 'advanced/debugmode.md'
- When Variable Insertion Goes Wrong: 'advanced/variableinsertion.md'
- Setting Default Variables: 'advanced/eventinit.md'
- 'Defaults&#58; Setting Variables on Load': 'advanced/eventinit.md'
- 'Strings&#58; Untying the Knot': 'advanced/strings.md'
- 'Arrays&#58; The Black Sheep of Variables': 'advanced/arrays.md'
- Expert Guides:
Expand All @@ -46,9 +46,8 @@ nav:
- Outcome: 'components/outcome/outcome.md'
- Constants: 'components/constants.md'

# Suggested expert: Game Hooks.
# How to, random mob, random chance, repeat outcome, Math, JSONSafe

# How to, random mob, random chance, repeat outcome, Math, JSONSafe, two high
# the differences between SL and SE

# Do not edit in PRs below here
site_name: Content Creator Integration Documentation
Expand Down
2 changes: 1 addition & 1 deletion theme/mkdocs_theme.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
static_templates:
- 404.html
# - 404.html

include_search_page: true
search_index_only: false

0 comments on commit bbdedc6

Please sign in to comment.