Klasse TileEntityUtils
java.lang.Object
gollorum.signpost.minecraft.utils.TileEntityUtils
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic <T extends net.minecraft.world.level.block.entity.BlockEntity>
voiddelayUntilTileEntityExists(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.entity.BlockEntityType<T> c, Consumer<T> action, int timeout, Optional<Runnable> onTimeOut) static <T> voiddelayUntilTileEntityExistsAt(WorldLocation location, Class<T> c, Consumer<T> action, int timeout, boolean onClient, Optional<Runnable> onTimeOut) static <T extends net.minecraft.world.level.block.entity.BlockEntity>
voiddelayUntilTileEntityExistsAt(WorldLocation location, net.minecraft.world.level.block.entity.BlockEntityType<T> c, Consumer<T> action, int timeout, boolean onClient, Optional<Runnable> onTimeOut) static <T extends net.minecraft.world.level.block.entity.BlockEntity>
Optional<T> findTileEntity(net.minecraft.resources.ResourceLocation dimensionKeyLocation, boolean isRemote, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.entity.BlockEntityType<T> c) static <T> Optional<T> findTileEntityAt(WorldLocation location, Class<T> c, boolean onClient) static <T extends net.minecraft.world.level.block.entity.BlockEntity>
Optional<T> findTileEntityAt(WorldLocation location, net.minecraft.world.level.block.entity.BlockEntityType<T> c, boolean onClient) static <T extends net.minecraft.world.level.block.entity.BlockEntity>
Optional<T> findTileEntityClient(net.minecraft.resources.ResourceLocation dimensionKeyLocation, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.entity.BlockEntityType<T> c) static Optional<net.minecraft.world.level.Level> findWorld(net.minecraft.resources.ResourceLocation dimensionKeyLocation, boolean isClient) static Optional<net.minecraft.world.level.Level> toWorld(Either<net.minecraft.world.level.Level, net.minecraft.resources.ResourceLocation> either, boolean onClient)
-
Konstruktordetails
-
TileEntityUtils
public TileEntityUtils()
-
-
Methodendetails
-
delayUntilTileEntityExists
public static <T extends net.minecraft.world.level.block.entity.BlockEntity> void delayUntilTileEntityExists(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.entity.BlockEntityType<T> c, Consumer<T> action, int timeout, Optional<Runnable> onTimeOut) -
findTileEntity
public static <T extends net.minecraft.world.level.block.entity.BlockEntity> Optional<T> findTileEntity(net.minecraft.resources.ResourceLocation dimensionKeyLocation, boolean isRemote, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.entity.BlockEntityType<T> c) -
findWorld
public static Optional<net.minecraft.world.level.Level> findWorld(net.minecraft.resources.ResourceLocation dimensionKeyLocation, boolean isClient) -
toWorld
-
findTileEntityAt
public static <T> Optional<T> findTileEntityAt(WorldLocation location, Class<T> c, boolean onClient) -
findTileEntityAt
public static <T extends net.minecraft.world.level.block.entity.BlockEntity> Optional<T> findTileEntityAt(WorldLocation location, net.minecraft.world.level.block.entity.BlockEntityType<T> c, boolean onClient) -
delayUntilTileEntityExistsAt
public static <T> void delayUntilTileEntityExistsAt(WorldLocation location, Class<T> c, Consumer<T> action, int timeout, boolean onClient, Optional<Runnable> onTimeOut) -
delayUntilTileEntityExistsAt
public static <T extends net.minecraft.world.level.block.entity.BlockEntity> void delayUntilTileEntityExistsAt(WorldLocation location, net.minecraft.world.level.block.entity.BlockEntityType<T> c, Consumer<T> action, int timeout, boolean onClient, Optional<Runnable> onTimeOut) -
findTileEntityClient
public static <T extends net.minecraft.world.level.block.entity.BlockEntity> Optional<T> findTileEntityClient(net.minecraft.resources.ResourceLocation dimensionKeyLocation, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.entity.BlockEntityType<T> c)
-