1111import dan200 .computercraft .shared .util .InventoryUtil ;
1212import dan200 .computercraft .shared .util .WorldUtil ;
1313import net .minecraft .entity .Entity ;
14+ import net .minecraft .entity .IMerchant ;
15+ import net .minecraft .entity .passive .AbstractHorse ;
16+ import net .minecraft .inventory .IInventory ;
1417import net .minecraft .item .ItemStack ;
1518import net .minecraft .tileentity .TileEntitySign ;
1619import net .minecraft .util .EnumFacing ;
20+ import net .minecraft .util .EnumHand ;
1721import net .minecraft .util .math .BlockPos ;
22+ import net .minecraft .util .math .Vec3d ;
23+ import net .minecraft .world .IInteractionObject ;
1824import net .minecraft .world .World ;
1925import net .minecraft .world .WorldServer ;
2026import net .minecraftforge .common .util .FakePlayer ;
@@ -87,6 +93,12 @@ public ItemStack unloadInventory( ITurtleAccess turtle )
8793 return results ;
8894 }
8995
96+ @ Override
97+ public Vec3d getPositionVector ()
98+ {
99+ return new Vec3d ( posX , posY , posZ );
100+ }
101+
90102 @ Override
91103 public float getEyeHeight ()
92104 {
@@ -100,17 +112,69 @@ public float getDefaultEyeHeight()
100112 }
101113
102114 @ Override
103- public void mountEntityAndWakeUp ()
115+ public void sendEnterCombat ()
104116 {
105117 }
106118
107119 @ Override
108- public void dismountEntity ( @ Nonnull Entity entity )
120+ public void sendEndCombat ( )
109121 {
110122 }
111123
124+ @ Nonnull
125+ @ Override
126+ public SleepResult trySleep ( @ Nonnull BlockPos bedLocation )
127+ {
128+ return SleepResult .OTHER_PROBLEM ;
129+ }
130+
112131 @ Override
113132 public void openEditSign ( TileEntitySign signTile )
114133 {
115134 }
135+
136+ @ Override
137+ public void displayGui ( IInteractionObject guiOwner )
138+ {
139+ }
140+
141+ @ Override
142+ public void displayGUIChest ( IInventory chestInventory )
143+ {
144+ }
145+
146+ @ Override
147+ public void displayVillagerTradeGui ( IMerchant villager )
148+ {
149+ }
150+
151+ @ Override
152+ public void openGuiHorseInventory ( AbstractHorse horse , IInventory inventoryIn )
153+ {
154+ }
155+
156+ @ Override
157+ public void openBook ( ItemStack stack , @ Nonnull EnumHand hand )
158+ {
159+ }
160+
161+ @ Override
162+ public void updateHeldItem ()
163+ {
164+ }
165+
166+ @ Override
167+ protected void onItemUseFinish ()
168+ {
169+ }
170+
171+ @ Override
172+ public void mountEntityAndWakeUp ()
173+ {
174+ }
175+
176+ @ Override
177+ public void dismountEntity ( @ Nonnull Entity entity )
178+ {
179+ }
116180}
0 commit comments