Skip to content

Instantly share code, notes, and snippets.

View Tacitor's full-sized avatar

Tacitor Tacitor

View GitHub Profile
@Commoble
Commoble / VoxelShapeGetters.java
Last active December 10, 2023 22:31
What's the difference between the different VoxelShape getters in forge for minecraft 1.16.4?
/**
AbstractBlock::getShape(BlockState, IBlockReader, BlockPos, ISelectionContext)
The primary shape for "selection" raytraces, like clicking a block.
Defaults to a full cube. Delegated to by AbstractBlockState::getShape(IBlockReader, BlockPos, ISelectionContext)
Most of the other shape getters either default to this or default to empty,
so just overriding this shape getter is sufficient if finer variations aren't needed.
AbstractBlock::getCollisionShape(BlockState, IBlockReader, BlockPos, ISelectionContext)
The primary shape for collision raytraces.
Delegated to by AbstractBlockState::getCollisionShape(IBlockReader, BlockPos, ISelectionContext)