LeviLamina
Loading...
Searching...
No Matches
IBlockSource Class Referenceabstract
+ Inheritance diagram for IBlockSource:

Public Types

using Listener = ::BlockSourceListener
 
using ListenerVector = ::std::vector<::BlockSourceListener*>
 

Public Member Functions

virtual ::std::vector<::AABB > & fetchAABBs (::AABB const &, bool)=0
 
virtual ::std::vector<::AABB > & fetchCollisionShapes (::AABB const &, bool, ::std::optional<::EntityContext const >, ::std::vector<::AABB > *)=0
 
virtual ::WeakRef<::BlockSourcegetWeakRef ()=0
 
virtual void addListener (::BlockSourceListener &)=0
 
virtual void removeListener (::BlockSourceListener &)=0
 
virtual ::gsl::span<::gsl::not_null<::Actor * > > fetchEntities (::Actor const *, ::AABB const &, bool, bool)=0
 
virtual ::gsl::span<::gsl::not_null<::Actor * > > fetchEntities (::ActorType, ::AABB const &, ::Actor const *, ::std::function< bool(::Actor *)>)=0
 
virtual bool setBlock (::BlockPos const &, ::Block const &, int, ::ActorBlockSyncMessage const *, ::Actor *)=0
 
virtual short getMinHeight () const =0
 
virtual short getMaxHeight () const =0
 
virtual::Dimension & getDimension () const =0
 
virtual::Dimension & getDimension ()=0
 
virtual::Dimension const & getDimensionConst () const =0
 
virtual::LevelChunk * getChunkAt (::BlockPos const &) const =0
 
virtual::LevelChunk * getChunk (int, int) const =0
 
virtual::LevelChunk * getChunk (::ChunkPos const &) const =0
 
virtual::Level & getLevel ()=0
 
virtual::ILevel & getILevel () const =0
 
virtual::LevelSeed64 getLevelSeed64 () const =0
 
virtual short getAboveTopSolidBlock (int, int, bool, bool) const =0
 
virtual short getAboveTopSolidBlock (::BlockPos const &, bool, bool, bool) const =0
 
virtual short getHeight (::std::function< bool(::Block const &)> const &, ::BlockPos const &) const =0
 
virtual short getHeight (::std::function< bool(::Block const &)> const &, int, int) const =0
 
virtual::HitResult clip (::Vec3 const &, ::Vec3 const &, bool, ::ShapeType, int, bool, bool, ::Actor *, ::std::function< bool(::BlockSource const &, ::Block const &, bool)> const &) const =0
 
virtual::HitResult clip (::ClipParameters const &) const =0
 
virtual::ChunkSource & getChunkSource ()=0
 
virtual bool isSolidBlockingBlock (::BlockPos const &) const =0
 
virtual bool isSolidBlockingBlock (int, int, int) const =0
 
virtual bool areChunksFullyLoaded (::BlockPos const &, int) const =0
 
virtual bool mayPlace (::Block const &, ::BlockPos const &, uchar, ::Actor *, bool, ::Vec3)=0
 
virtual bool canDoBlockDrops () const =0
 
virtual bool canDoContainedItemDrops () const =0
 
virtual bool isInstaticking (::BlockPos const &) const =0
 
virtual void updateCheckForValidityState (bool)=0
 
virtual bool checkBlockPermissions (::Actor &, ::BlockPos const &, uchar, ::ItemStackBase const &, bool)=0
 
virtual bool removeBlock (::BlockPos const &)=0
 
virtual void postGameEvent (::Actor *, ::GameEvent const &, ::BlockPos const &, ::Block const *)=0
 
virtual::Block const & getBlock (int, int, int) const =0
 
virtual::Block const & getBlock (::BlockPos const &) const =0
 
virtual::Block const & getBlock (::BlockPos const &, uint) const =0
 
virtual::BlockActor const * getBlockEntity (::BlockPos const &) const =0
 
virtual::Block const & getExtraBlock (::BlockPos const &) const =0
 
virtual::Block const & getLiquidBlock (::BlockPos const &) const =0
 
virtual bool hasBlock (::BlockPos const &) const =0
 
virtual bool containsAnyLiquid (::AABB const &) const =0
 
virtual bool containsMaterial (::AABB const &, ::MaterialType) const =0
 
virtual bool isInWall (::Vec3 const &) const =0
 
virtual bool isUnderWater (::Vec3 const &, ::Block const &) const =0
 
virtual::Material const & getMaterial (::BlockPos const &) const =0
 
virtual::Material const & getMaterial (int, int, int) const =0
 
virtual bool hasBorderBlock (::BlockPos const) const =0
 
virtual bool hasChunksAt (::Bounds const &, bool) const =0
 
virtual bool hasChunksAt (::BlockPos const &, int, bool) const =0
 
virtual bool hasChunksAt (::AABB const &, bool) const =0
 
virtual::DimensionType getDimensionId () const =0
 
virtual void fetchAABBs (::std::vector<::AABB > &, ::AABB const &, bool) const =0
 
virtual void fetchCollisionShapes (::std::vector<::AABB > &, ::AABB const &, bool, ::optional_ref<::GetCollisionShapeInterface const >, ::std::vector<::AABB > *) const =0
 
virtual void fetchCollisionShapesAndBlocks (::std::vector<::BlockSourceVisitor::CollisionShape > &, ::AABB const &, bool, ::optional_ref<::GetCollisionShapeInterface const >, ::std::vector<::AABB > *) const =0
 
virtual::AABB getTallestCollisionShape (::AABB const &, float *, bool, ::optional_ref<::GetCollisionShapeInterface const >) const =0
 
virtual float getBrightness (::BlockPos const &) const =0
 
MCAPI bool checkMaterial (::AABB const &box, ::MaterialType material) const
 

The documentation for this class was generated from the following file: