调整list实现方式
This commit is contained in:
parent
c3c46f26d4
commit
50ba7d8bb5
1 changed files with 2 additions and 2 deletions
|
@ -4,14 +4,14 @@ import net.minecraft.resources.ResourceKey;
|
||||||
import net.minecraft.tags.TagKey;
|
import net.minecraft.tags.TagKey;
|
||||||
import net.minecraft.world.damagesource.DamageSource;
|
import net.minecraft.world.damagesource.DamageSource;
|
||||||
import net.minecraft.world.damagesource.DamageType;
|
import net.minecraft.world.damagesource.DamageType;
|
||||||
import org.apache.commons.compress.utils.Lists;
|
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
|
|
||||||
public class DamageModifier {
|
public class DamageModifier {
|
||||||
|
|
||||||
private final List<DamageModify> list = Lists.newArrayList();
|
private final List<DamageModify> list = new ArrayList<>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 免疫所有伤害
|
* 免疫所有伤害
|
||||||
|
|
Loading…
Add table
Reference in a new issue