-
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
479faa0
commit b20f9c3
Showing
20 changed files
with
168 additions
and
63 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
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
13 changes: 13 additions & 0 deletions
13
...iamomc/morph/backends/server/renderer/network/datawatcher/values/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package xiamomc.morph.backends.server.renderer.network.datawatcher.values; | ||
|
||
public class AbstractHorseValues extends AgeableMobValues | ||
{ | ||
public final SingleValue<Byte> FLAGS = getSingle((byte)0); | ||
|
||
public AbstractHorseValues() | ||
{ | ||
super(); | ||
|
||
registerSingle(FLAGS); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...a/xiamomc/morph/backends/server/renderer/network/datawatcher/values/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package xiamomc.morph.backends.server.renderer.network.datawatcher.values; | ||
|
||
public class AgeableMobValues extends MobValues | ||
{ | ||
public final SingleValue<Boolean> IS_BABY = getSingle(false); | ||
|
||
public AgeableMobValues() | ||
{ | ||
super(); | ||
|
||
registerSingle(IS_BABY); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package xiamomc.morph.backends.server.renderer.network.datawatcher.values; | ||
|
||
public class HorseValues extends AbstractHorseValues | ||
{ | ||
public final SingleValue<Integer> VARIANT = getSingle(0); | ||
|
||
public HorseValues() | ||
{ | ||
super(); | ||
|
||
registerSingle(VARIANT); | ||
} | ||
} |
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
22 changes: 22 additions & 0 deletions
22
...kends/server/renderer/network/datawatcher/watchers/types/horses/AbstractHorseWatcher.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,22 @@ | ||
package xiamomc.morph.backends.server.renderer.network.datawatcher.watchers.types.horses; | ||
|
||
import org.bukkit.entity.EntityType; | ||
import org.bukkit.entity.Player; | ||
import xiamomc.morph.backends.server.renderer.network.datawatcher.ValueIndex; | ||
import xiamomc.morph.backends.server.renderer.network.datawatcher.watchers.types.LivingEntityWatcher; | ||
|
||
public class AbstractHorseWatcher extends LivingEntityWatcher | ||
{ | ||
@Override | ||
protected void initRegistry() | ||
{ | ||
super.initRegistry(); | ||
|
||
register(ValueIndex.ABSTRACT_HORSE); | ||
} | ||
|
||
public AbstractHorseWatcher(Player bindingPlayer, EntityType entityType) | ||
{ | ||
super(bindingPlayer, entityType); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...orph/backends/server/renderer/network/datawatcher/watchers/types/horses/HorseWatcher.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,21 @@ | ||
package xiamomc.morph.backends.server.renderer.network.datawatcher.watchers.types.horses; | ||
|
||
import org.bukkit.entity.EntityType; | ||
import org.bukkit.entity.Player; | ||
import xiamomc.morph.backends.server.renderer.network.datawatcher.ValueIndex; | ||
|
||
public class HorseWatcher extends AbstractHorseWatcher | ||
{ | ||
public HorseWatcher(Player bindingPlayer) | ||
{ | ||
super(bindingPlayer, EntityType.HORSE); | ||
} | ||
|
||
@Override | ||
protected void initRegistry() | ||
{ | ||
super.initRegistry(); | ||
|
||
register(ValueIndex.HORSE); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...kends/server/renderer/network/datawatcher/watchers/types/horses/SkeletonHorseWatcher.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,12 @@ | ||
package xiamomc.morph.backends.server.renderer.network.datawatcher.watchers.types.horses; | ||
|
||
import org.bukkit.entity.EntityType; | ||
import org.bukkit.entity.Player; | ||
|
||
public class SkeletonHorseWatcher extends AbstractHorseWatcher | ||
{ | ||
public SkeletonHorseWatcher(Player bindingPlayer) | ||
{ | ||
super(bindingPlayer, EntityType.SKELETON_HORSE); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ackends/server/renderer/network/datawatcher/watchers/types/horses/ZombieHorseWatcher.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,12 @@ | ||
package xiamomc.morph.backends.server.renderer.network.datawatcher.watchers.types.horses; | ||
|
||
import org.bukkit.entity.EntityType; | ||
import org.bukkit.entity.Player; | ||
|
||
public class ZombieHorseWatcher extends AbstractHorseWatcher | ||
{ | ||
public ZombieHorseWatcher(Player bindingPlayer) | ||
{ | ||
super(bindingPlayer, EntityType.ZOMBIE_HORSE); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...s/server/renderer/network/datawatcher/watchers/types/slimemagma/AbstractSlimeWatcher.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,23 @@ | ||
package xiamomc.morph.backends.server.renderer.network.datawatcher.watchers.types.slimemagma; | ||
|
||
import org.bukkit.entity.EntityType; | ||
import org.bukkit.entity.Player; | ||
import xiamomc.morph.backends.server.renderer.network.datawatcher.ValueIndex; | ||
import xiamomc.morph.backends.server.renderer.network.datawatcher.watchers.types.LivingEntityWatcher; | ||
|
||
public class AbstractSlimeWatcher extends LivingEntityWatcher | ||
{ | ||
@Override | ||
protected void initRegistry() | ||
{ | ||
super.initRegistry(); | ||
|
||
register(ValueIndex.SLIME_MAGMA); | ||
} | ||
|
||
public AbstractSlimeWatcher(Player bindingPlayer, EntityType entityType) | ||
{ | ||
super(bindingPlayer, entityType); | ||
|
||
} | ||
} |
13 changes: 3 additions & 10 deletions
13
...awatcher/watchers/types/MagmaWatcher.java → ...tchers/types/slimemagma/MagmaWatcher.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
13 changes: 3 additions & 10 deletions
13
...awatcher/watchers/types/SlimeWatcher.java → ...tchers/types/slimemagma/SlimeWatcher.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