Object WorldExt
-
- All Implemented Interfaces:
public class WorldExt
-
-
Method Summary
Modifier and Type Method Description final Unit
playSound(LevelAccessor $self, Vec3 pos, SoundEvent sound, Float volume, Float pitch, SoundSource source)
final Unit
tryPlaySound(Level $self, Vec3 pos, SoundEvent sound, Float volume, Float pitch, SoundSource source)
final StructureTemplate
getStructure(ServerLevel $self, String id)
final Boolean
placeStructure(ServerLevel $self, String id, BlockPos pos)
final Unit
tryPlaceStructure(ServerLevelAccessor $self, String id, BlockPos pos)
final Unit
chat(LevelAccessor $self, Component component, Boolean bypassHiddenChat)
final Unit
tryBroadcastPacket(LevelAccessor $self, Packet<?> packet)
final Unit
tryDropItems(LevelAccessor $self, Vec3 pos, ItemStack stack, Integer pickUpDelay)
-
-
Method Detail
-
playSound
final Unit playSound(LevelAccessor $self, Vec3 pos, SoundEvent sound, Float volume, Float pitch, SoundSource source)
-
tryPlaySound
final Unit tryPlaySound(Level $self, Vec3 pos, SoundEvent sound, Float volume, Float pitch, SoundSource source)
-
getStructure
final StructureTemplate getStructure(ServerLevel $self, String id)
-
placeStructure
final Boolean placeStructure(ServerLevel $self, String id, BlockPos pos)
-
tryPlaceStructure
final Unit tryPlaceStructure(ServerLevelAccessor $self, String id, BlockPos pos)
-
tryBroadcastPacket
final Unit tryBroadcastPacket(LevelAccessor $self, Packet<?> packet)
-
tryDropItems
final Unit tryDropItems(LevelAccessor $self, Vec3 pos, ItemStack stack, Integer pickUpDelay)
-
-
-
-