MockBukkit | mocking framework for bukkit to allow the easy unit | Game Engine library
kandi X-RAY | MockBukkit Summary
kandi X-RAY | MockBukkit Summary
MockBukkit can easily be included in gradle using mavenCentral. Note: use v1.13-SNAPSHOT to test a Bukkit 1.13 plugin or any other version if the branch exists. These branches will not be receiving patches actively, but any issues will be resolved and any pull requests on them will be accepted. This is because backporting every single patch on every branch is incredibely time consuming and slows down the development of Mockbukkit.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Kill the player
- Set the health of the player
- Returns the location of the given location
- Closes the inventory view
- Calls the expansion of the exp
- Calculate exp levels
- Registers the default charges
- Returns the name tag visibility
- Creates the poison effect types
- Removes a custom effect with the specified type
- Simulates a block location
- Changes the number of offline players
- Returns the ItemStack for the given equipment slot in the inventory
- Dispatch a command
- Checks to see if there are conflicts between the given enchants
- Returns the ItemStack for the specifiedipmentSlot
- Sets the icon contents from an array of images
- Sets the value of a game rule
- Set the name visibility of the name tag
- Sets an item to the EquipmentSlot
- Serialize this ItemMetaMock to an ItemMetaMock
- Deserialize ItemMetaMock
- Get the Dye color from a specific material type
- Adds a custom effect
MockBukkit Key Features
MockBukkit Examples and Code Snippets
Community Discussions
Trending Discussions on MockBukkit
QUESTION
I am currently trying to use MockBukkit for testing my Minecraft Plugin and included it in my pom with the test scope because I will only need it for that. The problem is however that when using the test scope, the dependency appears in my local repository but cannot be resolved by eclipse or Maven.
The problem appears to be that the default-compile goal from the compiler plugin tries to compile the test classes even though it cannot use the dependencies as they are only available during the testing phase. (However that is only my guess).
Maven output:
...ANSWER
Answered 2020-Dec-26 at 00:36Okay, the error was just that I had to change the .classpath because I just converted a default eclipse project to a Maven project, so I had to remove the default src folder in the Build Path and add the different Maven ones. Without it, Maven tried to compile every class as a normal one and not as tests which made them fail.
In case anyone's interested, here is a comparision between the two .classpath files:
Old:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MockBukkit
You can use MockBukkit like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the MockBukkit component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page