@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/damagesource/DamageSources.java
|
||||
+++ b/net/minecraft/world/damagesource/DamageSources.java
|
||||
@@ -42,9 +42,15 @@
|
||||
@@ -43,9 +43,15 @@
|
||||
private final DamageSource stalagmite;
|
||||
private final DamageSource outsideBorder;
|
||||
private final DamageSource genericKill;
|
||||
@@ -9,15 +9,15 @@
|
||||
+ private final DamageSource poison;
|
||||
|
||||
public DamageSources(IRegistryCustom iregistrycustom) {
|
||||
this.damageTypes = iregistrycustom.registryOrThrow(Registries.DAMAGE_TYPE);
|
||||
this.damageTypes = iregistrycustom.lookupOrThrow(Registries.DAMAGE_TYPE);
|
||||
+ this.melting = this.source(DamageTypes.ON_FIRE).melting();
|
||||
+ this.poison = this.source(DamageTypes.MAGIC).poison();
|
||||
+ // CraftBukkit end
|
||||
this.inFire = this.source(DamageTypes.IN_FIRE);
|
||||
this.campfire = this.source(DamageTypes.CAMPFIRE);
|
||||
this.lightningBolt = this.source(DamageTypes.LIGHTNING_BOLT);
|
||||
@@ -83,6 +89,16 @@
|
||||
return new DamageSource(this.damageTypes.getHolderOrThrow(resourcekey), entity, entity1);
|
||||
@@ -85,6 +91,16 @@
|
||||
return new DamageSource(this.damageTypes.getOrThrow(resourcekey), entity, entity1);
|
||||
}
|
||||
|
||||
+ // CraftBukkit start
|
||||
@@ -33,7 +33,7 @@
|
||||
public DamageSource inFire() {
|
||||
return this.inFire;
|
||||
}
|
||||
@@ -248,7 +264,13 @@
|
||||
@@ -254,7 +270,13 @@
|
||||
}
|
||||
|
||||
public DamageSource explosion(@Nullable Entity entity, @Nullable Entity entity1) {
|
||||
@@ -48,17 +48,17 @@
|
||||
}
|
||||
|
||||
public DamageSource sonicBoom(Entity entity) {
|
||||
@@ -256,7 +278,13 @@
|
||||
@@ -262,7 +284,13 @@
|
||||
}
|
||||
|
||||
public DamageSource badRespawnPointExplosion(Vec3D vec3d) {
|
||||
- return new DamageSource(this.damageTypes.getHolderOrThrow(DamageTypes.BAD_RESPAWN_POINT), vec3d);
|
||||
- return new DamageSource(this.damageTypes.getOrThrow(DamageTypes.BAD_RESPAWN_POINT), vec3d);
|
||||
+ // CraftBukkit start
|
||||
+ return badRespawnPointExplosion(vec3d, null);
|
||||
+ }
|
||||
+
|
||||
+ public DamageSource badRespawnPointExplosion(Vec3D vec3d, org.bukkit.block.BlockState blockState) {
|
||||
+ return new DamageSource(this.damageTypes.getHolderOrThrow(DamageTypes.BAD_RESPAWN_POINT), vec3d).directBlockState(blockState);
|
||||
+ return new DamageSource(this.damageTypes.getOrThrow(DamageTypes.BAD_RESPAWN_POINT), vec3d).directBlockState(blockState);
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user