Cache the bound SoulNetwork for rituals
Avoids looking up the map data once or more each tick
This commit is contained in:
parent
59c20971ab
commit
c13be9ebce
29 changed files with 93 additions and 164 deletions
|
@ -2,6 +2,7 @@ package WayofTime.bloodmagic.api.ritual;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import WayofTime.bloodmagic.api.saving.SoulNetwork;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
|
@ -18,6 +19,8 @@ public interface IMasterRitualStone
|
|||
{
|
||||
String getOwner();
|
||||
|
||||
SoulNetwork getOwnerNetwork();
|
||||
|
||||
boolean activateRitual(ItemStack activationCrystal, EntityPlayer activator, Ritual ritual);
|
||||
|
||||
void performRitual(World world, BlockPos pos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue