-
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.
add support for CosmeticArmorReworked (resolves #4)
- Loading branch information
Showing
4 changed files
with
27 additions
and
1 deletion.
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
20 changes: 20 additions & 0 deletions
20
src/main/java/com/five35/minecraft/ice/CosmeticArmorReworkedInventoryManager.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,20 @@ | ||
package com.five35.minecraft.ice; | ||
|
||
import lain.mods.cos.PlayerUtils; | ||
import lain.mods.cos.CosmeticArmorReworked; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.inventory.IInventory; | ||
import com.five35.minecraft.ice.api.GeneralInventoryManager; | ||
|
||
final class CosmeticArmorReworkedInventoryManager extends GeneralInventoryManager { | ||
@Override | ||
protected IInventory getInventory(EntityPlayer player) { | ||
return CosmeticArmorReworked.invMan.getCosArmorInventory(PlayerUtils.getPlayerID(player)); | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "CosmeticArmorReworked"; | ||
} | ||
|
||
} |
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