类 SilkConfiguredFeature

java.lang.Object
pers.saikel0rado1iu.silk.gen.world.SilkConfiguredFeature

@SilkApi public abstract class SilkConfiguredFeature extends Object

用于创建、注册、生成已配置的地物

模组作者需要在 SilkWorldGenerator 中覆盖 SilkWorldGenerator.configuredFeatures()方法

实例化

从以下版本开始:
0.1.0
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    abstract void
    bootstrap(net.minecraft.registry.Registerable<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>> featureRegisterable)
    参考 ConfiguredFeatures.bootstrap(Registerable)
    protected static <FC extends net.minecraft.world.gen.feature.FeatureConfig, F extends net.minecraft.world.gen.feature.Feature<FC>>
    void
    register(net.minecraft.registry.Registerable<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>> registerable, net.minecraft.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>> key, F feature, FC config)
     
    protected static void
    register(net.minecraft.registry.Registerable<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>> registerable, net.minecraft.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>> key, net.minecraft.world.gen.feature.Feature<net.minecraft.world.gen.feature.DefaultFeatureConfig> feature)
     
    protected static net.minecraft.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>>
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

  • 构造器详细资料

    • SilkConfiguredFeature

      public SilkConfiguredFeature()
  • 方法详细资料

    • register

      @SilkApi protected static net.minecraft.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>> register(ModBasicData mod, String id)
    • register

      @SilkApi protected static <FC extends net.minecraft.world.gen.feature.FeatureConfig, F extends net.minecraft.world.gen.feature.Feature<FC>> void register(net.minecraft.registry.Registerable<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>> registerable, net.minecraft.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>> key, F feature, FC config)
    • register

      @SilkApi protected static void register(net.minecraft.registry.Registerable<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>> registerable, net.minecraft.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>> key, net.minecraft.world.gen.feature.Feature<net.minecraft.world.gen.feature.DefaultFeatureConfig> feature)
    • bootstrap

      @OverrideOnly public abstract void bootstrap(net.minecraft.registry.Registerable<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>> featureRegisterable)
      参考 ConfiguredFeatures.bootstrap(Registerable)