Skip to content

Item picking API #81

Description

@danilwhale

vanilla doesn't expose way to properly pick items from entities (and blocks on older versions) by player, so it might be worth giving API similar to this:

// though, at some point, they start exposing Block#getPickItem
@Environment(EnvType.CLIENT)
public interface PickableBlock {
   net.minecraft.item.Item getPickItem();
}

@Environment(EnvType.CLIENT)
public interface PickableEntity {
   net.minecraft.item.Item getPickItem();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions