Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeTheTech committed Sep 22, 2023
1 parent 3658754 commit 1d24216
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/animal/BeePet.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public BeePet(Player player, boolean baby, String name) {
setCustomNameVisible(true);
setPersistenceRequired(true);
setNoGravity(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/animal/CatPet.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public CatPet(Player player, boolean baby, String name, String variant, String c
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public ChickenPet(Player player, boolean baby, String name) {
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/animal/HorsePet.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public HorsePet(Player player, boolean baby, String name, String variant, String
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/animal/RabbitPet.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public RabbitPet(Player player, boolean baby, String name, String variant) {
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/animal/SheepPet.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public SheepPet(Player player, boolean baby, String name, String color) {
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public SnifferPet(Player player, boolean baby, String name) {
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public VillagerPet(Player player, boolean baby, String name, String profession,
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/animal/WolfPet.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public WolfPet(Player player, boolean baby, String name, String collarColor) {
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/fish/CodPet.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public CodPet(Player player, String name) {
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/mob/BlazePet.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public BlazePet(Player player, String name) {
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/mob/CreeperPet.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public CreeperPet(Player player, String name, boolean powered) {
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/mob/MagmaCubePet.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public MagmaCubePet(Player player, String name, String size) {
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/mob/PhantomPet.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public PhantomPet(Player player, String name) {
setCustomNameVisible(true);
setPersistenceRequired(true);
setShouldBurnInDay(false);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/mob/RavagerPet.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public RavagerPet(Player player, String name) {
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/mob/SkeletonPet.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public SkeletonPet(Player player, String name) {
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/mob/SlimePet.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public SlimePet(Player player, String name, String size) {
setInvulnerable(true);
setCustomNameVisible(true);
setPersistenceRequired(true);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lee/code/pets/pets/pet/mob/ZombiePet.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public ZombiePet(Player player, boolean baby, String name) {
setCustomNameVisible(true);
setPersistenceRequired(true);
setShouldBurnInDay(false);
setCanPickUpLoot(false);
collides = false;
setCustomName(Component.Serializer.fromJson(CoreUtil.serializeColorComponentJson(name)));
setTarget(((CraftPlayer) player).getHandle(), EntityTargetEvent.TargetReason.CUSTOM, false);
Expand Down

0 comments on commit 1d24216

Please sign in to comment.