2025-11-24 22:52:51 +03:00

25 lines
721 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.world.entity.vehicle;
import java.util.function.Supplier;
import net.minecraft.world.entity.EntityDimensions;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.vehicle.AbstractChestBoat;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.Level;
public class ChestBoat
extends AbstractChestBoat {
public ChestBoat(EntityType<? extends ChestBoat> type, Level level, Supplier<Item> dropItem) {
super((EntityType<? extends AbstractChestBoat>)type, level, dropItem);
}
@Override
protected double rideHeight(EntityDimensions dimensions) {
return dimensions.height() / 3.0f;
}
}