Interface NBTCompatibilityHandler
- All Known Implementing Classes:
BannerBlockCompatibilityHandler
,BedBlockCompatibilityHandler
,FlowerPotCompatibilityHandler
,NoteBlockCompatibilityHandler
,SignCompatibilityHandler
,SkullBlockCompatibilityHandler
public interface NBTCompatibilityHandler
-
Method Summary
Modifier and TypeMethodDescriptiondefault <B extends BlockStateHolder<B>>
booleanisAffectedBlock
(B block) Deprecated.default BaseBlock
Given a block, update the block's NBT.default <B extends BlockStateHolder<B>>
BlockStateHolder<?>Deprecated.
-
Method Details
-
isAffectedBlock
Deprecated.this is handled byupdateNbt(BaseBlock)
nowCheck if this is a block affected by this handler. -
updateNBT
@Deprecated default <B extends BlockStateHolder<B>> BlockStateHolder<?> updateNBT(B block, Map<String, Tag<?, ?>> values) Deprecated. -
updateNbt
@NonAbstractForCompatibility(delegateName="updateNBT", delegateParams={BlockStateHolder.class,java.util.Map.class}) default BaseBlock updateNbt(BaseBlock block) Given a block, update the block's NBT. The NBT may benull
.- Parameters:
block
- the block to update- Returns:
- the updated block, or the same block if no change is necessary
- API Note:
- This must be overridden by new subclasses. See
NonAbstractForCompatibility
for details
-
updateNbt(BaseBlock)
now