本文整理汇总了Java中net.minecraft.dispenser.IPosition.func_82615_a方法的典型用法代码示例。如果您正苦于以下问题:Java IPosition.func_82615_a方法的具体用法?Java IPosition.func_82615_a怎么用?Java IPosition.func_82615_a使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.dispenser.IPosition
的用法示例。
在下文中一共展示了IPosition.func_82615_a方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_82486_a
import net.minecraft.dispenser.IPosition; //导入方法依赖的package包/类
public static void func_82486_a(World p_82486_0_, ItemStack p_82486_1_, int p_82486_2_, EnumFacing p_82486_3_, IPosition p_82486_4_) {
double var5 = p_82486_4_.func_82615_a();
double var7 = p_82486_4_.func_82617_b();
double var9 = p_82486_4_.func_82616_c();
EntityItem var11 = new EntityItem(p_82486_0_, var5, var7 - 0.3D, var9, p_82486_1_);
double var12 = p_82486_0_.field_73012_v.nextDouble() * 0.1D + 0.2D;
var11.field_70159_w = (double)p_82486_3_.func_82601_c() * var12;
var11.field_70181_x = 0.20000000298023224D;
var11.field_70179_y = (double)p_82486_3_.func_82599_e() * var12;
var11.field_70159_w += p_82486_0_.field_73012_v.nextGaussian() * 0.007499999832361937D * (double)p_82486_2_;
var11.field_70181_x += p_82486_0_.field_73012_v.nextGaussian() * 0.007499999832361937D * (double)p_82486_2_;
var11.field_70179_y += p_82486_0_.field_73012_v.nextGaussian() * 0.007499999832361937D * (double)p_82486_2_;
p_82486_0_.func_72838_d(var11);
}
示例2: func_82487_b
import net.minecraft.dispenser.IPosition; //导入方法依赖的package包/类
public ItemStack func_82487_b(IBlockSource p_82487_1_, ItemStack p_82487_2_) {
EnumFacing var3 = BlockDispenser.func_100009_j_(p_82487_1_.func_82620_h());
IPosition var4 = BlockDispenser.func_82525_a(p_82487_1_);
double var5 = var4.func_82615_a() + (double)((float)var3.func_82601_c() * 0.3F);
double var7 = var4.func_82617_b() + (double)((float)var3.func_82601_c() * 0.3F);
double var9 = var4.func_82616_c() + (double)((float)var3.func_82599_e() * 0.3F);
World var11 = p_82487_1_.func_82618_k();
Random var12 = var11.field_73012_v;
double var13 = var12.nextGaussian() * 0.05D + (double)var3.func_82601_c();
double var15 = var12.nextGaussian() * 0.05D + (double)var3.func_96559_d();
double var17 = var12.nextGaussian() * 0.05D + (double)var3.func_82599_e();
var11.func_72838_d(new EntitySmallFireball(var11, var5, var7, var9, var13, var15, var17));
p_82487_2_.func_77979_a(1);
return p_82487_2_;
}
示例3: func_82499_a
import net.minecraft.dispenser.IPosition; //导入方法依赖的package包/类
protected IProjectile func_82499_a(World p_82499_1_, IPosition p_82499_2_) {
return new EntitySnowball(p_82499_1_, p_82499_2_.func_82615_a(), p_82499_2_.func_82617_b(), p_82499_2_.func_82616_c());
}
示例4: func_82499_a
import net.minecraft.dispenser.IPosition; //导入方法依赖的package包/类
protected IProjectile func_82499_a(World p_82499_1_, IPosition p_82499_2_) {
return new EntityExpBottle(p_82499_1_, p_82499_2_.func_82615_a(), p_82499_2_.func_82617_b(), p_82499_2_.func_82616_c());
}
示例5: func_82499_a
import net.minecraft.dispenser.IPosition; //导入方法依赖的package包/类
protected IProjectile func_82499_a(World p_82499_1_, IPosition p_82499_2_) {
return new EntityEgg(p_82499_1_, p_82499_2_.func_82615_a(), p_82499_2_.func_82617_b(), p_82499_2_.func_82616_c());
}
示例6: func_82499_a
import net.minecraft.dispenser.IPosition; //导入方法依赖的package包/类
protected IProjectile func_82499_a(World p_82499_1_, IPosition p_82499_2_) {
return new EntityPotion(p_82499_1_, p_82499_2_.func_82615_a(), p_82499_2_.func_82617_b(), p_82499_2_.func_82616_c(), this.field_96462_b.func_77946_l());
}
示例7: func_82499_a
import net.minecraft.dispenser.IPosition; //导入方法依赖的package包/类
protected IProjectile func_82499_a(World p_82499_1_, IPosition p_82499_2_) {
EntityArrow var3 = new EntityArrow(p_82499_1_, p_82499_2_.func_82615_a(), p_82499_2_.func_82617_b(), p_82499_2_.func_82616_c());
var3.field_70251_a = 1;
return var3;
}