mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-03 03:31:32 +00:00
Remove iris:placement-settings: the placement stages describe their held types
This commit is contained in:
1 parent
37851fee0c
commit
46b94ad6a8
2 files changed
+2
-61
No files matched your search
@@ -74,9 +74,9 @@ public final class IrisModuleHost {
|
|||||||
return hostModules();
|
return hostModules();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Modules that are Iris itself, not features: they write the layout's platform biomes, record the platform's custom blocks, describe the classes Iris's placement settings hold and serve Iris's structure model. A pack never replaces them and the built-ins jar does not hold them. */
|
/** Modules that are Iris itself, not features: they write the layout's platform biomes, record the platform's custom blocks and serve Iris's structure model. A pack never replaces them and the built-ins jar does not hold them. */
|
||||||
private static List<IrisModule> hostModules() {
|
private static List<IrisModule> hostModules() {
|
||||||
return List.of(new BiomeModule(), new CustomModule(), new PlacementSettingsModule(), new StructureModelModule());
|
return List.of(new BiomeModule(), new CustomModule(), new StructureModelModule());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Iris's own log, labelled {@code [iris]}, for host code that calls module classes outside any module's stage, service or hook. */
|
/** Iris's own log, labelled {@code [iris]}, for host code that calls module classes outside any module's stage, service or hook. */
|
||||||
|
|||||||
@@ -1,59 +0,0 @@
|
|||||||
/*
|
|
||||||
* Iris is a World Generator for Minecraft Servers
|
|
||||||
* Copyright (c) 2026 Arcane Arts (Volmit Software)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package art.arcane.iris.core.modules;
|
|
||||||
|
|
||||||
import art.arcane.iris.builtin.blocks.ObjectReplace;
|
|
||||||
import art.arcane.iris.builtin.prepare.AxisRotationClamp;
|
|
||||||
import art.arcane.iris.builtin.prepare.SlopeClip;
|
|
||||||
import art.arcane.iris.builtin.stilt.StiltSettings;
|
|
||||||
import art.arcane.iris.builtin.vacuum.VacuumSettings;
|
|
||||||
import art.arcane.iris.builtin.validate.ObjectLimit;
|
|
||||||
import com.volmit.FeatureRegistry;
|
|
||||||
import com.volmit.IrisModule;
|
|
||||||
import com.volmit.ModuleInfo;
|
|
||||||
import com.volmit.stage.StageGraph;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Module {@code iris:placement-settings}: describes the classes an object placement's settings hold, which Iris's own
|
|
||||||
* {@code IrisObjectPlacement} holds as fields. Only a module compiled into Iris may describe such a class, so the
|
|
||||||
* placement stages, which ship in the built-ins jar, cannot. It has no stages and goes when the placement settings move
|
|
||||||
* into a module and nothing of Iris's holds these classes.
|
|
||||||
*/
|
|
||||||
public final class PlacementSettingsModule implements IrisModule {
|
|
||||||
private static final String VERSION = "built-in";
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModuleInfo info() {
|
|
||||||
return ModuleInfo.of("iris:placement-settings", "Placement settings", VERSION);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void install(StageGraph graph) {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void register(FeatureRegistry registry) {
|
|
||||||
registry.registerHeldType(SlopeClip.class);
|
|
||||||
registry.registerHeldType(AxisRotationClamp.class);
|
|
||||||
registry.registerHeldType(ObjectLimit.class);
|
|
||||||
registry.registerHeldType(StiltSettings.class);
|
|
||||||
registry.registerHeldType(VacuumSettings.class);
|
|
||||||
registry.registerHeldType(ObjectReplace.class);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user