Object LevelExt
-
- All Implemented Interfaces:
public class LevelExt
-
-
Field Summary
Fields Modifier and Type Field Description private final SavedData.Factory<MapVariables>
mapVarsFactory
private final MapVariables
vars
public final static LevelExt
INSTANCE
-
Method Summary
Modifier and Type Method Description final Unit
playSound(LevelAccessor $self, Vec3 pos, SoundEvent sound, Float volume, Float pitch, SoundSource source)
final Unit
playSound(LevelAccessor $self, Vec3 pos, Holder<SoundEvent> sound, Float volume, Float pitch, SoundSource source)
final Unit
tryBroadcastSound(LevelAccessor $self, SoundEvent sound, Float volume, Float pitch, SoundSource source)
final Unit
tryBroadcastSound(LevelAccessor $self, Holder<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 Boolean
placeStructureNormal(ServerLevel $self, String id, BlockPos pos)
final Unit
tryPlaceStructure(LevelAccessor $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)
final <T extends ParticleOptions> Integer
sendParticles(ServerLevel $self, T type, Vec3 pos, Number particleCount, Vec3 offset, Number speed)
final <T extends ParticleOptions> Integer
sendParticles(ServerLevel $self, Supplier<T> type, Vec3 pos, Number particleCount, Vec3 offset, Number speed)
final SavedData.Factory<MapVariables>
getMapVarsFactory()
final MapVariables
getVars(LevelAccessor $self)
-
-
Method Detail
-
playSound
final Unit playSound(LevelAccessor $self, Vec3 pos, SoundEvent sound, Float volume, Float pitch, SoundSource source)
-
playSound
final Unit playSound(LevelAccessor $self, Vec3 pos, Holder<SoundEvent> sound, Float volume, Float pitch, SoundSource source)
-
tryBroadcastSound
final Unit tryBroadcastSound(LevelAccessor $self, SoundEvent sound, Float volume, Float pitch, SoundSource source)
-
tryBroadcastSound
final Unit tryBroadcastSound(LevelAccessor $self, Holder<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)
-
placeStructureNormal
final Boolean placeStructureNormal(ServerLevel $self, String id, BlockPos pos)
-
tryPlaceStructure
final Unit tryPlaceStructure(LevelAccessor $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)
-
sendParticles
final <T extends ParticleOptions> Integer sendParticles(ServerLevel $self, T type, Vec3 pos, Number particleCount, Vec3 offset, Number speed)
-
sendParticles
final <T extends ParticleOptions> Integer sendParticles(ServerLevel $self, Supplier<T> type, Vec3 pos, Number particleCount, Vec3 offset, Number speed)
-
getMapVarsFactory
final SavedData.Factory<MapVariables> getMapVarsFactory()
-
getVars
final MapVariables getVars(LevelAccessor $self)
-
-
-
-