类 WeavingMobEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
net.minecraft.world.effect.WeavingMobEffect
- 所有已实现的接口:
FeatureElement
,IForgeMobEffect
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.effect.MobEffect
MobEffect.AttributeTemplate
-
字段概要
字段从类继承的字段 net.minecraft.world.effect.MobEffect
CODEC, STREAM_CODEC
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器限定符构造器说明protected
WeavingMobEffect
(MobEffectCategory p_331231_, int p_336179_, ToIntFunction<RandomSource> p_328620_) -
方法概要
修饰符和类型方法说明void
onMobRemoved
(ServerLevel p_362050_, LivingEntity p_335117_, int p_333338_, Entity.RemovalReason p_328096_) private void
spawnCobwebsRandomlyAround
(ServerLevel p_368804_, RandomSource p_332035_, BlockPos p_329542_) 从类继承的方法 net.minecraft.world.effect.MobEffect
addAttributeModifier, addAttributeModifiers, applyEffectTick, applyInstantenousEffect, createModifiers, createParticleOptions, getBlendDurationTicks, getCategory, getColor, getDescriptionId, getDisplayName, getEffectRendererInternal, getOrCreateDescriptionId, initializeClient, isBeneficial, isInstantenous, onEffectAdded, onEffectStarted, onMobHurt, removeAttributeModifiers, requiredFeatures, requiredFeatures, setBlendDuration, shouldApplyEffectTickThisTick, withSoundOnAdded
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.minecraftforge.common.extensions.IForgeMobEffect
getCurativeItems, getSortOrder
-
字段详细资料
-
maxCobwebs
-
-
构造器详细资料
-
WeavingMobEffect
protected WeavingMobEffect(MobEffectCategory p_331231_, int p_336179_, ToIntFunction<RandomSource> p_328620_)
-
-
方法详细资料
-
onMobRemoved
public void onMobRemoved(ServerLevel p_362050_, LivingEntity p_335117_, int p_333338_, Entity.RemovalReason p_328096_) - 覆盖:
onMobRemoved
在类中MobEffect
-
spawnCobwebsRandomlyAround
private void spawnCobwebsRandomlyAround(ServerLevel p_368804_, RandomSource p_332035_, BlockPos p_329542_)
-