SculkCatalyst bloom API

== AT ==
public net.minecraft.world.level.block.entity.SculkCatalystBlockEntity$CatalystListener bloom(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/util/RandomSource;)V
This commit is contained in:
Oliwier Miodun 2023-07-10 17:59:42 +02:00
parent 8bb902842c
commit c6e45b313c

View file

@ -38,4 +38,20 @@ public class CraftSculkCatalyst extends CraftBlockEntityState<SculkCatalystBlock
public CraftSculkCatalyst copy(Location location) {
return new CraftSculkCatalyst(this, location);
}
// Paper start - SculkCatalyst bloom API
@Override
public void bloom(@org.jetbrains.annotations.NotNull io.papermc.paper.math.Position position, int charge) {
com.google.common.base.Preconditions.checkNotNull(position);
requirePlaced();
getTileEntity().getListener().bloom(
world.getHandle(),
getTileEntity().getBlockPos(),
getTileEntity().getBlockState(),
world.getHandle().getRandom()
);
getTileEntity().getListener().getSculkSpreader().addCursors(io.papermc.paper.util.MCUtil.toBlockPos(position), charge);
}
// Paper end
}