Skip to content

Commit

Permalink
修正部分问题
Browse files Browse the repository at this point in the history
  • Loading branch information
TartaricAcid committed Dec 12, 2023
1 parent e8ff678 commit a8c422e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import org.jetbrains.annotations.Nullable;

public class CraftingTableBackpack extends IMaidBackpack {
Expand Down Expand Up @@ -67,18 +69,21 @@ public int getAvailableMaxContainerIndex() {
}

@Override
@OnlyIn(Dist.CLIENT)
public void offsetBackpackItem(PoseStack poseStack) {
poseStack.translate(0, 0.625, 0.25);
}

@Nullable
@Override
@OnlyIn(Dist.CLIENT)
public EntityModel<EntityMaid> getBackpackModel(EntityModelSet modelSet) {
return new CraftingTableBackpackModel(modelSet.bakeLayer(CraftingTableBackpackModel.LAYER));
}

@Nullable
@Override
@OnlyIn(Dist.CLIENT)
public ResourceLocation getBackpackTexture() {
return new ResourceLocation(TouhouLittleMaid.MOD_ID, "textures/entity/crafting_table_backpack.png");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"replace": false,
"entries": [
"touhou_little_maid:power_point"
"touhou_little_maid:power_point",
"touhou_little_maid:shrine"
]
}

0 comments on commit a8c422e

Please sign in to comment.