Interface BlockDetails
- All Known Subinterfaces:
BlockSnapshot<P>
,BlockSnapshot.AsyncBlockSnapshot
,BlockSnapshot.SyncBlockSnapshot
public interface BlockDetails
Contains all information of a block that has not been placed
-
Method Summary
Modifier and TypeMethodDescriptionCreates a copy of the BlockDetailscreateSnapshot(@NotNull ASyncBlockPosition position)
Deprecated, for removal: This API element is subject to removal in a future version.createSnapshot(@NotNull SyncBlockPosition position)
<T> Optional<T>
default <T, C extends Collection<T>>
Collection<T>getType()
Gets the BlockType variant this BlockDetails isdefault <T> Optional<T>
getUnspecified(@NotNull Class<? extends KeyedData<?>> dataClass)
<T> BlockDetails
-
Method Details
-
getType
BlockType getType()Gets the BlockType variant this BlockDetails is- Returns:
- The connected BlockType variant
-
createSnapshot
@Deprecated(forRemoval=true) BlockSnapshot.AsyncBlockSnapshot createSnapshot(@NotNull @NotNull ASyncBlockPosition position)Deprecated, for removal: This API element is subject to removal in a future version. -
createSnapshot
-
getDirectionalData
Optional<DirectionalData> getDirectionalData() -
createCopyOf
BlockDetails createCopyOf()Creates a copy of the BlockDetails- Returns:
- The copy of the BlockDetails
-
get
-
getAll
-
set
-
getUnspecified
-