1.18-pre1
This commit is contained in:
1 parent
6468ac37c7
commit
5a6fc19bb0
10 files changed
+57
-24
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.fakes.PlacedFeatureInterface;
|
||||
import net.minecraft.class_6796;
|
||||
import net.minecraft.world.gen.feature.ConfiguredFeature;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
@Mixin(class_6796.class)
|
||||
public class PlacedFeature_scarpetMixin implements PlacedFeatureInterface {
|
||||
|
||||
@Shadow @Final private Supplier<ConfiguredFeature<?, ?>> field_35732;
|
||||
|
||||
@Override
|
||||
public ConfiguredFeature<?, ?> getRawFeature() {
|
||||
return field_35732.get();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user