mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-05-06 18:20:46 +00:00
Add mappings for pre initialized items
This commit is contained in:
parent
ccad0bced9
commit
10b87f5728
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue