mappings
This commit is contained in:
1 parent
1d86b4a223
commit
40ab2dda8d
5 files changed
+8
-8
No files matched your search
@@ -184,7 +184,7 @@ public class OptimizedExplosion
|
||||
double posY = eAccess.getY();
|
||||
double posZ = eAccess.getZ();
|
||||
|
||||
boolean damagesTerrain = eAccess.getBlockDestructionType() != Explosion.DestructionType.NONE;
|
||||
boolean damagesTerrain = eAccess.getDestructionType() != Explosion.DestructionType.NONE;
|
||||
|
||||
// explosionSound incremented till disabling the explosion particles and sound
|
||||
if (explosionSound < 100 || explosionSound % 100 == 0)
|
||||
@@ -249,7 +249,7 @@ public class OptimizedExplosion
|
||||
.put(LootContextParameters.TOOL, ItemStack.EMPTY)
|
||||
.putNullable(LootContextParameters.BLOCK_ENTITY, blockEntity);
|
||||
|
||||
if (eAccess.getBlockDestructionType() == Explosion.DestructionType.DESTROY)
|
||||
if (eAccess.getDestructionType() == Explosion.DestructionType.DESTROY)
|
||||
lootBuilder.put(LootContextParameters.EXPLOSION_RADIUS, eAccess.getPower());
|
||||
|
||||
state.getDroppedStacks(lootBuilder).forEach((itemStackx) -> {
|
||||
|
||||
@@ -15,7 +15,7 @@ public interface ExplosionAccessor {
|
||||
boolean isCreateFire();
|
||||
|
||||
@Accessor
|
||||
Explosion.DestructionType getBlockDestructionType();
|
||||
Explosion.DestructionType getDestructionType();
|
||||
|
||||
@Accessor
|
||||
World getWorld();
|
||||
|
||||
@@ -46,7 +46,7 @@ public abstract class ProjectileEntityMixin extends Entity
|
||||
}
|
||||
}
|
||||
|
||||
@Inject(method = "method_24920", at = @At("RETURN")) // on block hit
|
||||
@Inject(method = "onBlockHit", at = @At("RETURN"))
|
||||
private void removeOnBlock(BlockHitResult blockHitResult, CallbackInfo ci)
|
||||
{
|
||||
if (LoggerRegistry.__projectiles && logHelper != null)
|
||||
|
||||
@@ -142,7 +142,7 @@ public class SpawnHelperMixin
|
||||
return entityType.create(world_1);
|
||||
}
|
||||
|
||||
@Redirect(method = "method_24930", at = @At(
|
||||
@Redirect(method = "spawnEntitiesInChunk(Lnet/minecraft/entity/EntityCategory;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos;)V", at = @At(
|
||||
value = "INVOKE",
|
||||
target = "Lnet/minecraft/server/world/ServerWorld;spawnEntity(Lnet/minecraft/entity/Entity;)Z"
|
||||
))
|
||||
@@ -165,7 +165,7 @@ public class SpawnHelperMixin
|
||||
return false;
|
||||
}
|
||||
|
||||
@Redirect(method = "method_24930", at = @At(
|
||||
@Redirect(method = "spawnEntitiesInChunk(Lnet/minecraft/entity/EntityCategory;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos;)V", at = @At(
|
||||
value = "INVOKE",
|
||||
target = "Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/IWorld;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnType;Lnet/minecraft/entity/EntityData;Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/entity/EntityData;"
|
||||
))
|
||||
@@ -176,7 +176,7 @@ public class SpawnHelperMixin
|
||||
return null;
|
||||
}
|
||||
|
||||
@Redirect(method = "method_24930", at = @At(
|
||||
@Redirect(method = "spawnEntitiesInChunk(Lnet/minecraft/entity/EntityCategory;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/BlockPos;)V", at = @At(
|
||||
value = "INVOKE",
|
||||
target = "Lnet/minecraft/entity/player/PlayerEntity;squaredDistanceTo(DDD)D"
|
||||
))
|
||||
|
||||
Reference in new issue
Block a user