This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
269 changed files
with
1,527 additions
and
1,277 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,8 @@ | |
build.sh | ||
.idea/ | ||
|
||
bukkit/target | ||
*/target | ||
/target | ||
**/target/ | ||
target/ | ||
|
||
logs/*.log | ||
*/logs/*.log | ||
**/logs/*.log |
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
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
29 changes: 29 additions & 0 deletions
29
base/src/main/java/me/gamercoder215/mobchip/ai/goal/PathfinderRandomStand.java
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,29 @@ | ||
package me.gamercoder215.mobchip.ai.goal; | ||
|
||
import org.bukkit.entity.AbstractHorse; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* <p>Represents a Pathfinder for a Horse-like Mob to randomly stand.</p> | ||
* <strong>Only Available in 1.19.3+ Versions</strong> | ||
*/ | ||
public final class PathfinderRandomStand extends Pathfinder { | ||
|
||
/** | ||
* Constructs a PathfinderRandomStand. | ||
* @param m AbstractHorse to use | ||
*/ | ||
public PathfinderRandomStand(@NotNull AbstractHorse m) { | ||
super(m); | ||
} | ||
|
||
@Override | ||
public @NotNull PathfinderFlag[] getFlags() { | ||
return new PathfinderFlag[0]; | ||
} | ||
|
||
@Override | ||
public String getInternalName() { | ||
return "RandomStandGoal"; | ||
} | ||
} |
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
26 changes: 26 additions & 0 deletions
26
base/src/main/java/me/gamercoder215/mobchip/ai/memories/Unit.java
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,26 @@ | ||
package me.gamercoder215.mobchip.ai.memories; | ||
|
||
import me.gamercoder215.mobchip.EntityBrain; | ||
|
||
/** | ||
* <p>Represents a Memory Unit.</p> | ||
* <p>For some memories that require active cooldowns, such as {@link EntityMemory#IS_SNIFFING}, the cooldown is read instead of the actual memory value.</p> | ||
* | ||
* Example: | ||
* <pre>{@code | ||
* public void setMemories(Warden w) { | ||
* EntityBrain brain = BukkitBrain.getBrain(w); | ||
* | ||
* brain.setMemory(EntityMemory.IS_SNIFFING, Unit.INSTANCE, 500); // Sniffing for 500 ticks | ||
* } | ||
* }</pre> | ||
* | ||
* @see EntityBrain#getExpiration(Memory) | ||
*/ | ||
public enum Unit { | ||
|
||
/** | ||
* The only Unit Instance. | ||
*/ | ||
INSTANCE | ||
} |
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
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
Oops, something went wrong.