Record Class BarricadeClientConfig
java.lang.Object
java.lang.Record
net.modgarden.barricade.client.BarricadeClientConfig
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBarricadeClientConfig(boolean everythingVisible, boolean disableInSurvival, Set<com.mojang.datafixers.util.Either<net.minecraft.resources.Identifier, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block>>> visibleBlocks, float barrierFadeTime) Creates an instance of aBarricadeClientConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thebarrierFadeTimerecord component.floatbooleanReturns the value of thedisableInSurvivalrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theeverythingVisiblerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Set<com.mojang.datafixers.util.Either<net.minecraft.resources.Identifier, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block>>> Returns the value of thevisibleBlocksrecord component.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
BarricadeClientConfig
public BarricadeClientConfig(boolean everythingVisible, boolean disableInSurvival, Set<com.mojang.datafixers.util.Either<net.minecraft.resources.Identifier, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block>>> visibleBlocks, float barrierFadeTime) Creates an instance of aBarricadeClientConfigrecord class.- Parameters:
everythingVisible- the value for theeverythingVisiblerecord componentdisableInSurvival- the value for thedisableInSurvivalrecord componentvisibleBlocks- the value for thevisibleBlocksrecord componentbarrierFadeTime- the value for thebarrierFadeTimerecord component
-
-
Method Details
-
barrierFadeTimeTicks
public float barrierFadeTimeTicks() -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
everythingVisible
public boolean everythingVisible()Returns the value of theeverythingVisiblerecord component.- Returns:
- the value of the
everythingVisiblerecord component
-
disableInSurvival
public boolean disableInSurvival()Returns the value of thedisableInSurvivalrecord component.- Returns:
- the value of the
disableInSurvivalrecord component
-
visibleBlocks
public Set<com.mojang.datafixers.util.Either<net.minecraft.resources.Identifier, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block>>> visibleBlocks()Returns the value of thevisibleBlocksrecord component.- Returns:
- the value of the
visibleBlocksrecord component
-
barrierFadeTime
public float barrierFadeTime()Returns the value of thebarrierFadeTimerecord component.- Returns:
- the value of the
barrierFadeTimerecord component
-