forked from MCCTeam/Minecraft-Console-Client
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from ReinforceZwei/metadata18
Implement 1.8 Entity MetaData
- Loading branch information
Showing
8 changed files
with
163 additions
and
2,048 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
MinecraftClient/Mapping/EntityMetadataPalettes/EntityMetadataPalette18.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace MinecraftClient.Mapping.EntityMetadataPalettes; | ||
|
||
public class EntityMetadataPalette18 : EntityMetadataPalette | ||
{ | ||
// 1.8 : https://wiki.vg/index.php?title=Entity_metadata&oldid=6220 | ||
private readonly Dictionary<int, EntityMetaDataType> entityMetadataMappings = new() | ||
{ | ||
{ 0, EntityMetaDataType.Byte }, | ||
{ 1, EntityMetaDataType.Short }, | ||
{ 2, EntityMetaDataType.Int }, | ||
{ 3, EntityMetaDataType.Float }, | ||
{ 4, EntityMetaDataType.String }, | ||
{ 5, EntityMetaDataType.Slot }, | ||
{ 6, EntityMetaDataType.Vector3Int }, | ||
{ 7, EntityMetaDataType.Rotation } | ||
}; | ||
|
||
public override Dictionary<int, EntityMetaDataType> GetEntityMetadataMappingsList() | ||
{ | ||
return entityMetadataMappings; | ||
} | ||
} |
31 changes: 0 additions & 31 deletions
31
MinecraftClient/Mapping/EntityMetadataPalettes/EntityMetadataPalette19.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.