-
Notifications
You must be signed in to change notification settings - Fork 68
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
1d817bd
commit 0a6d840
Showing
27 changed files
with
170 additions
and
207 deletions.
There are no files selected for viewing
201 changes: 89 additions & 112 deletions
201
src/main/java/com/github/tartaricacid/touhoulittlemaid/client/model/EntityFairyModel.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
31 changes: 31 additions & 0 deletions
31
src/main/java/com/github/tartaricacid/touhoulittlemaid/event/food/DefaultEatenEvent.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,31 @@ | ||
package com.github.tartaricacid.touhoulittlemaid.event.food; | ||
|
||
import com.github.tartaricacid.touhoulittlemaid.api.event.MaidAfterEatEvent; | ||
import com.github.tartaricacid.touhoulittlemaid.entity.passive.EntityMaid; | ||
import net.minecraft.world.entity.item.ItemEntity; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraftforge.eventbus.api.SubscribeEvent; | ||
import net.minecraftforge.fml.common.Mod; | ||
import net.minecraftforge.items.ItemHandlerHelper; | ||
import net.minecraftforge.items.wrapper.CombinedInvWrapper; | ||
|
||
@Mod.EventBusSubscriber | ||
public class DefaultEatenEvent { | ||
@SubscribeEvent | ||
public static void onAfterMaidEat(MaidAfterEatEvent event) { | ||
ItemStack foodAfterEat = event.getFoodAfterEat(); | ||
if (!foodAfterEat.isEmpty()) { | ||
ItemStack craftingRemainingItem = foodAfterEat.getCraftingRemainingItem(); | ||
if (!craftingRemainingItem.isEmpty()) { | ||
EntityMaid maid = event.getMaid(); | ||
CombinedInvWrapper availableInv = maid.getAvailableInv(false); | ||
ItemStack result = ItemHandlerHelper.insertItemStacked(availableInv, craftingRemainingItem, false); | ||
// 如果女仆背包满了,掉落在地上 | ||
if (!result.isEmpty()) { | ||
ItemEntity itemEntity = new ItemEntity(maid.level, maid.getX(), maid.getY(), maid.getZ(), craftingRemainingItem); | ||
maid.level.addFreshEntity(itemEntity); | ||
} | ||
} | ||
} | ||
} | ||
} |
30 changes: 0 additions & 30 deletions
30
src/main/java/com/github/tartaricacid/touhoulittlemaid/event/food/HoneyBottleEvent.java
This file was deleted.
Oops, something went wrong.
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
Binary file added
BIN
+1.48 KB
...n/resources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.48 KB
...resources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.55 KB
...esources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.51 KB
...esources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.46 KB
...esources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.47 KB
...esources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.49 KB
...esources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.52 KB
...esources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.48 KB
...resources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.52 KB
...resources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.51 KB
...resources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.48 KB
...resources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.47 KB
...resources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.48 KB
...resources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.5 KB
...resources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.53 KB
...resources/assets/touhou_little_maid/textures/entity/maid_fairy/maid_fairy_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-4.03 KB
src/main/resources/assets/touhou_little_maid/textures/entity/maid_fairy_0.png
Binary file not shown.
Binary file removed
BIN
-3.62 KB
src/main/resources/assets/touhou_little_maid/textures/entity/maid_fairy_1.png
Binary file not shown.
Binary file removed
BIN
-3.71 KB
src/main/resources/assets/touhou_little_maid/textures/entity/maid_fairy_2.png
Binary file not shown.
Binary file modified
BIN
+3.75 KB
(100%)
src/main/resources/assets/touhou_little_maid/tlm_custom_pack/touhou_little_maid-1.0.0.zip
Binary file not shown.