Skip to content

Commit

Permalink
Allow setting own EntityDataMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Alemiz112 committed Sep 10, 2024
1 parent e0a9b18 commit fd2bca9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
@EqualsAndHashCode(doNotUseGetters = true)
@ToString(doNotUseGetters = true)
public class AddEntityPacket implements BedrockPacket {
private final List<AttributeData> attributes = new ObjectArrayList<>();
private final EntityDataMap metadata = new EntityDataMap();
private final List<EntityLinkData> entityLinks = new ObjectArrayList<>();
private List<AttributeData> attributes = new ObjectArrayList<>();
private EntityDataMap metadata = new EntityDataMap();
private List<EntityLinkData> entityLinks = new ObjectArrayList<>();
private long uniqueEntityId;
private long runtimeEntityId;
private String identifier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@EqualsAndHashCode(doNotUseGetters = true)
@ToString(doNotUseGetters = true)
public class AddItemEntityPacket implements BedrockPacket {
private final EntityDataMap metadata = new EntityDataMap();
private EntityDataMap metadata = new EntityDataMap();
private long uniqueEntityId;
private long runtimeEntityId;
private ItemData itemInHand;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
@EqualsAndHashCode(doNotUseGetters = true)
@ToString(doNotUseGetters = true)
public class AddPlayerPacket implements BedrockPacket, PlayerAbilityHolder {
private final EntityDataMap metadata = new EntityDataMap();
private final List<EntityLinkData> entityLinks = new ObjectArrayList<>();
private EntityDataMap metadata = new EntityDataMap();
private List<EntityLinkData> entityLinks = new ObjectArrayList<>();
private UUID uuid;
private String username;
private long uniqueEntityId;
Expand All @@ -34,7 +34,7 @@ public class AddPlayerPacket implements BedrockPacket, PlayerAbilityHolder {
private Vector3f motion;
private Vector3f rotation;
private ItemData hand;
private final AdventureSettingsPacket adventureSettings = new AdventureSettingsPacket();
private AdventureSettingsPacket adventureSettings = new AdventureSettingsPacket();
private String deviceId;
private int buildPlatform;
private GameType gameType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
@EqualsAndHashCode(doNotUseGetters = true)
@ToString(doNotUseGetters = true)
public class SetEntityDataPacket implements BedrockPacket {
private final EntityDataMap metadata = new EntityDataMap();
private EntityDataMap metadata = new EntityDataMap();
private long runtimeEntityId;
private long tick;
/**
* @since v557
*/
private final EntityProperties properties = new EntityProperties();
private EntityProperties properties = new EntityProperties();

@Override
public final PacketSignal handle(BedrockPacketHandler handler) {
Expand Down

0 comments on commit fd2bca9

Please sign in to comment.