java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped<S>
mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<net.minecraft.world.level.block.state.BlockState>
mods.thecomputerizer.theimpossiblelibrary.shared.v20.common.block.BlockState1_20
All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor, mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped<net.minecraft.world.level.block.state.BlockState>

public class BlockState1_20 extends mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<net.minecraft.world.level.block.state.BlockState>
  • Field Summary

    Fields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped

    wrapped

    Fields inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor

    BOOLEAN_VALUES, FABRIC, FORGE, FORGE_OR_NEOFORGE, GAME_VERSION, JAVA_17, JAVA_21, JAVA_8, JAVA_MODULES, JAVA_VERSION, JAVA_VERSION_ASM, LEGACY, MOD_LOADER, NAMED_ENV, NEOFORGE, SRG_ENV, V12, V16, V16_OR_EARLIER, V16_OR_LATER, V18, V18_OR_EARLIER, V18_OR_LATER, V19, V19_2_OR_EARLIER, V19_4_OR_LATER, V19_OR_EARLIER, V19_OR_LATER, V20, V20_4_OR_EARLIER, V20_6_OR_LATER, V20_OR_EARLIER, V20_OR_LATER, V21, V21_OR_LATER
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockAPI<?>
     
    mods.thecomputerizer.theimpossiblelibrary.api.common.block.MaterialAPI<?>
     
    @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockPropertyAPI<?,?>
     
    boolean
    getPropertyBool(mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockPropertyAPI<?,Boolean> property)
     
    <E extends Enum<E>>
    E
    getPropertyEnum(mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockPropertyAPI<?,E> property)
     
    <V extends Comparable<V>>
    V
    getPropertyValue(mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockPropertyAPI<?,V> property)
     
    <V extends Comparable<V>>
    mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<?>
    withProperty(mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockPropertyAPI<?,V> property, V value)
     

    Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI

    getPropertyBool, getPropertyEnum, getPropertyValue, withProperty

    Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped

    equals, getWrapped, getWrappedClass, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped

    getIfNotNull, getIfNotNullOrDefault, getIfNotNullOrDefault, isNull, isNullGetter, notNull, notNullGetter, supplyIfNull, unwrap, wrapIfNotNull, wrapIfNotNullOrDefault, wrapIfNotNullOrDefault
  • Constructor Details

    • BlockState1_20

      public BlockState1_20(Object state)
  • Method Details

    • getBlock

      public mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockAPI<?> getBlock()
      Specified by:
      getBlock in class mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<net.minecraft.world.level.block.state.BlockState>
    • getMaterial

      public mods.thecomputerizer.theimpossiblelibrary.api.common.block.MaterialAPI<?> getMaterial()
      Specified by:
      getMaterial in class mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<net.minecraft.world.level.block.state.BlockState>
    • getProperty

      @Nullable public @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockPropertyAPI<?,?> getProperty(String name)
      Specified by:
      getProperty in class mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<net.minecraft.world.level.block.state.BlockState>
    • getPropertyBool

      public boolean getPropertyBool(mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockPropertyAPI<?,Boolean> property)
      Specified by:
      getPropertyBool in class mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<net.minecraft.world.level.block.state.BlockState>
    • getPropertyEnum

      public <E extends Enum<E>> E getPropertyEnum(mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockPropertyAPI<?,E> property)
      Specified by:
      getPropertyEnum in class mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<net.minecraft.world.level.block.state.BlockState>
    • getPropertyValue

      public <V extends Comparable<V>> V getPropertyValue(mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockPropertyAPI<?,V> property)
      Specified by:
      getPropertyValue in class mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<net.minecraft.world.level.block.state.BlockState>
    • withProperty

      public <V extends Comparable<V>> mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<?> withProperty(mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockPropertyAPI<?,V> property, V value)
      Specified by:
      withProperty in class mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<net.minecraft.world.level.block.state.BlockState>