Interface IOwnedSpawner
- All Known Implementing Classes:
BaseSpawner
,TrialSpawner
public interface IOwnedSpawner
-
Method Summary
Modifier and TypeMethodDescription@Nullable com.mojang.datafixers.util.Either
<BlockEntity, Entity> getOwner()
Returns the block entity or entity which owns this spawner object.
-
Method Details
-
getOwner
Returns the block entity or entity which owns this spawner object.For a
BaseSpawner
, this is theinvalid reference
MobSpawnerBlockEntity
MinecartSpawner
.For a
TrialSpawner
, this is theTrialSpawnerBlockEntity
.
-