mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
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:
parent
8bb902842c
commit
c6e45b313c
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue