minecraft-source/src/net/minecraft/world/level/pathfinder/BlockPathTypes.java

37 lines
764 B
Java
Raw Normal View History

2020-07-22 06:23:34 +01:00
package net.minecraft.world.level.pathfinder;
public enum BlockPathTypes {
BLOCKED(-1.0f),
OPEN(0.0f),
WALKABLE(0.0f),
TRAPDOOR(0.0f),
FENCE(-1.0f),
LAVA(-1.0f),
WATER(8.0f),
WATER_BORDER(8.0f),
RAIL(0.0f),
DANGER_FIRE(8.0f),
DAMAGE_FIRE(16.0f),
DANGER_CACTUS(8.0f),
DAMAGE_CACTUS(-1.0f),
DANGER_OTHER(8.0f),
DAMAGE_OTHER(-1.0f),
DOOR_OPEN(0.0f),
DOOR_WOOD_CLOSED(-1.0f),
DOOR_IRON_CLOSED(-1.0f),
BREACH(4.0f),
2020-07-22 06:25:47 +01:00
LEAVES(-1.0f),
STICKY_HONEY(8.0f),
COCOA(0.0f);
2020-07-22 06:23:34 +01:00
private final float malus;
private BlockPathTypes(final float float3) {
this.malus = float3;
}
public float getMalus() {
return this.malus;
}
}