find_entity: Find entity by name

Description Usage Arguments Details Value See Also Examples

View source: R/find_entity.R

Description

Find a Minecraft entity by name.

Usage

1

Arguments

name

Character string with a Minecraft entity name (can be a partial match)

Details

We first look to see whether there is an exact match to the namex column in the output of getEntityTypes(). If there is, we return that row. If not, we use grep() with ignore.case=TRUE and return matching rows.

Value

Data frame with a row or set of rows from the output of getEntityTypes() that match the queried name.

See Also

getEntityTypes(), find_item()

Examples

1
2
3
4
5
## Not run: 
find_entity("HORSE")
find_entity("horse")

## End(Not run)

kbroman/miner documentation built on Jan. 26, 2021, 8:14 p.m.