The EntityItemPickupBeforeEvent class in @minecraft/server.
Class in @minecraft/server
import { EntityItemPickupBeforeEvent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”cancel
Section titled “cancel”cancel: boolean;entity
Section titled “entity”read-only
readonly entity: Entity;Types
read-only
readonly item: Entity;Types
Used by
Section titled “Used by”EntityItemPickupBeforeEventSignal.subscribe, EntityItemPickupBeforeEventSignal.unsubscribe