當前位置: 首頁>>代碼示例>>Java>>正文


Java SoundCategory.NEUTRAL屬性代碼示例

本文整理匯總了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;
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:9,代碼來源:MovingSoundMinecartRiding.java

示例2: MovingSoundMinecart

public MovingSoundMinecart(EntityMinecart minecartIn)
{
    super(SoundEvents.ENTITY_MINECART_RIDING, SoundCategory.NEUTRAL);
    this.minecart = minecartIn;
    this.repeat = true;
    this.repeatDelay = 0;
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:7,代碼來源:MovingSoundMinecart.java

示例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;
}
 
開發者ID:rafradek,項目名稱:Mods,代碼行數:7,代碼來源:BuildingSound.java

示例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;
}
 
開發者ID:rafradek,項目名稱:Mods,代碼行數:7,代碼來源:ReloadSound.java

示例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;
}
 
開發者ID:rafradek,項目名稱:Mods,代碼行數:7,代碼來源:WeaponSound.java

示例6: getSoundCategory

public SoundCategory getSoundCategory()
{
    return SoundCategory.NEUTRAL;
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:4,代碼來源:Entity.java

示例7: getSoundCategory

public SoundCategory getSoundCategory()
{
    return this.getRabbitType() == 99 ? SoundCategory.HOSTILE : SoundCategory.NEUTRAL;
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:4,代碼來源:EntityRabbit.java


注:本文中的net.minecraft.util.SoundCategory.NEUTRAL屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。