@@ -46,20 +46,6 @@ class SkeletonHorse extends AbstractHorse implements InventoryHolder{
46
46
47
47
public const NETWORK_ID = self ::SKELETON_HORSE ;
48
48
49
- public const HORSE_VARIANT_WHITE = 0 ;
50
- public const HORSE_VARIANT_CREAMY = 1 ;
51
- public const HORSE_VARIANT_CHESTNUT = 2 ;
52
- public const HORSE_VARIANT_BROWN = 3 ;
53
- public const HORSE_VARIANT_BLACK = 4 ;
54
- public const HORSE_VARIANT_GRAY = 5 ;
55
- public const HORSE_VARIANT_DARK_BROWN = 6 ;
56
-
57
- public const HORSE_MARK_VARIANT_NONE = 0 ;
58
- public const HORSE_MARK_VARIANT_WHITE = 1 ;
59
- public const HORSE_MARK_VARIANT_WHITE_FIELD = 2 ;
60
- public const HORSE_MARK_VARIANT_WHITE_DOTS = 3 ;
61
- public const HORSE_MARK_VARIANT_BLACK_DOTS = 4 ;
62
-
63
49
public $ width = 1.4 ;
64
50
public $ height = 1.6 ;
65
51
@@ -89,18 +75,11 @@ protected function addBehaviors() : void{
89
75
}
90
76
91
77
protected function initEntity () : void {
92
- $ this ->setMaxHealth (15 );
78
+ $ this ->setMaxHealth (15 );
93
79
$ this ->setMovementSpeed ($ this ->getModifiedMovementSpeed ());
94
80
$ this ->setJumpStrength ($ this ->getModifiedJumpStrength ());
95
81
$ this ->setFollowRange (35 );
96
82
97
- if ($ this ->namedtag ->hasTag ("Variant " , IntTag::class) and $ this ->namedtag ->hasTag ("MarkVariant " , IntTag::class)){
98
- $ this ->setVariant ($ this ->namedtag ->getInt ("Variant " ));
99
- $ this ->setMarkVariant ($ this ->namedtag ->getInt ("MarkVariant " ));
100
- }else {
101
- $ this ->setVariant ($ this ->random ->nextBoundedInt (7 ));
102
- $ this ->setMarkVariant ($ this ->random ->nextBoundedInt (5 ));
103
- }
104
83
$ this ->inventory = new HorseInventory ($ this );
105
84
106
85
if ($ this ->namedtag ->hasTag ("ArmorItem " , CompoundTag::class)){
@@ -169,12 +148,11 @@ public function saveNBT() : void{
169
148
$ this ->namedtag ->setTag ($ this ->inventory ->getArmor ()->nbtSerialize (-1 , "ArmorItem " ));
170
149
}
171
150
}
172
- public
173
- function getDrops (): array
174
- {
175
- return [
176
- ItemFactory::get (Item::BONE , 0 , mt_rand (0 , 2 ))
177
- ];
178
- }
179
- //TODO: add changing normal horse to skeleton by lightning
151
+
152
+ public function getDrops () : array {
153
+ return [
154
+ ItemFactory::get (Item::BONE , 0 , mt_rand (0 , 2 ))
155
+ ];
156
+ }
157
+ //TODO: add changing normal horse to skeleton by lightning
180
158
}
0 commit comments