mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 03:10:54 -04:00
Copy offsetType in FabricBlockSettings
This commit is contained in:
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
|
@ -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) {
|
||||
|
|
|
@ -98,6 +98,9 @@ public interface AbstractBlockSettingsAccessor {
|
|||
@Accessor
|
||||
AbstractBlock.ContextPredicate getEmissiveLightingPredicate();
|
||||
|
||||
@Accessor
|
||||
Function<BlockState, AbstractBlock.OffsetType> getOffsetType();
|
||||
|
||||
/* SETTERS */
|
||||
@Accessor
|
||||
void setMaterial(Material material);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue