Skip to content

Commit

Permalink
Add spellchecker and fix spelling (#272)
Browse files Browse the repository at this point in the history
Uses CSpell as an GitHub action to check for spelling mistakes.
Also fixes a lot of spelling mistakes in yarn.
  • Loading branch information
Grayray75 authored Aug 28, 2023
1 parent 2c63a90 commit 36ba5df
Show file tree
Hide file tree
Showing 111 changed files with 373 additions and 170 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Check spelling"

on:
pull_request:
push:

jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: streetsidesoftware/cspell-action@v3
with:
config: "cspell.config.json"
files: "mappings/**/*.mapping"
incremental_files_only: false
179 changes: 179 additions & 0 deletions cspell.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
// cSpell Settings
//
// You can easily install cSpell with npm:
// npm install cspell --global
//
// To spellcheck the mappings run:
// cspell mappings/**/*.mapping --no-progress
//
{
// language - current active spelling language
"language": "en",
// list of patterns to be ignored
"ignoreRegExpList": [
// ignores method parameters like: '(IFFF)', '(DDDDDDFD)'
"/\\(.+\\)/g",
// ignores types like: 'Ljava/lang/String;'
"/L[A-Za-z0-9/_$]+;/g"
],
// words - list of words to be always considered correct
"words": [
"alloc",
"attackable",
"authlib",
"BIOMESET",
"blit",
"BLOCKSTATE_PROPERTY",
"bossbar",
"breedable",
"CAERBANNOG_RABBIT",
"CHAINMAIL",
"CHESTPLATE",
"clazz",
"CLOWNFISH",
"collidable",
"concat",
"confiming",
"cooldown",
"craftable",
"CREEBET",
"datafix",
"datafixer",
"DEADBUSH",
"Deadmau5",
"Decryptor",
"deflater",
"deop",
"despawn",
"dont",
"DOWNLEFT",
"dpfail",
"dppass",
"drainable",
"elytra",
"enchantability",
"enchantable",
"Encryptor",
"ENDERCHEST",
"enderdragon",
"enderman",
"endermite",
"EPOLL",
"equipable",
"etho",
"fabricmc",
"flowable",
"FORCEFIELD",
"framebuffer",
"fullscreen",
"gamemode",
"gamerules",
"GLOWSTONE",
"gson",
"heightmap",
"hitbox",
"hitboxes",
"HOLDABLES",
"hotbar",
"hoverable",
"illager",
"infestable",
"ingame",
"ints",
"invisibles",
"itemable",
"itemgroup",
"kbps",
"keybind",
"knockback",
"lerp",
"lfloor",
"lightmap",
"lwjgl",
"minecart",
"minecarts",
"mineshafts",
"mipmap",
"MIPPED",
"mojang",
"mooshroom",
"mtick",
"neighbour",
"neighbours",
"NETHERBRICK",
"NETHERRACK",
"NIGHTVISION",
"NOTEBLOCK",
"npcs",
"occulsion",
"opengl",
"overworld",
"PAEONIA",
"pathed",
"pathfinding",
"pathing",
"PerlinNoise",
"pigman",
"PIGSCENE",
"PODZOL",
"Populator",
"PORKCHOP",
"pottable",
"Prepender",
"println",
"PRISMARINE",
"Programi",
"PUFFERFISH",
"PURPUR",
"pushable",
"randomizer",
"raycast",
"rcon",
"RECORD_MELLOHI",
"RECORD_STAL",
"RECORD_STRAD",
"regen",
"reloadable",
"renderable",
"renderbuffer",
"resourcepack",
"respawn",
"rgba",
"rtmp",
"schoolable",
"sfail",
"Shaderi",
"shulker",
"shulkers",
"singleplayer",
"SLIMEBALL",
"snoopable",
"snopper",
"SOULSAND",
"spawnable",
"stackable",
"strikethrough",
"superflat",
"surfacebuilder",
"SYSOUT",
"TALLGRASS",
"tallocated",
"tcache",
"teleporter",
"teleporting",
"tessellator",
"tezzelator",
"tickable",
"tickables",
"TimeMillis",
"TimeNanos",
"unblockable",
"UNBREAKING",
"UNCRAFTABLE",
"UNPOWERED",
"USERFILTER",
"voxel",
"voxels",
"vsync"
]
}
6 changes: 3 additions & 3 deletions mappings/com/mojang/blaze3d/platform/GLX.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CLASS net/minecraft/class_629 com/mojang/blaze3d/platform/GLX
FIELD field_11421 source0Rgb I
FIELD field_2300 textureUnit I
FIELD field_2301 lightmapTextureUnit I
FIELD field_2302 arbMultitexture Z
FIELD field_2302 arbMultiTexture Z
FIELD field_8370 gl14Supported Z
FIELD field_8371 contextDescription Ljava/lang/String;
FIELD field_8372 gl21Supported Z
Expand All @@ -48,7 +48,7 @@ CLASS net/minecraft/class_629 com/mojang/blaze3d/platform/GLX
FIELD field_8386 vertexShader I
FIELD field_8387 fragmentShader I
FIELD field_8389 staticDraw I
FIELD field_8390 blendFuncSeperateSupported Z
FIELD field_8390 blendFuncSeparateSupported Z
FIELD field_8391 shadersSupported Z
FIELD field_8392 type I
FIELD field_8393 shaders Z
Expand Down Expand Up @@ -98,7 +98,7 @@ CLASS net/minecraft/class_629 com/mojang/blaze3d/platform/GLX
COMMENT Attaches a level of a texture object as a logical buffer of a framebuffer object
ARG 0 target
ARG 1 attachment
ARG 2 textarget
ARG 2 textTarget
ARG 3 texture
ARG 4 level
METHOD method_7284 gl20GetUniformLocation (ILjava/lang/CharSequence;)I
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ CLASS net/minecraft/class_2403 com/mojang/blaze3d/platform/GlStateManager
ARG 0 coord
ARG 1 mode
METHOD method_9809 genTex (Lnet/minecraft/class_2403$class_2418;ILjava/nio/FloatBuffer;)V
COMMENT Allows controling the generation of texture coordinates with a float buffer
COMMENT Allows controlling the generation of texture coordinates with a float buffer
ARG 0 coord
ARG 1 mode
ARG 2 buffer
Expand Down
2 changes: 1 addition & 1 deletion mappings/net/minecraft/Bootstrap.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CLASS net/minecraft/class_1541 net/minecraft/Bootstrap
METHOD method_8094 setupDispenserBehavior ()V
METHOD method_8095 initialize ()V
CLASS 12
FIELD field_11739 dispenserBegavior Lnet/minecraft/class_1338;
FIELD field_11739 dispenserBehavior Lnet/minecraft/class_1338;
CLASS 16
FIELD field_11742 behavior Lnet/minecraft/class_1338;
CLASS 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CLASS net/minecraft/class_815 net/minecraft/advancement/AchievementsAndCriterion
COMMENT Achieved when the player travels in a minecart
FIELD field_2997 BUILD_SWORD Lnet/minecraft/class_814;
COMMENT Achieved when a sword is crafted
FIELD field_2998 KILL_EMEMY Lnet/minecraft/class_814;
FIELD field_2998 KILL_ENEMY Lnet/minecraft/class_814;
COMMENT Achieved when an entity is killed
FIELD field_2999 KILL_COW Lnet/minecraft/class_814;
COMMENT Achieved when a cow is killed for leather
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CLASS net/minecraft/class_3334 net/minecraft/advancement/AdvancementProgress
METHOD method_14834 writeToByteBuf (Lnet/minecraft/class_1967;)V
ARG 1 buf
METHOD method_14836 (Ljava/util/Map;[[Ljava/lang/String;)V
ARG 2 requirememnts
ARG 2 requirements
METHOD method_14839 fromPacketByteBuf (Lnet/minecraft/class_1967;)Lnet/minecraft/class_3334;
ARG 0 buf
METHOD method_14843 getCriteria (Ljava/lang/String;)Lnet/minecraft/class_3351;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_3337 net/minecraft/advancement/AdvacementRewards
CLASS net/minecraft/class_3337 net/minecraft/advancement/AdvancementRewards
FIELD field_16303 REWARDS Lnet/minecraft/class_3337;
METHOD method_14859 (Lnet/minecraft/class_798;)V
ARG 1 player
2 changes: 1 addition & 1 deletion mappings/net/minecraft/advancement/AdvancementType.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ CLASS net/minecraft/class_3358 net/minecraft/advancement/AdvancementType
METHOD method_15024 getType ()Ljava/lang/String;
METHOD method_15025 fromString (Ljava/lang/String;)Lnet/minecraft/class_3358;
ARG 0 type
METHOD method_15026 getTextureOffest ()I
METHOD method_15026 getTextureOffset ()I
METHOD method_15027 getColor ()Lnet/minecraft/class_1442;
4 changes: 2 additions & 2 deletions mappings/net/minecraft/advancement/SimpleAdvancement.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CLASS net/minecraft/class_3326 net/minecraft/advancement/SimpleAdvancement
FIELD field_16267 identifier Lnet/minecraft/class_1653;
FIELD field_16268 criteria Ljava/util/Map;
FIELD field_16269 requirements [[Ljava/lang/String;
FIELD field_16270 childs Ljava/util/Set;
FIELD field_16270 children Ljava/util/Set;
METHOD <init> (Lnet/minecraft/class_1653;Lnet/minecraft/class_3326;Lnet/minecraft/class_3357;Lnet/minecraft/class_3337;Ljava/util/Map;[[Ljava/lang/String;)V
ARG 1 identifier
ARG 2 parent
Expand All @@ -21,7 +21,7 @@ CLASS net/minecraft/class_3326 net/minecraft/advancement/SimpleAdvancement
METHOD method_14795 getParent ()Lnet/minecraft/class_3326;
METHOD method_14796 getDisplay ()Lnet/minecraft/class_3357;
METHOD method_14797 getRewards ()Lnet/minecraft/class_3337;
METHOD method_14798 getChilds ()Ljava/lang/Iterable;
METHOD method_14798 getChildren ()Ljava/lang/Iterable;
METHOD method_14799 getCriteria ()Ljava/util/Map;
METHOD method_14800 getRequirementsCount ()I
METHOD method_14801 getIdentifier ()Lnet/minecraft/class_1653;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_3344 net/minecraft/advancement/criteria/Criteria
CLASS net/minecraft/class_3344 net/minecraft/advancement/criterion/Criteria
FIELD field_16355 instance Lnet/minecraft/class_3354;
METHOD <init> (Lnet/minecraft/class_3354;)V
ARG 1 instance
Expand All @@ -8,12 +8,12 @@ CLASS net/minecraft/class_3344 net/minecraft/advancement/criteria/Criteria
METHOD method_14881 writeToByteBuf (Lnet/minecraft/class_1967;)V
ARG 1 buf
METHOD method_14882 writeAllToByteBuf (Ljava/util/Map;Lnet/minecraft/class_1967;)V
ARG 0 criterias
ARG 0 criteria
ARG 1 buf
METHOD method_14883 readAllCriterias (Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Ljava/util/Map;
METHOD method_14883 readAllCriteria (Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Ljava/util/Map;
ARG 0 object
ARG 1 ctx
METHOD method_14884 readCriteria (Lnet/minecraft/class_1967;)Lnet/minecraft/class_3344;
ARG 0 buf
METHOD method_14885 readAllCriterias (Lnet/minecraft/class_1967;)Ljava/util/Map;
METHOD method_14885 readAllCriteria (Lnet/minecraft/class_1967;)Ljava/util/Map;
ARG 0 buf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_3155 net/minecraft/advancement/criterion/CuredZombieVilagerCriterion
CLASS net/minecraft/class_3155 net/minecraft/advancement/criterion/CuredZombieVillagerCriterion
FIELD field_15551 CURED_ZOMBIE_VILLAGER Lnet/minecraft/class_1653;
METHOD method_14093 grant (Lnet/minecraft/class_798;Lnet/minecraft/class_982;Lnet/minecraft/class_985;)V
ARG 1 player
Expand Down
Loading

0 comments on commit 36ba5df

Please sign in to comment.