-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathCapHolders.java
More file actions
33 lines (27 loc) · 967 Bytes
/
CapHolders.java
File metadata and controls
33 lines (27 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package pokecube.core.utils;
import net.minecraft.resources.ResourceLocation;
import net.neoforged.neoforge.attachment.IAttachmentHolder;
import pokecube.api.ai.IInhabitor;
import pokecube.api.blocks.IInhabitable;
import pokecube.api.entity.pokemob.PokemobCaps;
import pokecube.core.ai.routes.GuardAICapability;
import pokecube.core.ai.routes.IGuardAICapability;
public class CapHolders
{
public static IInhabitor getInhabitor(final IAttachmentHolder in)
{
return PokemobCaps.getInhabitorFor(in);
}
public static IInhabitable getInhabitable(final IAttachmentHolder in, ResourceLocation defaultHabitat)
{
return PokemobCaps.getHabitatFor(in, defaultHabitat);
}
public static IInhabitable getInhabitable(IAttachmentHolder in)
{
return PokemobCaps.getHabitatFor(in);
}
public static IGuardAICapability getGuardAI(IAttachmentHolder in)
{
return GuardAICapability.getGuardInfo(in);
}
}