Commit 4b64d82
authored
Reorganize project, add custom linter (#42)
The first major refactor of this project.
- Files have been reorganized to match Java Edition b1.2 and 1.14.4 locations
- GitHub Actions workflows have been added to verify compilation, clang-format, and linter
- `tools/lint.py` has been added, conforming some stylistic choices across the repo
- Current lint checks:
- - void params: `(void);` is not allowed, linter replaces with `()`
- - consistent float literals: `.f` is not allowed, linter replaces with `.0f`
- - newline at end of file
- - absolute include paths, newline after last include
- - `#pragma once` at the start of headers, newline after pragma
- - no written `virtual` if a virtual function is overriden
- - includes are placed at the top of a source file
Current progress: **6.975%**
4036/57867 functions decompiled1 parent 040277a commit 4b64d82
1,039 files changed
Lines changed: 8187 additions & 5156 deletions
File tree
- .github/workflows
- data
- docs
- src
- 4JLibraries_Source
- NX
- Input
- Program
- Render
- Storage
- fui
- event
- node
- control
- 4J_Libraries_Source/fui
- event
- node
- control
- Minecraft.Client
- com/mojang
- blaze3d
- platform
- vertex
- nbt
- net/minecraft
- client
- color
- block
- item
- constants
- gui
- components
- screens
- model
- geom
- multiplayer
- particle
- renderer
- blockentity
- block
- model
- entity
- item
- texture
- atlases
- resources
- texturepack
- server
- sounds
- tutorial
- ui
- html
- scene
- control
- scenes
- screen
- core
- particles
- profile
- storage
- locale
- network
- protocol
- game
- syncher
- resources
- server
- players
- sounds
- renderer
- item
- texture
- resources
- language
- texturepack
- server
- ui/scene/control
- Minecraft.Core
- io
- storage
- Minecraft.Network/protocol/game
- Minecraft.Server
- Minecraft.World
- constants
- entity
- player
- projectile
- inventory
- item
- java/io
- types
- level
- biome
- block
- border
- levelgen
- feature
- synth
- newbiome/layer
- storage
- config
- tick
- net/minecraft
- stats
- util
- datafix
- world
- command
- impl
- constants
- damagesource
- effect
- enchantment
- categories
- enchantments
- entity
- ai
- attributes
- control
- goal
- sensing
- mob
- player
- projectile
- food
- inventory
- item
- crafting
- recipe
- enchantment
- level
- biome
- block
- boxed
- entity
- state
- properties
- border
- chunk
- storage
- dimension
- gamemode
- minigames
- glide
- levelgen
- feature
- structure
- templatesystem
- synth
- material
- newbiome/layer
- pathfinder
- saveddata
- storage
- block
- config
- data
- light
- loot
- save
- tick
- phys
- scores
- stats
- PlatformLibraries_Source/Nintendo/NX/Network
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
0 commit comments