當前位置: 首頁>>代碼示例>>Java>>正文


Java BlockState類代碼示例

本文整理匯總了Java中net.minecraft.block.state.BlockState的典型用法代碼示例。如果您正苦於以下問題:Java BlockState類的具體用法?Java BlockState怎麽用?Java BlockState使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BlockState類屬於net.minecraft.block.state包,在下文中一共展示了BlockState類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return this.isDouble() ? new BlockState(this, new IProperty[] {VARIANT}): new BlockState(this, new IProperty[] {HALF, VARIANT});
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:5,代碼來源:BlockWoodSlab.java

示例2: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {FACING, HALF, SHAPE});
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:5,代碼來源:BlockStairs.java

示例3: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {CONTENTS, LEGACY_DATA});
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:5,代碼來源:BlockFlowerPot.java

示例4: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {FACING, EYE});
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:5,代碼來源:BlockEndPortalFrame.java

示例5: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {MOISTURE});
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:5,代碼來源:BlockFarmland.java

示例6: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {NORTH, EAST, WEST, SOUTH});
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:5,代碼來源:BlockFence.java

示例7: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {WET});
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:5,代碼來源:BlockSponge.java

示例8: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {AXIS});
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:5,代碼來源:BlockPortal.java

示例9: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {SNOWY});
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:5,代碼來源:BlockMycelium.java

示例10: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {FACING});
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:5,代碼來源:BlockLadder.java

示例11: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {FACING, PART, OCCUPIED});
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:5,代碼來源:BlockBed.java

示例12: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {VARIANT});
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:5,代碼來源:BlockSand.java

示例13: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {POWERED, SUSPENDED, ATTACHED, DISARMED, NORTH, EAST, WEST, SOUTH});
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:5,代碼來源:BlockTripWire.java

示例14: createBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
protected BlockState createBlockState()
{
    return new BlockState(this, new IProperty[] {UP, NORTH, EAST, SOUTH, WEST});
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:5,代碼來源:BlockVine.java

示例15: getBlockState

import net.minecraft.block.state.BlockState; //導入依賴的package包/類
public BlockState getBlockState()
{
    return this.blockState;
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:5,代碼來源:Block.java


注:本文中的net.minecraft.block.state.BlockState類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。