Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item dropping #464

Closed
wants to merge 35 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
47f2a40
Merge pull request #1 from Pumpkin-MC/master
tomasalias Jan 6, 2025
5ce79fc
Copy some lines from other-branch
tomasalias Jan 6, 2025
d099db7
Update Cargo.toml
tomasalias Jan 6, 2025
34b287c
Update Cargo.toml
tomasalias Jan 6, 2025
c38a408
Update entity_type.rs
tomasalias Jan 6, 2025
4afe49e
Update position.rs
tomasalias Jan 6, 2025
10f7337
Update vector2.rs
tomasalias Jan 6, 2025
0e6ff5a
Update vector3.rs
tomasalias Jan 6, 2025
c709463
Update vector3.rs
tomasalias Jan 6, 2025
6e27368
Update vector3.rs
tomasalias Jan 6, 2025
6583ee9
Update item_registry.rs
tomasalias Jan 6, 2025
a34fc2f
Update c_entity_velocity.rs
tomasalias Jan 6, 2025
09af356
Update c_entity_velocity.rs
tomasalias Jan 6, 2025
99f9e2b
Create c_pickup_item.rs
tomasalias Jan 6, 2025
9ab6367
Update c_entity_velocity.rs
tomasalias Jan 6, 2025
7ea190f
Update container_click.rs
tomasalias Jan 6, 2025
2598e6b
Update Cargo.toml
tomasalias Jan 6, 2025
f80cbca
Update main.rs
tomasalias Jan 6, 2025
e6d236f
Update Cargo.toml
tomasalias Jan 6, 2025
18f12da
Update Cargo.toml
tomasalias Jan 6, 2025
199f7e5
Update Cargo.toml
tomasalias Jan 6, 2025
ff26afa
Update cmd_help.rs
tomasalias Jan 6, 2025
9394c80
Update cmd_pumpkin.rs
tomasalias Jan 6, 2025
21d43e7
Update cmd_transfer.rs
tomasalias Jan 6, 2025
ec63467
Update player.rs
tomasalias Jan 6, 2025
8aa6bd7
Update mod.rs
tomasalias Jan 6, 2025
d854db4
Update container_click.rs
tomasalias Jan 6, 2025
e62b8ff
Update combat.rs
tomasalias Jan 6, 2025
743e9ed
Update mod.rs
tomasalias Jan 6, 2025
7fc8c44
Update mod.rs
tomasalias Jan 6, 2025
e3650a2
Create item.rs
tomasalias Jan 6, 2025
8d7e1c1
Update mod.rs
tomasalias Jan 6, 2025
665fa0d
Update mod.rs
tomasalias Jan 6, 2025
6bf9224
Update mod.rs
tomasalias Jan 6, 2025
3bcacc9
Update Cargo.toml
tomasalias Jan 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update mod.rs
tomasalias authored Jan 6, 2025
commit 8aa6bd7b242a3ba7f950ce73edeed3a6822e6714
15 changes: 0 additions & 15 deletions pumpkin/src/entity/mod.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<<<<<<< HEAD
use core::f32;
use std::sync::{atomic::AtomicBool, Arc};

use crossbeam::atomic::AtomicCell;
=======
use crate::server::Server;
use crossbeam::atomic::AtomicCell;
use itertools::Itertools;
use num_derive::FromPrimitive;
use num_traits::real::Real;
>>>>>>> origin/item-dropping
use pumpkin_core::math::{
boundingbox::{BoundingBox, BoundingBoxSize},
get_section_cord,
@@ -32,26 +29,20 @@ use uuid::Uuid;

use crate::world::World;

<<<<<<< HEAD
pub mod ai;
pub mod mob;

=======
pub mod item;
>>>>>>> origin/item-dropping
pub mod living;
pub mod player;

/// Represents a not living Entity (e.g. Item, Egg, Snowball...)
pub struct Entity {
/// A unique identifier for the entity
pub entity_id: EntityId,
<<<<<<< HEAD
/// A persistant, unique identifier for the entity
pub entity_uuid: uuid::Uuid,
=======
pub uuid: Uuid,
>>>>>>> origin/item-dropping
/// The type of entity (e.g., player, zombie, item)
pub entity_type: EntityType,
/// The world in which the entity exists.
@@ -94,11 +85,8 @@ impl Entity {
#[allow(clippy::too_many_arguments)]
pub fn new(
entity_id: EntityId,
<<<<<<< HEAD
entity_uuid: uuid::Uuid,
=======
uuid: Uuid,
>>>>>>> origin/item-dropping
world: Arc<World>,
position: Vector3<f64>,
entity_type: EntityType,
@@ -112,11 +100,8 @@ impl Entity {

Self {
entity_id,
<<<<<<< HEAD
entity_uuid,
=======
uuid,
>>>>>>> origin/item-dropping
entity_type,
in_ground: AtomicBool::new(false),
on_ground: AtomicBool::new(false),