Copy offsetType in FabricBlockSettings

This commit is contained in:
modmuss50 2022-05-20 18:29:19 +01:00
parent 4a05de7fe1
commit 51821d6d14
2 changed files with 4 additions and 0 deletions
fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric
api/object/builder/v1/block
mixin/object/builder

View file

@ -74,6 +74,7 @@ public class FabricBlockSettings extends AbstractBlock.Settings {
this.blockVision(otherAccessor.getBlockVisionPredicate());
this.postProcess(otherAccessor.getPostProcessPredicate());
this.emissiveLighting(otherAccessor.getEmissiveLightingPredicate());
this.offsetType(otherAccessor.getOffsetType());
}
public static FabricBlockSettings of(Material material) {

View file

@ -98,6 +98,9 @@ public interface AbstractBlockSettingsAccessor {
@Accessor
AbstractBlock.ContextPredicate getEmissiveLightingPredicate();
@Accessor
Function<BlockState, AbstractBlock.OffsetType> getOffsetType();
/* SETTERS */
@Accessor
void setMaterial(Material material);