mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Add mappings for pre initialized items
This commit is contained in:
parent
ccad0bced9
commit
10b87f5728
@ -13,6 +13,9 @@ public abstract class BlockRegistry<T> {
|
||||
|
||||
public BlockRegistry(@NonNull final Class<T> type, final T... preInitializedItems) {
|
||||
this.type = type;
|
||||
for (final T preInitializedItem : preInitializedItems) {
|
||||
this.addMapping(getPlotBlock(preInitializedItem), preInitializedItem);
|
||||
}
|
||||
}
|
||||
|
||||
public final void addMapping(@NonNull final PlotBlock plotBlock, @NonNull final T t) {
|
||||
|
Loading…
Reference in New Issue
Block a user