Class SoulPulseEffect
java.lang.Object
com.simibubi.create.content.curiosities.bell.SoulPulseEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<net.minecraft.core.BlockPos>final intstatic final intfinal net.minecraft.core.BlockPosstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionSoulPulseEffect(net.minecraft.core.BlockPos pos, int distance, boolean canOverlap) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic booleancanSpawnSoulAt(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos at, boolean ignoreLight) intbooleanfinished()static Stream<net.minecraft.core.BlockPos>getLayer(int idx) List<net.minecraft.core.BlockPos>getPotentialSoulSpawns(net.minecraft.world.level.Level world) static booleanisDark(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos at) voidspawnParticles(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos at) List<net.minecraft.core.BlockPos>tick(net.minecraft.world.level.Level world)
-
Field Details
-
MAX_DISTANCE
public static final int MAX_DISTANCE- See Also:
-
TICKS_PER_LAYER
public static final int TICKS_PER_LAYER- See Also:
-
pos
public final net.minecraft.core.BlockPos pos -
distance
public final int distance -
added
-
-
Constructor Details
-
SoulPulseEffect
public SoulPulseEffect(net.minecraft.core.BlockPos pos, int distance, boolean canOverlap)
-
-
Method Details
-
finished
public boolean finished() -
canOverlap
public boolean canOverlap() -
tick
-
currentLayerIdx
public int currentLayerIdx() -
getPotentialSoulSpawns
public List<net.minecraft.core.BlockPos> getPotentialSoulSpawns(net.minecraft.world.level.Level world) -
isDark
public static boolean isDark(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos at) -
canSpawnSoulAt
public static boolean canSpawnSoulAt(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos at, boolean ignoreLight) -
spawnParticles
public void spawnParticles(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos at) -
getLayer
-