AreaEffectCloudDurationScaleFix .java

net.minecraft.util.datafix.fixes.AreaEffectCloudDurationScaleFix (class, 17 lines): members: fix. strings: "potion_duration_scale". imports: Typed.

net.minecraft.util.datafix.fixesclass17 linescommonextends NamedEntityFix594 B

API Surface (1)

Typed<?> fix(final Typed<?> entity)

String literals (2)

"minecraft:area_effect_cloud"
"potion_duration_scale"

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

AreaEffectCloudDurationScaleFix.java17 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.datafix.fixes;
2
3
import com.mojang.datafixers.DSL;
4
import com.mojang.datafixers.Typed;
5
import com.mojang.datafixers.schemas.Schema;
6
7
public class AreaEffectCloudDurationScaleFix extends NamedEntityFix {
8
	public AreaEffectCloudDurationScaleFix(final Schema outputSchema) {
9
		super(outputSchema, false, "AreaEffectCloudDurationScaleFix", References.ENTITY, "minecraft:area_effect_cloud");
10
	}
11
12
	@Override
13
	protected Typed<?> fix(final Typed<?> entity) {
14
		return entity.update(DSL.remainderFinder(), tag -> tag.set("potion_duration_scale", tag.createFloat(0.25F)));
15
	}
16
}
17

Decompiled Minecraft 26.3 source of AreaEffectCloudDurationScaleFix (net/minecraft/util/datafix/fixes/AreaEffectCloudDurationScaleFix.java) with Mojang official mappings, stored verbatim on the site.