mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-23 21:49:50 +00:00
Bump mappings
This commit is contained in:
1 parent
b8b2ed5ff3
commit
db8b866e23
5 files changed
+12
-12
No files matched your search
@@ -227,7 +227,7 @@ public class EntityManaBurst extends ThrowableEntity implements IManaBurst {
|
||||
this.posX += vec3d.x;
|
||||
this.posY += vec3d.y;
|
||||
this.posZ += vec3d.z;
|
||||
float f = MathHelper.sqrt(func_213296_b(vec3d));
|
||||
float f = MathHelper.sqrt(horizontalMag(vec3d));
|
||||
this.rotationYaw = (float)(MathHelper.atan2(vec3d.x, vec3d.z) * (double)(180F / (float)Math.PI));
|
||||
|
||||
for(this.rotationPitch = (float)(MathHelper.atan2(vec3d.y, (double)f) * (double)(180F / (float)Math.PI)); this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F) {
|
||||
|
||||
@@ -83,7 +83,7 @@ public abstract class EntityThrowableCopy extends Entity implements IProjectile
|
||||
public void shoot(double x, double y, double z, float velocity, float inaccuracy) {
|
||||
Vec3d vec3d = (new Vec3d(x, y, z)).normalize().add(this.rand.nextGaussian() * (double)0.0075F * (double)inaccuracy, this.rand.nextGaussian() * (double)0.0075F * (double)inaccuracy, this.rand.nextGaussian() * (double)0.0075F * (double)inaccuracy).scale((double)velocity);
|
||||
this.setMotion(vec3d);
|
||||
float f = MathHelper.sqrt(func_213296_b(vec3d));
|
||||
float f = MathHelper.sqrt(horizontalMag(vec3d));
|
||||
this.rotationYaw = (float)(MathHelper.atan2(vec3d.x, vec3d.z) * (double)(180F / (float)Math.PI));
|
||||
this.rotationPitch = (float)(MathHelper.atan2(vec3d.y, (double)f) * (double)(180F / (float)Math.PI));
|
||||
this.prevRotationYaw = this.rotationYaw;
|
||||
@@ -159,7 +159,7 @@ public abstract class EntityThrowableCopy extends Entity implements IProjectile
|
||||
this.posX += vec3d.x;
|
||||
this.posY += vec3d.y;
|
||||
this.posZ += vec3d.z;
|
||||
float f = MathHelper.sqrt(func_213296_b(vec3d));
|
||||
float f = MathHelper.sqrt(horizontalMag(vec3d));
|
||||
this.rotationYaw = (float)(MathHelper.atan2(vec3d.x, vec3d.z) * (double)(180F / (float)Math.PI));
|
||||
|
||||
for(this.rotationPitch = (float)(MathHelper.atan2(vec3d.y, (double)f) * (double)(180F / (float)Math.PI)); this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F) {
|
||||
|
||||
@@ -155,9 +155,9 @@ public class ItemItemFinder extends ItemBauble {
|
||||
} else if(e instanceof VillagerEntity) {
|
||||
VillagerEntity villager = (VillagerEntity) e;
|
||||
for(MerchantOffer offer : villager.getOffers()) {
|
||||
if (equalStacks(pstack, offer.func_222218_a())
|
||||
|| equalStacks(pstack, offer.func_222202_c())
|
||||
|| equalStacks(pstack, offer.func_222200_d())) {
|
||||
if (equalStacks(pstack, offer.getBuyingStackFirst())
|
||||
|| equalStacks(pstack, offer.getBuyingStackSecond())
|
||||
|| equalStacks(pstack, offer.getSellingStack())) {
|
||||
entIdBuilder.add(villager.getEntityId());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,16 +139,16 @@ public class BlockLootProvider implements IDataProvider {
|
||||
|
||||
private static LootTable.Builder genRoot() {
|
||||
LootEntry.Builder<?> entry = ItemLootEntry.builder(ModItems.livingroot)
|
||||
.acceptFunction(SetCount.func_215932_a(RandomValueRange.of(2, 4)))
|
||||
.acceptFunction(ExplosionDecay.func_215863_b());
|
||||
.acceptFunction(SetCount.builder(RandomValueRange.of(2, 4)))
|
||||
.acceptFunction(ExplosionDecay.builder());
|
||||
return LootTable.builder().addLootPool(LootPool.builder().name("main").rolls(ConstantRange.of(1)).addEntry(entry));
|
||||
}
|
||||
|
||||
private static LootTable.Builder genSlab(Block b) {
|
||||
LootEntry.Builder<?> entry = ItemLootEntry.builder(b)
|
||||
.acceptFunction(SetCount.func_215932_a(ConstantRange.of(2))
|
||||
.acceptFunction(SetCount.builder(ConstantRange.of(2))
|
||||
.acceptCondition(BlockStateProperty.builder(b).with(SlabBlock.TYPE, SlabType.DOUBLE)))
|
||||
.acceptFunction(ExplosionDecay.func_215863_b());
|
||||
.acceptFunction(ExplosionDecay.builder());
|
||||
return LootTable.builder().addLootPool(LootPool.builder().name("main").rolls(ConstantRange.of(1)).addEntry(entry));
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ public class BlockLootProvider implements IDataProvider {
|
||||
.acceptCondition(MatchTool.builder(silkPred));
|
||||
LootEntry.Builder<?> dirt = ItemLootEntry.builder(Blocks.DIRT)
|
||||
.acceptCondition(SurvivesExplosion.builder());
|
||||
LootEntry.Builder<?> entry = AlternativesLootEntry.func_216149_a(silk, dirt);
|
||||
LootEntry.Builder<?> entry = AlternativesLootEntry.builder(silk, dirt);
|
||||
LootPool.Builder pool = LootPool.builder().name("main").rolls(ConstantRange.of(1)).addEntry(entry);
|
||||
return LootTable.builder().addLootPool(pool);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user