Skip to content

Commit

Permalink
Consistent 3F and 4F suffix usage (#3985)
Browse files Browse the repository at this point in the history
* fix: consistent VECTOR3F and VECTOR4F field names

* change: always use underscores between name and data format
  • Loading branch information
Octol1ttle authored Sep 18, 2024
1 parent 5eb8941 commit 66f4d63
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ CLASS net/minecraft/class_2943 net/minecraft/entity/data/TrackedDataHandlerRegis
FIELD field_38827 FROG_VARIANT Lnet/minecraft/class_2941;
FIELD field_39017 PAINTING_VARIANT Lnet/minecraft/class_2941;
FIELD field_39965 LONG Lnet/minecraft/class_2941;
FIELD field_42235 QUATERNIONF Lnet/minecraft/class_2941;
FIELD field_42235 QUATERNION_F Lnet/minecraft/class_2941;
FIELD field_42236 OPTIONAL_BLOCK_STATE Lnet/minecraft/class_2941;
FIELD field_42237 VECTOR3F Lnet/minecraft/class_2941;
FIELD field_42237 VECTOR_3F Lnet/minecraft/class_2941;
FIELD field_42543 SNIFFER_STATE Lnet/minecraft/class_2941;
FIELD field_47707 ARMADILLO_STATE Lnet/minecraft/class_2941;
FIELD field_48265 OPTIONAL_BLOCK_STATE_CODEC Lnet/minecraft/class_9139;
Expand Down
4 changes: 2 additions & 2 deletions mappings/net/minecraft/network/codec/PacketCodecs.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ CLASS net/minecraft/class_9135 net/minecraft/network/codec/PacketCodecs
COMMENT @see #nbt
COMMENT @see net.minecraft.network.PacketByteBuf#readNbt(PacketByteBuf)
COMMENT @see net.minecraft.network.PacketByteBuf#writeNbt(io.netty.buffer.ByteBuf, NbtElement)
FIELD field_48558 VECTOR3F Lnet/minecraft/class_9139;
FIELD field_48558 VECTOR_3F Lnet/minecraft/class_9139;
COMMENT A codec for a {@link org.joml.Vector3f}.
COMMENT
COMMENT @see net.minecraft.network.PacketByteBuf#readVector3f()
COMMENT @see net.minecraft.network.PacketByteBuf#writeVector3f(Vector3f)
FIELD field_48559 QUATERNIONF Lnet/minecraft/class_9139;
FIELD field_48559 QUATERNION_F Lnet/minecraft/class_9139;
COMMENT A codec for a {@link org.joml.Quaternionf}.
COMMENT
COMMENT @see net.minecraft.network.PacketByteBuf#readQuaternionf()
Expand Down
6 changes: 3 additions & 3 deletions mappings/net/minecraft/util/dynamic/Codecs.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ CLASS net/minecraft/class_5699 net/minecraft/util/dynamic/Codecs
FIELD field_40726 GAME_PROFILE_WITH_PROPERTIES Lcom/mojang/serialization/Codec;
FIELD field_40727 GAME_PROFILE_PROPERTY Lcom/mojang/serialization/Codec;
FIELD field_41759 NON_EMPTY_STRING Lcom/mojang/serialization/Codec;
FIELD field_42265 QUATERNIONF Lcom/mojang/serialization/Codec;
FIELD field_42266 AXIS_ANGLE4F Lcom/mojang/serialization/Codec;
FIELD field_42265 QUATERNION_F Lcom/mojang/serialization/Codec;
FIELD field_42266 AXIS_ANGLE_4F Lcom/mojang/serialization/Codec;
FIELD field_42267 ROTATION Lcom/mojang/serialization/Codec;
FIELD field_42268 MATRIX4F Lcom/mojang/serialization/Codec;
FIELD field_42268 MATRIX_4F Lcom/mojang/serialization/Codec;
FIELD field_44703 CODEPOINT Lcom/mojang/serialization/Codec;
FIELD field_45075 IDENTIFIER_PATH Lcom/mojang/serialization/Codec;
FIELD field_45076 GAME_PROFILE Lcom/mojang/serialization/MapCodec;
Expand Down

0 comments on commit 66f4d63

Please sign in to comment.