Added getNewCopy() to Ritual to allow tiles to hold their own copy of a Ritual. Created caching in AreaDescriptor for faster BlockPos access.
This commit is contained in:
parent
69355f76fb
commit
d7a96c061d
7 changed files with 72 additions and 14 deletions
|
@ -31,7 +31,7 @@ public abstract class Ritual
|
|||
private final RitualRenderer renderer;
|
||||
private final String unlocalizedName;
|
||||
|
||||
private final Map<String, AreaDescriptor> modableRangeMap = new HashMap<String, AreaDescriptor>();
|
||||
protected final Map<String, AreaDescriptor> modableRangeMap = new HashMap<String, AreaDescriptor>();
|
||||
|
||||
/**
|
||||
* @param name
|
||||
|
@ -165,4 +165,6 @@ public abstract class Ritual
|
|||
{
|
||||
REDSTONE, BREAK_MRS, BREAK_STONE, ACTIVATE, DEACTIVATE, EXPLOSION,
|
||||
}
|
||||
|
||||
public abstract Ritual getNewCopy();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue