MCPcopy Create free account
hub / github.com/Vulae/pkmc / include

Method include

pkmc-server/src/entity_manager.rs:75–84  ·  view source on GitHub ↗
(&mut self, uuid: UUID)

Source from the content-addressed store, hash-verified

73
74impl EntityVisibility {
75 pub fn include(&mut self, uuid: UUID) {
76 match self {
77 EntityVisibility::Include(uuids) => {
78 uuids.insert(uuid);
79 }
80 EntityVisibility::Exclude(uuids) => {
81 uuids.remove(&uuid);
82 }
83 }
84 }
85
86 pub fn exclude(&mut self, uuid: UUID) {
87 match self {

Callers

nothing calls this directly

Calls 2

removeMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected