本文整理匯總了Java中net.minecraft.util.SoundCategory.NEUTRAL屬性的典型用法代碼示例。如果您正苦於以下問題:Java SoundCategory.NEUTRAL屬性的具體用法?Java SoundCategory.NEUTRAL怎麽用?Java SoundCategory.NEUTRAL使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類net.minecraft.util.SoundCategory
的用法示例。
在下文中一共展示了SoundCategory.NEUTRAL屬性的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: MovingSoundMinecartRiding
public MovingSoundMinecartRiding(EntityPlayer playerRiding, EntityMinecart minecart)
{
super(SoundEvents.ENTITY_MINECART_INSIDE, SoundCategory.NEUTRAL);
this.player = playerRiding;
this.minecart = minecart;
this.attenuationType = ISound.AttenuationType.NONE;
this.repeat = true;
this.repeatDelay = 0;
}
示例2: MovingSoundMinecart
public MovingSoundMinecart(EntityMinecart minecartIn)
{
super(SoundEvents.ENTITY_MINECART_RIDING, SoundCategory.NEUTRAL);
this.minecart = minecartIn;
this.repeat = true;
this.repeatDelay = 0;
}
示例3: BuildingSound
protected BuildingSound(EntityBuilding sentry, SoundEvent location, int state) {
super(location, SoundCategory.NEUTRAL);
this.sentry = sentry;
this.volume = 0.65f;
this.repeat = true;
this.state = state;
}
示例4: ReloadSound
public ReloadSound(SoundEvent soundResource, Entity entity) {
super(soundResource, SoundCategory.NEUTRAL);
this.xPosF = (float) entity.posX;
this.yPosF = (float) entity.posY;
this.zPosF = (float) entity.posZ;
this.volume = 0.6f;
}
示例5: WeaponSound
public WeaponSound(SoundEvent p_i45104_1_, EntityLivingBase entity, int type, WeaponData conf) {
super(p_i45104_1_, SoundCategory.NEUTRAL);
this.type = type;
this.entity = entity;
this.conf = conf;
this.volume = entity instanceof EntityPlayer ? TF2ConfigVars.gunVolume : TF2ConfigVars.mercenaryVolume;
}
示例6: getSoundCategory
public SoundCategory getSoundCategory()
{
return SoundCategory.NEUTRAL;
}
示例7: getSoundCategory
public SoundCategory getSoundCategory()
{
return this.getRabbitType() == 99 ? SoundCategory.HOSTILE : SoundCategory.NEUTRAL;
}