mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-04 19:45:59 +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) {
|
public BlockRegistry(@NonNull final Class<T> type, final T... preInitializedItems) {
|
||||||
this.type = type;
|
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) {
|
public final void addMapping(@NonNull final PlotBlock plotBlock, @NonNull final T t) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue