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 9
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
7 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
base/src/main/java/me/gamercoder215/mobchip/ai/behavior/CamelBehavior.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,17 @@ | ||
package me.gamercoder215.mobchip.ai.behavior; | ||
|
||
import me.gamercoder215.mobchip.ai.schedule.Updatable; | ||
|
||
/** | ||
* Represents Entity Behaviors for a Camel | ||
*/ | ||
public interface CamelBehavior extends CreatureBehavior, Updatable { | ||
|
||
/** | ||
* Makes this Camel sit. | ||
* <p>This behavior does not require any memories.</p> | ||
* @param minimalPoseTicks The minimum amount of ticks this camel should sit for | ||
*/ | ||
void sit(int minimalPoseTicks); | ||
|
||
} |
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
19 changes: 19 additions & 0 deletions
19
nms/1_20_R1/src/main/java/me/gamercoder215/mobchip/bukkit/BukkitCamelBehavior.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,19 @@ | ||
package me.gamercoder215.mobchip.bukkit; | ||
|
||
import me.gamercoder215.mobchip.ai.behavior.CamelBehavior; | ||
import org.bukkit.entity.Camel; | ||
|
||
class BukkitCamelBehavior extends BukkitUpdatableCreatureBehavior implements CamelBehavior { | ||
|
||
final Camel m; | ||
|
||
public BukkitCamelBehavior(Camel m) { | ||
super(m); | ||
this.m = m; | ||
} | ||
|
||
@Override | ||
public void sit(int minimalPoseTicks) { | ||
wrapper.runBehavior(m, "CamelAi$RandomSitting", "net.minecraft.world.entity.animal.camel", minimalPoseTicks); | ||
} | ||
} |
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