Class VaultBlockEntity.Client
java.lang.Object
net.minecraft.world.level.block.entity.vault.VaultBlockEntity.Client
- Enclosing class:
VaultBlockEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final float
private static final int
private static final float
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
emitActivationParticles
(Level p_329048_, BlockPos p_334504_, BlockState p_328465_, VaultSharedData p_331322_, ParticleOptions p_332937_) private static void
emitConnectionParticlesForNearbyPlayers
(Level p_329933_, BlockPos p_335364_, BlockState p_330110_, VaultSharedData p_332177_) private static void
emitConnectionParticlesForPlayer
(Level p_327765_, Vec3 p_335116_, Player p_333131_) static void
emitDeactivationParticles
(Level p_330549_, BlockPos p_334754_, ParticleOptions p_335199_) private static void
emitIdleParticles
(Level p_329901_, BlockPos p_330744_, VaultSharedData p_332348_, ParticleOptions p_333563_) private static boolean
isWithinConnectionRange
(BlockPos p_334746_, VaultSharedData p_334927_, Player p_333038_) private static Vec3
keyholePos
(BlockPos p_331540_, Direction p_333034_) private static void
playIdleSounds
(Level p_329850_, BlockPos p_333501_, VaultSharedData p_332082_) private static Vec3
randomPosCenterOfCage
(BlockPos p_329856_, RandomSource p_333945_) private static Vec3
randomPosInsideCage
(BlockPos p_327884_, RandomSource p_332986_) static boolean
shouldDisplayActiveEffects
(VaultSharedData p_329617_) static void
tick
(Level p_331255_, BlockPos p_335715_, BlockState p_330773_, VaultClientData p_335986_, VaultSharedData p_333339_)
-
Field Details
-
PARTICLE_TICK_RATE
private static final int PARTICLE_TICK_RATE- See Also:
-
IDLE_PARTICLE_CHANCE
private static final float IDLE_PARTICLE_CHANCE- See Also:
-
AMBIENT_SOUND_CHANCE
private static final float AMBIENT_SOUND_CHANCE- See Also:
-
ACTIVATION_PARTICLE_COUNT
private static final int ACTIVATION_PARTICLE_COUNT- See Also:
-
DEACTIVATION_PARTICLE_COUNT
private static final int DEACTIVATION_PARTICLE_COUNT- See Also:
-
-
Constructor Details
-
Client
public Client()
-
-
Method Details
-
emitDeactivationParticles
public static void emitDeactivationParticles(Level p_330549_, BlockPos p_334754_, ParticleOptions p_335199_) -
emitConnectionParticlesForPlayer
-
randomPosCenterOfCage
-
randomPosInsideCage
-
keyholePos