Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore - Add BukkitApollo#toApolloEntity utility method #129

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

ItsNature
Copy link
Collaborator

@ItsNature ItsNature commented Feb 22, 2024

Overview

Description:
Added utility method for Bukkit Entity to ApolloEntity conversion.

Changes:
Added BukkitApollo#toApolloEntity(org.bukkit.entity.Entity) method

Code Example (If applicable):

public void runEntityExample(Player player, ApolloPlayer apolloPlayer) {
      List<ApolloEntity> sheepEntities = player.getWorld().getEntitiesByClass(Sheep.class)
          .stream().map(BukkitApollo::toApolloEntity)
          .collect(Collectors.toList());

      this.entityModule.overrideRainbowSheep(apolloPlayer, sheepEntities);
  }

Review Request Checklist

  • Your code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have tested this change myself. (If applicable)
  • I have made corresponding changes to the documentation. (If applicable)
  • The branch name follows the projects naming conventions. (e.g. feature/add-module & bugfix/fix-issue)

@ItsNature ItsNature added the type: Enhancement Feature improvement or addition label Feb 22, 2024
@ItsNature ItsNature changed the base branch from master to version/1.1.1 February 22, 2024 13:04
@ItsNature ItsNature merged commit ed3db41 into version/1.1.1 Feb 23, 2024
2 checks passed
@ItsNature ItsNature deleted the chore/apollo-entity-conversion branch February 23, 2024 12:23
@TrentinTheKid TrentinTheKid mentioned this pull request Mar 8, 2024
TrentinTheKid added a commit that referenced this pull request Mar 8, 2024
* Deploy as 1.1.1-SNAPSHOT

* Add BukkitApollo#toApolloEntity (#129)

* Use latest commit of the current branch for the release (#128)

* Feature - Nick Hider Module (#134)

* Add Nick Hider module

* Add nickhider docs

---------

Co-authored-by: TrentinTheKid <25537885+TrentinTheKid@users.noreply.github.com>

* Deploy the correct version to the test server

* Sync LunarClient Mods & Options (#135)

* Sync LunarClient Mods & Options

* Update version tags

---------

Co-authored-by: LunarClient Bot <lc-bot@moonsworth.com>

* Bump to 1.1.1 (#136)

---------

Co-authored-by: ItsNature <matej.bucaric@gmail.com>
Co-authored-by: LunarClient Bot <lc-bot@moonsworth.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: Enhancement Feature improvement or addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants