Skip to content

Commit

Permalink
Add upgrade instructions for CCA 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Mar 14, 2024
1 parent 30a0b5e commit 2708c38
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
4 changes: 4 additions & 0 deletions _includes/cca_sidebar.md → public/_includes/cca_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
- [Ticking components](/wiki/cardinal-components-api/ticking)
- [Migrating components (removing/renaming them)](/wiki/cardinal-components-api/migrating-components)

### Upgrade Instructions
{:.no_anchor}
- [Upgrading from 5.x to 6.x](/wiki/cardinal-components-api/upgrade-instructions/CCA-6-changes)

## Advanced
{:.no_anchor}
- [Making custom component providers](/wiki/cardinal-components-api/advanced/custom-component-providers)
Expand Down
2 changes: 1 addition & 1 deletion public/wiki/blast/bomb_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

h4 {
font-weight: bold;
@include desktop {
@media (min-width: 1100px) {
font-weight: initial;
font-size: 18px;
text-align: center;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: Upgrading from CCA 5.x to 6.0
breadcrumb: 6.x upgrade
layout: cca_wiki
---

Minecraft 1.20.5 brought some rather large changes impacting Cardinal Components API, prompting a few breaking changes.

## Package migration

The root package has changed from `dev.onyxstudios` to `org.ladysnake`.
You can migrate quickly by using your IDE's global search feature - here are the instructions for Intellij Idea:

1. press <kbd><kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>R</kbd></kbd> (or <kbd><kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>R</kbd></kbd> on MacOS) to open the global replace window
2. type `import dev.onyxstudios.cca` in the first line ("Search")
3. type `import org.ladysnake.cca` in the second line ("Replace")
4. Click on <samp>Replace All</samp> to perform the replacement
5. You're done!

## Changes to the Base module

- AutoSyncedComponent

## Changes to the Entity module

- Removal of `PlayerCopyCallback`

## Removal of the Item module

0 comments on commit 2708c38

Please sign in to comment.