-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
6964f4c
commit 7fba98f
Showing
26 changed files
with
121 additions
and
11 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
2 changes: 2 additions & 0 deletions
2
.../java/xiamomc/morph/backends/server/renderer/network/datawatcher/values/AnimalValues.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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package xiamomc.morph.backends.server.renderer.network.datawatcher.values; | ||
|
||
import xiamomc.morph.backends.server.renderer.network.datawatcher.values.basetypes.AgeableMobValues; | ||
|
||
public class AnimalValues extends AgeableMobValues | ||
{ | ||
} |
1 change: 1 addition & 0 deletions
1
...a/xiamomc/morph/backends/server/renderer/network/datawatcher/values/ArmorStandValues.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
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
2 changes: 2 additions & 0 deletions
2
...n/java/xiamomc/morph/backends/server/renderer/network/datawatcher/values/HorseValues.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
2 changes: 2 additions & 0 deletions
2
...n/java/xiamomc/morph/backends/server/renderer/network/datawatcher/values/LlamaValues.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
2 changes: 2 additions & 0 deletions
2
...ain/java/xiamomc/morph/backends/server/renderer/network/datawatcher/values/MobValues.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
2 changes: 2 additions & 0 deletions
2
.../java/xiamomc/morph/backends/server/renderer/network/datawatcher/values/ParrotValues.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
17 changes: 17 additions & 0 deletions
17
.../java/xiamomc/morph/backends/server/renderer/network/datawatcher/values/PiglinValues.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 xiamomc.morph.backends.server.renderer.network.datawatcher.values; | ||
|
||
import xiamomc.morph.backends.server.renderer.network.datawatcher.values.basetypes.BasePiglinValues; | ||
|
||
public class PiglinValues extends BasePiglinValues | ||
{ | ||
public final SingleValue<Boolean> IS_BABY = getSingle(false); | ||
public final SingleValue<Boolean> CHARGING_CROSSBOW = getSingle(false); | ||
public final SingleValue<Boolean> DANCING = getSingle(false); | ||
|
||
public PiglinValues() | ||
{ | ||
super(); | ||
|
||
registerSingle(IS_BABY, CHARGING_CROSSBOW, DANCING); | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
.../java/xiamomc/morph/backends/server/renderer/network/datawatcher/values/PlayerValues.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
2 changes: 2 additions & 0 deletions
2
...va/xiamomc/morph/backends/server/renderer/network/datawatcher/values/SnowGolemValues.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
2 changes: 2 additions & 0 deletions
2
...xiamomc/morph/backends/server/renderer/network/datawatcher/values/TropicalFishValues.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
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
4 changes: 3 additions & 1 deletion
4
...atawatcher/values/AbstractFishValues.java → .../values/basetypes/AbstractFishValues.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
4 changes: 3 additions & 1 deletion
4
...tawatcher/values/AbstractGolemValues.java → ...values/basetypes/AbstractGolemValues.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
4 changes: 3 additions & 1 deletion
4
...tawatcher/values/AbstractHorseValues.java → ...values/basetypes/AbstractHorseValues.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
4 changes: 3 additions & 1 deletion
4
...atcher/values/AbstractVillagerValues.java → ...ues/basetypes/AbstractVillagerValues.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
5 changes: 4 additions & 1 deletion
5
.../datawatcher/values/AgeableMobValues.java → ...er/values/basetypes/AgeableMobValues.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
16 changes: 16 additions & 0 deletions
16
...morph/backends/server/renderer/network/datawatcher/values/basetypes/BasePiglinValues.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,16 @@ | ||
package xiamomc.morph.backends.server.renderer.network.datawatcher.values.basetypes; | ||
|
||
import xiamomc.morph.backends.server.renderer.network.datawatcher.values.MonsterValues; | ||
import xiamomc.morph.backends.server.renderer.network.datawatcher.values.SingleValue; | ||
|
||
public class BasePiglinValues extends MonsterValues | ||
{ | ||
public final SingleValue<Boolean> IMMUNE_TO_ZOMBIFICATION = getSingle(true); | ||
|
||
public BasePiglinValues() | ||
{ | ||
super(); | ||
|
||
registerSingle(IMMUNE_TO_ZOMBIFICATION); | ||
} | ||
} |
5 changes: 4 additions & 1 deletion
5
...atawatcher/values/ChestedHorseValues.java → .../values/basetypes/ChestedHorseValues.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
4 changes: 3 additions & 1 deletion
4
...work/datawatcher/values/EntityValues.java → ...atcher/values/basetypes/EntityValues.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
3 changes: 2 additions & 1 deletion
3
...atawatcher/values/LivingEntityValues.java → .../values/basetypes/LivingEntityValues.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
5 changes: 4 additions & 1 deletion
5
...awatcher/values/TameableAnimalValues.java → ...alues/basetypes/TameableAnimalValues.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
4 changes: 3 additions & 1 deletion
4
...datawatcher/values/WaterAnimalValues.java → ...r/values/basetypes/WaterAnimalValues.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
34 changes: 34 additions & 0 deletions
34
...momc/morph/backends/server/renderer/network/datawatcher/watchers/types/PiglinWatcher.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,34 @@ | ||
package xiamomc.morph.backends.server.renderer.network.datawatcher.watchers.types; | ||
|
||
import net.minecraft.nbt.CompoundTag; | ||
import org.bukkit.entity.EntityType; | ||
import org.bukkit.entity.Player; | ||
import xiamomc.morph.backends.server.renderer.network.datawatcher.ValueIndex; | ||
|
||
public class PiglinWatcher extends LivingEntityWatcher | ||
{ | ||
public PiglinWatcher(Player bindingPlayer) | ||
{ | ||
super(bindingPlayer, EntityType.PIGLIN); | ||
} | ||
|
||
@Override | ||
protected void initRegistry() | ||
{ | ||
super.initRegistry(); | ||
|
||
register(ValueIndex.PIGLIN); | ||
} | ||
|
||
@Override | ||
public void mergeFromCompound(CompoundTag nbt) | ||
{ | ||
super.mergeFromCompound(nbt); | ||
|
||
if (nbt.contains("IsBaby")) | ||
write(ValueIndex.PIGLIN.IS_BABY, nbt.getBoolean("IsBaby")); | ||
|
||
//if (nbt.contains("IsImmuneToZombification")) | ||
// write(ValueIndex.PIGLIN.IMMUNE_TO_ZOMBIFICATION, nbt.getBoolean("IsImmuneToZombification")); | ||
} | ||
} |