Giant .java

net.minecraft.world.entity.monster.Giant (class): members: getWalkTargetValue, createAttributes. imports: AttributeSupplier, Attributes, LevelReader.

net.minecraft.world.entity.monsterclass28 linescommonextends Monster900 B

API Surface (2)

AttributeSupplier.Builder createAttributes()
float getWalkTargetValue(final BlockPos pos, final LevelReader level)

Code Graph: Dependencies (7)

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

Full Source

Giant.java28 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.entity.monster;
2
3
import net.minecraft.core.BlockPos;
4
import net.minecraft.world.entity.EntityType;
5
import net.minecraft.world.entity.ai.attributes.AttributeSupplier;
6
import net.minecraft.world.entity.ai.attributes.Attributes;
7
import net.minecraft.world.level.Level;
8
import net.minecraft.world.level.LevelReader;
9
10
public class Giant extends Monster {
11
	public Giant(final EntityType<? extends Giant> type, final Level level) {
12
		super(type, level);
13
	}
14
15
	public static AttributeSupplier.Builder createAttributes() {
16
		return Monster.createMonsterAttributes()
17
			.add(Attributes.MAX_HEALTH, 100.0)
18
			.add(Attributes.MOVEMENT_SPEED, 0.5)
19
			.add(Attributes.ATTACK_DAMAGE, 50.0)
20
			.add(Attributes.CAMERA_DISTANCE, 16.0);
21
	}
22
23
	@Override
24
	public float getWalkTargetValue(final BlockPos pos, final LevelReader level) {
25
		return level.getPathfindingCostFromLightLevels(pos);
26
	}
27
}
28

Decompiled Minecraft 26.3 source of Giant (net/minecraft/world/entity/monster/Giant.java) with Mojang official mappings, stored verbatim on the site.