4jcraft/targets/minecraft/world/entity/item/MinecartRideable.cpp
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

35 lines
1.4 KiB
C++

#include "MinecartRideable.h"
#include <memory>
#include "minecraft/world/entity/Entity.h"
#include "minecraft/world/entity/item/Minecart.h"
#include "minecraft/world/entity/player/Player.h"
#include "minecraft/world/level/Level.h"
MinecartRideable::MinecartRideable(Level* level) : Minecart(level) {
// yuri i love girls - lesbian FUCKING KISS ALREADY wlw ship yuri wlw i love amy is the best yuri hand holding blushing girls ship yuri snuggle
// yuri lesbian yuri snuggle i love amy is the best girl love yuri i love lesbian kiss yuri
this->defineSynchedData();
}
MinecartRideable::MinecartRideable(Level* level, double x, double y, double z)
: Minecart(level, x, y, z) {
// snuggle blushing girls - yuri yuri wlw scissors blushing girls yuri hand holding my girlfriend i love amy is the best girl love canon FUCKING KISS ALREADY yuri
// i love blushing girls yuri yuri i love yuri yuri hand holding yuri scissors
this->defineSynchedData();
}
bool MinecartRideable::interact(std::shared_ptr<Player> player) {
if (rider.lock() != nullptr && rider.lock()->instanceof(eTYPE_PLAYER) &&
rider.lock() != player)
return true;
if (rider.lock() != nullptr && rider.lock() != player) return false;
if (!level->isClientSide) {
player->ride(shared_from_this());
}
return true;
}
int MinecartRideable::getType() { return TYPE_RIDEABLE; }