接口 IOwnedSpawner
- 所有已知实现类:
BaseSpawner
,TrialSpawner
public interface IOwnedSpawner
-
方法概要
修饰符和类型方法说明@Nullable com.mojang.datafixers.util.Either
<BlockEntity, Entity> getOwner()
Returns the block entity or entity which owns this spawner object.
-
方法详细资料
-
getOwner
Returns the block entity or entity which owns this spawner object.For a
BaseSpawner
, this is the引用无效
MobSpawnerBlockEntity
MinecartSpawner
.For a
TrialSpawner
, this is theTrialSpawnerBlockEntity
.
-